From 11bf954b242e5ea9b69ff9cf20fc1cc6d39a83cf Mon Sep 17 00:00:00 2001 From: miniagarwal0910 <114739297+miniagarwal0910@users.noreply.github.com> Date: Thu, 20 Apr 2023 15:15:23 +0530 Subject: [PATCH] Merging new API version from private repo https://github.com/Azure/azure-rest-api-specs-pr/blob/RPSaaSMaster/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview (#23277) * Adding new api version as it is from azure-rest-api-specs-pr (RPSaaSMaster) * Update AutoRest files * resolve spell-check and sdk failures * resolve spell-check * resolve sdk failures * Remove extra spaces * Remove extra spaces * Remove lenient-model-Deduplication * Update v1 to v3 in scvmm.json * Add systemData in scvmm.json * Remove SystemData * Removing readme.ruby.md as ruby no longer supported * Remove ruby reference --- custom-words.txt | 1 + .../examples/CreateAvailabilitySet.json | 55 + .../CreateCheckpointVirtualMachine.json | 20 + .../examples/CreateCloud.json | 55 + .../examples/CreateGuestAgent.json | 47 + .../CreateHybridIdentityMetadata.json | 33 + .../examples/CreateInventoryItem.json | 30 + .../examples/CreateVMMServer.json | 65 + .../examples/CreateVirtualMachine.json | 78 + .../CreateVirtualMachineTemplate.json | 55 + .../examples/CreateVirtualNetwork.json | 55 + .../examples/DeleteAvailabilitySet.json | 17 + .../DeleteCheckpointVirtualMachine.json | 19 + .../examples/DeleteCloud.json | 17 + .../examples/DeleteExtension.json | 18 + .../examples/DeleteGuestAgent.json | 18 + .../DeleteHybridIdentityMetadata.json | 13 + .../examples/DeleteInventoryItem.json | 13 + .../examples/DeleteVMMServer.json | 17 + .../examples/DeleteVirtualMachine.json | 17 + .../DeleteVirtualMachineTemplate.json | 17 + .../examples/DeleteVirtualNetwork.json | 17 + .../examples/GETExtension.json | 39 + .../examples/GetAvailabilitySet.json | 27 + .../2022-05-21-preview/examples/GetCloud.json | 27 + .../examples/GetGuestAgent.json | 23 + .../examples/GetHybridIdentityMetadata.json | 27 + .../examples/GetInventoryItem.json | 25 + .../examples/GetVMMServer.json | 30 + .../examples/GetVirtualMachine.json | 36 + .../examples/GetVirtualMachineTemplate.json | 27 + .../examples/GetVirtualNetwork.json | 27 + .../examples/GuestAgent_ListByVm.json | 26 + .../HybridIdentityMetadata_ListByVm.json | 30 + .../ListAvailabilitySetsByResourceGroup.json | 30 + .../ListAvailabilitySetsBySubscription.json | 29 + .../examples/ListCloudsByResourceGroup.json | 30 + .../examples/ListCloudsBySubscription.json | 29 + .../examples/ListExtension.json | 64 + .../ListInventoryItemsByVMMServer.json | 28 + .../examples/ListOperations.json | 148 + .../ListVMMServersByResourceGroup.json | 33 + .../ListVMMServersBySubscription.json | 32 + ...irtualMachineTemplatesByResourceGroup.json | 30 + ...VirtualMachineTemplatesBySubscription.json | 29 + .../ListVirtualMachinesByResourceGroup.json | 39 + .../ListVirtualMachinesBySubscription.json | 38 + .../ListVirtualNetworksByResourceGroup.json | 30 + .../ListVirtualNetworksBySubscription.json | 29 + .../examples/PUTExtension.json | 71 + .../examples/RestartVirtualMachine.json | 16 + .../RestoreCheckpointVirtualMachine.json | 19 + .../examples/StartVirtualMachine.json | 16 + .../examples/StopVirtualMachine.json | 19 + .../examples/UpdateAvailabilitySet.json | 63 + .../examples/UpdateCloud.json | 63 + .../examples/UpdateExtension.json | 53 + .../examples/UpdateVMMServer.json | 69 + .../examples/UpdateVirtualMachine.json | 211 + .../UpdateVirtualMachineTemplate.json | 63 + .../examples/UpdateVirtualNetwork.json | 63 + .../preview/2022-05-21-preview/scvmm.json | 5623 +++++++++++++++++ .../readme.azureresourceschema.md | 12 + .../scvmm/resource-manager/readme.csharp.md | 2 +- .../scvmm/resource-manager/readme.go.md | 2 +- .../scvmm/resource-manager/readme.java.md | 13 + .../scvmm/resource-manager/readme.md | 16 +- .../scvmm/resource-manager/readme.python.md | 6 +- .../scvmm/resource-manager/readme.ruby.md | 19 - .../resource-manager/readme.typescript.md | 2 +- 70 files changed, 8029 insertions(+), 31 deletions(-) create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/CreateAvailabilitySet.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/CreateCheckpointVirtualMachine.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/CreateCloud.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/CreateGuestAgent.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/CreateHybridIdentityMetadata.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/CreateInventoryItem.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/CreateVMMServer.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/CreateVirtualMachine.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/CreateVirtualMachineTemplate.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/CreateVirtualNetwork.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteAvailabilitySet.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteCheckpointVirtualMachine.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteCloud.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteExtension.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteGuestAgent.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteHybridIdentityMetadata.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteInventoryItem.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteVMMServer.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteVirtualMachine.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteVirtualMachineTemplate.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteVirtualNetwork.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GETExtension.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GetAvailabilitySet.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GetCloud.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GetGuestAgent.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GetHybridIdentityMetadata.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GetInventoryItem.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GetVMMServer.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GetVirtualMachine.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GetVirtualMachineTemplate.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GetVirtualNetwork.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GuestAgent_ListByVm.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/HybridIdentityMetadata_ListByVm.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListAvailabilitySetsByResourceGroup.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListAvailabilitySetsBySubscription.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListCloudsByResourceGroup.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListCloudsBySubscription.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListExtension.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListInventoryItemsByVMMServer.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListOperations.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListVMMServersByResourceGroup.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListVMMServersBySubscription.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListVirtualMachineTemplatesByResourceGroup.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListVirtualMachineTemplatesBySubscription.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListVirtualMachinesByResourceGroup.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListVirtualMachinesBySubscription.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListVirtualNetworksByResourceGroup.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListVirtualNetworksBySubscription.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/PUTExtension.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/RestartVirtualMachine.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/RestoreCheckpointVirtualMachine.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/StartVirtualMachine.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/StopVirtualMachine.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/UpdateAvailabilitySet.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/UpdateCloud.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/UpdateExtension.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/UpdateVMMServer.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/UpdateVirtualMachine.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/UpdateVirtualMachineTemplate.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/UpdateVirtualNetwork.json create mode 100644 specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/scvmm.json delete mode 100644 specification/scvmm/resource-manager/readme.ruby.md diff --git a/custom-words.txt b/custom-words.txt index 3aa59eee7cd0..a24dd3102692 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -2791,6 +2791,7 @@ Wasserstein typespec DSPM Dspm +Metadatas Gtid GTID gtid diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/CreateAvailabilitySet.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/CreateAvailabilitySet.json new file mode 100644 index 000000000000..b6ad03326766 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/CreateAvailabilitySet.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "availabilitySetName": "HRAvailabilitySet", + "body": { + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "properties": { + "vmmServerId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ScVmm/VMMServers/ContosoVMMServer", + "availabilitySetName": "hr-avset" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ScVmm/AvailabilitySets/HRAvailabilitySet", + "name": "HRAvailabilitySet", + "type": "Microsoft.ScVmm/AvailabilitySets", + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "properties": { + "vmmServerId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ScVmm/VMMServers/ContosoVMMServer", + "availabilitySetName": "hr-avset", + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ScVmm/AvailabilitySets/HRAvailabilitySet", + "name": "HRAvailabilitySet", + "type": "Microsoft.ScVmm/AvailabilitySets", + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "properties": { + "vmmServerId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ScVmm/VMMServers/ContosoVMMServer", + "availabilitySetName": "hr-avset", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/CreateCheckpointVirtualMachine.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/CreateCheckpointVirtualMachine.json new file mode 100644 index 000000000000..ac2b68cabd32 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/CreateCheckpointVirtualMachine.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "virtualMachineName": "DemoVM", + "body": { + "name": "Demo Checkpoint name", + "description": "Demo Checkpoint description" + } + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/CreateCloud.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/CreateCloud.json new file mode 100644 index 000000000000..6a64eb94bc85 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/CreateCloud.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "cloudName": "HRCloud", + "body": { + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "properties": { + "vmmServerId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer", + "uuid": "aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/Clouds/HRCloud", + "name": "HRCloud", + "type": "Microsoft.SCVMM/Clouds", + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "properties": { + "vmmServerId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer", + "uuid": "aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/Clouds/HRCloud", + "name": "HRCloud", + "type": "Microsoft.SCVMM/Clouds", + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "properties": { + "vmmServerId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer", + "uuid": "aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/CreateGuestAgent.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/CreateGuestAgent.json new file mode 100644 index 000000000000..2f666d2eae18 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/CreateGuestAgent.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "virtualMachineName": "ContosoVm", + "guestAgentName": "default", + "body": { + "properties": { + "provisioningAction": "install", + "credentials": { + "username": "tempuser", + "password": "" + }, + "httpProxyConfig": { + "httpsProxy": "http://192.1.2.3:8080" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ScVmm/VitualMachines/ContosoVm/guestAgents/default", + "name": "default", + "type": "Microsoft.ScVmm/VitualMachines/guestAgents", + "properties": { + "provisioningAction": "install", + "status": "connected", + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ScVmm/VitualMachines/ContosoVm/guestAgents/default", + "name": "default", + "type": "Microsoft.ScVmm/VitualMachines/guestAgents", + "properties": { + "provisioningAction": "install", + "status": "connected", + "provisioningState": "Created" + } + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/CreateHybridIdentityMetadata.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/CreateHybridIdentityMetadata.json new file mode 100644 index 000000000000..ce4dddb9952b --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/CreateHybridIdentityMetadata.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "virtualMachineName": "ContosoVm", + "metadataName": "default", + "body": { + "properties": { + "resourceUid": "f8b82dff-38ef-4220-99ef-d3a3f86ddc6c", + "publicKey": "8ec7d60c-9700-40b1-8e6e-e5b2f6f477f2" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ScVmm/VitualMachines/ContosoVm/hybridIdentityMetadatas/default", + "name": "default", + "type": "Microsoft.ScVmm/VitualMachines/hybridIdentityMetadatas", + "properties": { + "resourceUid": "f8b82dff-38ef-4220-99ef-d3a3f86ddc6c", + "publicKey": "8ec7d60c-9700-40b1-8e6e-e5b2f6f477f2", + "identity": { + "principalId": "7b5129bc-8642-4a6a-95f8-63400ca6ec4d", + "tenantId": "ec46ca82-5d4a-4e3e-b4b7-e27f9318645d", + "type": "SystemAssigned" + } + } + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/CreateInventoryItem.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/CreateInventoryItem.json new file mode 100644 index 000000000000..8d653f3bcd0c --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/CreateInventoryItem.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "vmmServerName": "ContosoVMMServer", + "inventoryItemName": "12345678-1234-1234-1234-123456789abc", + "body": { + "properties": { + "inventoryType": "Cloud" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer/InventoryItems/12345678-1234-1234-1234-123456789abc", + "name": "12345678-1234-1234-1234-123456789abc", + "type": "Microsoft.SCVMM/VMMServers/InventoryItems", + "properties": { + "inventoryType": "Cloud", + "managedResourceId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/Clouds/contoso-cloud", + "inventoryItemName": "contoso-cloud", + "uuid": "12345678-1234-1234-1234-123456789abc", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/CreateVMMServer.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/CreateVMMServer.json new file mode 100644 index 000000000000..dbf44b41514f --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/CreateVMMServer.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "vmmServerName": "ContosoVMMServer", + "body": { + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "properties": { + "fqdn": "VMM.contoso.com", + "port": 1234, + "credentials": { + "username": "testuser", + "password": "password" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer", + "name": "ContosoVMMServer", + "type": "Microsoft.SCVMM/VMMServers", + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "properties": { + "fqdn": "VMM.contoso.com", + "port": 1234, + "connectionStatus": "Connected", + "uuid": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "version": "2.0", + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer", + "name": "ContosoVMMServer", + "type": "Microsoft.SCVMM/VMMServers", + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "properties": { + "fqdn": "VMM.contoso.com", + "port": 1234, + "connectionStatus": "Connected", + "uuid": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "version": "2.0", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/CreateVirtualMachine.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/CreateVirtualMachine.json new file mode 100644 index 000000000000..517455c4076b --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/CreateVirtualMachine.json @@ -0,0 +1,78 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "virtualMachineName": "DemoVM", + "body": { + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "properties": { + "cloudId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/Clouds/HRCloud", + "templateId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VirtualMachineTemplates/HRVirtualMachineTemplate", + "vmmServerId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer", + "hardwareProfile": { + "memoryMB": 4096, + "cpuCount": 4 + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VirtualMachines/DemoVM", + "name": "DemoVM", + "type": "Microsoft.SCVMM/VirtualMachines", + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "properties": { + "cloudId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/Clouds/HRCloud", + "templateId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VirtualMachineTemplates/HRVirtualMachineTemplate", + "vmmServerId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer", + "hardwareProfile": { + "memoryMB": 4096, + "cpuCount": 4 + }, + "osProfile": { + "computerName": "DemoVM", + "osType": "Windows" + }, + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VirtualMachines/DemoVM", + "name": "DemoVM", + "type": "Microsoft.SCVMM/VirtualMachines", + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "properties": { + "cloudId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/Clouds/HRCloud", + "templateId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VirtualMachineTemplates/HRVirtualMachineTemplate", + "vmmServerId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer", + "hardwareProfile": { + "memoryMB": 4096, + "cpuCount": 4 + }, + "osProfile": { + "computerName": "DemoVM", + "osType": "Windows" + }, + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/CreateVirtualMachineTemplate.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/CreateVirtualMachineTemplate.json new file mode 100644 index 000000000000..1d887575f95d --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/CreateVirtualMachineTemplate.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "virtualMachineTemplateName": "HRVirtualMachineTemplate", + "body": { + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "properties": { + "vmmServerId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer", + "uuid": "aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VirtualMachineTemplates/HRVirtualMachineTemplate", + "name": "HRVirtualMachineTemplate", + "type": "Microsoft.SCVMM/VirtualMachineTemplates", + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "properties": { + "vmmServerId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer", + "uuid": "aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VirtualMachineTemplates/HRVirtualMachineTemplate", + "name": "HRVirtualMachineTemplate", + "type": "Microsoft.SCVMM/VirtualMachineTemplates", + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "properties": { + "vmmServerId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer", + "uuid": "aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/CreateVirtualNetwork.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/CreateVirtualNetwork.json new file mode 100644 index 000000000000..323279c450f0 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/CreateVirtualNetwork.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "virtualNetworkName": "HRVirtualNetwork", + "body": { + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "properties": { + "vmmServerId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer", + "uuid": "aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VirtualNetworks/HRVirtualNetwork", + "name": "HRVirtualNetwork", + "type": "Microsoft.SCVMM/VirtualNetworks", + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "properties": { + "vmmServerId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer", + "uuid": "aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VirtualNetworks/HRVirtualNetwork", + "name": "HRVirtualNetwork", + "type": "Microsoft.SCVMM/VirtualNetworks", + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "properties": { + "vmmServerId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer", + "uuid": "aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteAvailabilitySet.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteAvailabilitySet.json new file mode 100644 index 000000000000..8d38860ace1e --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteAvailabilitySet.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "availabilitySetName": "HRAvailabilitySet" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteCheckpointVirtualMachine.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteCheckpointVirtualMachine.json new file mode 100644 index 000000000000..dcda02693c4c --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteCheckpointVirtualMachine.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "virtualMachineName": "DemoVM", + "body": { + "id": "Demo CheckpointID" + } + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteCloud.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteCloud.json new file mode 100644 index 000000000000..00f35a685081 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteCloud.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "cloudName": "HRCloud" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteExtension.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteExtension.json new file mode 100644 index 000000000000..8b72dfc86a6d --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteExtension.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myResourceGroup", + "virtualMachineName": "myMachine", + "extensionName": "MMA", + "api-version": "2022-05-21-preview" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteGuestAgent.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteGuestAgent.json new file mode 100644 index 000000000000..983a427f8f66 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteGuestAgent.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "virtualMachineName": "ContosoVm", + "guestAgentName": "default" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteHybridIdentityMetadata.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteHybridIdentityMetadata.json new file mode 100644 index 000000000000..a1d738b69709 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteHybridIdentityMetadata.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "virtualMachineName": "ContosoVm", + "metadataName": "default" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteInventoryItem.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteInventoryItem.json new file mode 100644 index 000000000000..9a604f723bf5 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteInventoryItem.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "vmmServerName": "ContosoVMMServer", + "inventoryItemName": "12345678-1234-1234-1234-123456789abc" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteVMMServer.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteVMMServer.json new file mode 100644 index 000000000000..5ae26ea1d122 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteVMMServer.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "vmmServerName": "ContosoVMMServer" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteVirtualMachine.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteVirtualMachine.json new file mode 100644 index 000000000000..62b0814de387 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteVirtualMachine.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "virtualMachineName": "DemoVM" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteVirtualMachineTemplate.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteVirtualMachineTemplate.json new file mode 100644 index 000000000000..76cec5fef11c --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteVirtualMachineTemplate.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "virtualMachineTemplateName": "HRVirtualMachineTemplate" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteVirtualNetwork.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteVirtualNetwork.json new file mode 100644 index 000000000000..acef347e6127 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/DeleteVirtualNetwork.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "virtualNetworkName": "HRVirtualNetwork" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GETExtension.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GETExtension.json new file mode 100644 index 000000000000..2904305b70c7 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GETExtension.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myResourceGroup", + "virtualMachineName": "myMachine", + "extensionName": "CustomScriptExtension", + "api-version": "2022-05-21-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Machines/myMachine/Extensions/CustomScriptExtension", + "name": "CustomScriptExtension", + "type": "Microsoft.ScVmm/VirtualMachines/extensions", + "location": "eastus2euap", + "properties": { + "publisher": "Microsoft.Compute", + "type": "string", + "typeHandlerVersion": "1.10.3", + "autoUpgradeMinorVersion": false, + "settings": "@{commandToExecute=powershell.exe -c \"Get-Process | Where-Object { $_.CPU -gt 10000 }\"}", + "provisioningState": "Succeeded", + "instanceView": { + "name": "CustomScriptExtension", + "type": "CustomScriptExtension", + "typeHandlerVersion": "1.10.3", + "status": { + "code": "success", + "level": "Information", + "displayStatus": "Provisioning succeeded", + "message": "Finished executing command, StdOut: , StdErr:", + "time": "2019-08-08T20:42:10.999Z" + } + } + } + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GetAvailabilitySet.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GetAvailabilitySet.json new file mode 100644 index 000000000000..e7b9e9e44dfc --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GetAvailabilitySet.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "availabilitySetName": "HRAvailabilitySet" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ScVmm/AvailabilitySets/HRAvailabilitySet", + "name": "HRAvailabilitySet", + "type": "Microsoft.ScVmm/AvailabilitySets", + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "properties": { + "vmmServerId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ScVmm/VMMServers/ContosoVMMServer", + "availabilitySetName": "hr-avset", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GetCloud.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GetCloud.json new file mode 100644 index 000000000000..35db5dbcb9c2 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GetCloud.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "cloudName": "HRCloud" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/Clouds/HRCloud", + "name": "HRCloud", + "type": "Microsoft.SCVMM/Clouds", + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "properties": { + "vmmServerId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer", + "uuid": "aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GetGuestAgent.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GetGuestAgent.json new file mode 100644 index 000000000000..6953e2c6d335 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GetGuestAgent.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "virtualMachineName": "ContosoVm", + "guestAgentName": "default" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ScVmm/VitualMachines/ContosoVm/guestAgents/default", + "name": "default", + "type": "Microsoft.ScVmm/VitualMachines/guestAgents", + "properties": { + "provisioningAction": "install", + "status": "connected", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GetHybridIdentityMetadata.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GetHybridIdentityMetadata.json new file mode 100644 index 000000000000..7abf12ed764a --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GetHybridIdentityMetadata.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "virtualMachineName": "ContosoVm", + "metadataName": "default" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ScVmm/VitualMachines/ContosoVm/hybridIdentityMetadatas/default", + "name": "default", + "type": "Microsoft.ScVmm/VitualMachines/hybridIdentityMetadatas", + "properties": { + "resourceUid": "f8b82dff-38ef-4220-99ef-d3a3f86ddc6c", + "publicKey": "8ec7d60c-9700-40b1-8e6e-e5b2f6f477f2", + "identity": { + "principalId": "7b5129bc-8642-4a6a-95f8-63400ca6ec4d", + "tenantId": "ec46ca82-5d4a-4e3e-b4b7-e27f9318645d", + "type": "SystemAssigned" + } + } + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GetInventoryItem.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GetInventoryItem.json new file mode 100644 index 000000000000..be8f190ac45b --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GetInventoryItem.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "vmmServerName": "ContosoVMMServer", + "inventoryItemName": "12345678-1234-1234-1234-123456789abc" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer/InventoryItems/12345678-1234-1234-1234-123456789abc", + "name": "12345678-1234-1234-1234-123456789abc", + "type": "Microsoft.SCVMM/VMMServers/InventoryItems", + "properties": { + "inventoryType": "Cloud", + "managedResourceId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/Clouds/contoso-cloud", + "inventoryItemName": "contoso-cloud", + "uuid": "12345678-1234-1234-1234-123456789abc", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GetVMMServer.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GetVMMServer.json new file mode 100644 index 000000000000..b24537317d27 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GetVMMServer.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "vmmServerName": "ContosoVMMServer" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer", + "name": "ContosoVMMServer", + "type": "Microsoft.SCVMM/VMMServers", + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "properties": { + "fqdn": "VMM.contoso.com", + "port": 1234, + "connectionStatus": "Connected", + "uuid": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "version": "2.0", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GetVirtualMachine.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GetVirtualMachine.json new file mode 100644 index 000000000000..cc1eab77a675 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GetVirtualMachine.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "virtualMachineName": "DemoVM" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VirtualMachines/DemoVM", + "name": "DemoVM", + "type": "Microsoft.SCVMM/VirtualMachines", + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "properties": { + "cloudId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/Clouds/HRCloud", + "templateId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VirtualMachineTemplates/HRVirtualMachineTemplate", + "vmmServerId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer", + "hardwareProfile": { + "memoryMB": 4096, + "cpuCount": 4 + }, + "osProfile": { + "computerName": "DemoVM", + "osType": "Windows" + }, + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GetVirtualMachineTemplate.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GetVirtualMachineTemplate.json new file mode 100644 index 000000000000..3a8c48dceb76 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GetVirtualMachineTemplate.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "virtualMachineTemplateName": "HRVirtualMachineTemplate" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VirtualMachineTemplates/HRVirtualMachineTemplate", + "name": "HRVirtualMachineTemplate", + "type": "Microsoft.SCVMM/VirtualMachineTemplates", + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "properties": { + "vmmServerId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer", + "uuid": "aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GetVirtualNetwork.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GetVirtualNetwork.json new file mode 100644 index 000000000000..dad245753bad --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GetVirtualNetwork.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "virtualNetworkName": "HRVirtualNetwork" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VirtualNetworks/HRVirtualNetwork", + "name": "HRVirtualNetwork", + "type": "Microsoft.SCVMM/VirtualNetworks", + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "properties": { + "vmmServerId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer", + "uuid": "aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GuestAgent_ListByVm.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GuestAgent_ListByVm.json new file mode 100644 index 000000000000..178e715017a5 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/GuestAgent_ListByVm.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "virtualMachineName": "ContosoVm" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ScVmm/VitualMachines/ContosoVm/guestAgents/default", + "name": "default", + "type": "Microsoft.ScVmm/VitualMachines/guestAgents", + "properties": { + "provisioningAction": "install", + "status": "connected", + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/HybridIdentityMetadata_ListByVm.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/HybridIdentityMetadata_ListByVm.json new file mode 100644 index 000000000000..bb6c5063c45d --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/HybridIdentityMetadata_ListByVm.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "virtualMachineName": "ContosoVm" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ScVmm/VitualMachines/ContosoVm/hybridIdentityMetadatas/default", + "name": "default", + "type": "Microsoft.ScVmm/VitualMachines/hybridIdentityMetadatas", + "properties": { + "resourceUid": "f8b82dff-38ef-4220-99ef-d3a3f86ddc6c", + "publicKey": "8ec7d60c-9700-40b1-8e6e-e5b2f6f477f2", + "identity": { + "principalId": "7b5129bc-8642-4a6a-95f8-63400ca6ec4d", + "tenantId": "ec46ca82-5d4a-4e3e-b4b7-e27f9318645d", + "type": "SystemAssigned" + } + } + } + ] + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListAvailabilitySetsByResourceGroup.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListAvailabilitySetsByResourceGroup.json new file mode 100644 index 000000000000..b4f2b681e600 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListAvailabilitySetsByResourceGroup.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ScVmm/AvailabilitySets/HRAvailabilitySet", + "name": "HRAvailabilitySet", + "type": "Microsoft.ScVmm/AvailabilitySets", + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "properties": { + "vmmServerId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ScVmm/VMMServers/ContosoVMMServer", + "availabilitySetName": "hr-avset", + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListAvailabilitySetsBySubscription.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListAvailabilitySetsBySubscription.json new file mode 100644 index 000000000000..ac0c8a3de375 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListAvailabilitySetsBySubscription.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ScVmm/AvailabilitySets/HRAvailabilitySet", + "name": "HRAvailabilitySet", + "type": "Microsoft.ScVmm/AvailabilitySets", + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "properties": { + "vmmServerId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ScVmm/VMMServers/ContosoVMMServer", + "availabilitySetName": "hr-avset", + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListCloudsByResourceGroup.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListCloudsByResourceGroup.json new file mode 100644 index 000000000000..8506cac1da13 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListCloudsByResourceGroup.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/Clouds/HRCloud", + "name": "HRCloud", + "type": "Microsoft.SCVMM/Clouds", + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "properties": { + "vmmServerId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer", + "uuid": "aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListCloudsBySubscription.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListCloudsBySubscription.json new file mode 100644 index 000000000000..1b64c56fd177 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListCloudsBySubscription.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/Clouds/HRCloud", + "name": "HRCloud", + "type": "Microsoft.SCVMM/Clouds", + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "properties": { + "vmmServerId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer", + "uuid": "aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListExtension.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListExtension.json new file mode 100644 index 000000000000..85d15e420d96 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListExtension.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myResourceGroup", + "virtualMachineName": "myMachine", + "api-version": "2022-05-21-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Machines/myMachine/Extensions/CustomScriptExtension", + "name": "CustomScriptExtension", + "location": "eastus2euap", + "type": "Microsoft.ScVmm/VirtualMachines/extensions", + "properties": { + "publisher": "Microsoft.Compute", + "type": "CustomScriptExtension", + "typeHandlerVersion": "1.10.3", + "autoUpgradeMinorVersion": false, + "settings": { + "commandToExecute": "powershell.exe -c \"Get-Process | Where-Object { $_.CPU -gt 10000 }\"" + }, + "provisioningState": "Succeeded", + "instanceView": { + "name": "CustomScriptExtension", + "type": "CustomScriptExtension", + "typeHandlerVersion": "1.10.3", + "status": { + "code": "success", + "level": "Information", + "displayStatus": "Provisioning succeeded", + "message": "formattedMessage: Finished executing command, StdOut: , StdErr: ", + "time": "2020-08-13T17:18:57.405Z" + } + } + } + }, + { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Machines/myMachine/Extensions/winosupdateextension", + "name": "winosupdateextension", + "location": "eastus2euap", + "type": "Microsoft.ScVmm/VirtualMachines/extensions", + "properties": { + "publisher": "microsoft.softwareupdatemanagement.test", + "type": "windowsosupdateextension", + "typeHandlerVersion": "1.0.0.0", + "autoUpgradeMinorVersion": false, + "settings": {}, + "provisioningState": "Creating", + "instanceView": { + "name": "winosupdateextension", + "type": "windowsosupdateextension", + "typeHandlerVersion": "1.0.0.0", + "status": {} + } + } + } + ] + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListInventoryItemsByVMMServer.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListInventoryItemsByVMMServer.json new file mode 100644 index 000000000000..b682cad28dd8 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListInventoryItemsByVMMServer.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "vmmServerName": "ContosoVMMServer" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer/InventoryItems/12345678-1234-1234-1234-123456789abc", + "name": "12345678-1234-1234-1234-123456789abc", + "type": "Microsoft.SCVMM/VMMServers/InventoryItems", + "properties": { + "inventoryType": "Cloud", + "managedResourceId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/Clouds/contoso-cloud", + "inventoryItemName": "contoso-cloud", + "uuid": "12345678-1234-1234-1234-123456789abc", + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListOperations.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListOperations.json new file mode 100644 index 000000000000..539160a3cb08 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListOperations.json @@ -0,0 +1,148 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.ScVmm/VmmServers/Read", + "display": { + "provider": "Microsoft.ScVmm resource provider", + "resource": "VmmServers", + "operation": "Gets/List VmmServer resources.", + "description": "Gets/List the VmmServer resource data." + } + }, + { + "name": "Microsoft.ScVmm/VmmServers/Write", + "display": { + "provider": "Microsoft.ScVmm resource provider", + "resource": "VmmServers", + "operation": "Create or Update VmmServer resource.", + "description": "Read VmmServer." + } + }, + { + "name": "Microsoft.ScVmm/VmmServers/Delete", + "display": { + "provider": "Microsoft.ScVmm resource provider", + "resource": "VmmServers", + "operation": "Deletes the VmmServer resource.", + "description": "Deletes the VmmServer resource." + } + }, + { + "name": "Microsoft.ScVmm/Clouds/Read", + "display": { + "provider": "Microsoft.ScVmm resource provider", + "resource": "Clouds", + "operation": "Gets/List Cloud resources.", + "description": "Gets/List the Cloud resource data." + } + }, + { + "name": "Microsoft.ScVmm/Clouds/Write", + "display": { + "provider": "Microsoft.ScVmm resource provider", + "resource": "Clouds", + "operation": "Create or Update Cloud resource.", + "description": "Create or Update Cloud resource data." + } + }, + { + "name": "Microsoft.ScVmm/Clouds/Delete", + "display": { + "provider": "Microsoft.ScVmm resource provider", + "resource": "Clouds", + "operation": "Deletes the Cloud resource.", + "description": "Deletes the Cloud resource." + } + }, + { + "name": "Microsoft.ScVmm/VirtualNetworks/Read", + "display": { + "provider": "Microsoft.ScVmm resource provider", + "resource": "VirtualNetworks", + "operation": "Gets/List VirtualNetwork resources.", + "description": "Gets/List the VirtualNetwork resource data." + } + }, + { + "name": "Microsoft.ScVmm/VirtualNetworks/Write", + "display": { + "provider": "Microsoft.ScVmm resource provider", + "resource": "VirtualNetworks", + "operation": "Create or Update VirtualNetwork resource.", + "description": "Create or Update VirtualNetwork resource data." + } + }, + { + "name": "Microsoft.ScVmm/VirtualNetworks/Delete", + "display": { + "provider": "Microsoft.ScVmm resource provider", + "resource": "VirtualNetworks", + "operation": "Deletes the VirtualNetwork resource.", + "description": "Deletes the VirtualNetwork resource." + } + }, + { + "name": "Microsoft.ScVmm/VirtualMachineTemplates/Read", + "display": { + "provider": "Microsoft.ScVmm resource provider", + "resource": "VirtualMachineTemplates", + "operation": "Gets/List VirtualMachineTemplate resources.", + "description": "Gets/List the VirtualMachineTemplate resource data." + } + }, + { + "name": "Microsoft.ScVmm/VirtualMachineTemplates/Write", + "display": { + "provider": "Microsoft.ScVmm resource provider", + "resource": "VirtualMachineTemplates", + "operation": "Create or Update VirtualMachineTemplate resource.", + "description": "Create or Update VirtualMachineTemplate resource data." + } + }, + { + "name": "Microsoft.ScVmm/VirtualMachineTemplates/Delete", + "display": { + "provider": "Microsoft.ScVmm resource provider", + "resource": "VirtualMachineTemplates", + "operation": "Deletes the VirtualMachineTemplate resource.", + "description": "Deletes the VirtualMachineTemplate resource." + } + }, + { + "name": "Microsoft.ScVmm/VirtualMachines/Read", + "display": { + "provider": "Microsoft.ScVmm resource provider", + "resource": "VirtualMachines", + "operation": "Gets/List VirtualMachine resources.", + "description": "Gets/List the VirtualMachine resource data." + } + }, + { + "name": "Microsoft.ScVmm/VirtualMachines/Write", + "display": { + "provider": "Microsoft.ScVmm resource provider", + "resource": "VirtualMachines", + "operation": "Create or Update VirtualMachine resource.", + "description": "Create or Update VirtualMachine resource data." + } + }, + { + "name": "Microsoft.ScVmm/VirtualMachines/Delete", + "display": { + "provider": "Microsoft.ScVmm resource provider", + "resource": "VirtualMachines", + "operation": "Deletes the VirtualMachine resource.", + "description": "Deletes the VirtualMachine resource." + } + } + ] + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListVMMServersByResourceGroup.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListVMMServersByResourceGroup.json new file mode 100644 index 000000000000..a8913d9aa4cc --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListVMMServersByResourceGroup.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer", + "name": "ContosoVMMServer", + "type": "Microsoft.SCVMM/VMMServers", + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "properties": { + "fqdn": "VMM.contoso.com", + "port": 1234, + "connectionStatus": "Connected", + "uuid": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "version": "2.0", + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListVMMServersBySubscription.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListVMMServersBySubscription.json new file mode 100644 index 000000000000..56c53cfe9bc7 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListVMMServersBySubscription.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer", + "name": "ContosoVMMServer", + "type": "Microsoft.SCVMM/VMMServers", + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "properties": { + "fqdn": "VMM.contoso.com", + "port": 1234, + "connectionStatus": "Connected", + "uuid": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "version": "2.0", + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListVirtualMachineTemplatesByResourceGroup.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListVirtualMachineTemplatesByResourceGroup.json new file mode 100644 index 000000000000..1c4f0a33c107 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListVirtualMachineTemplatesByResourceGroup.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VirtualMachineTemplates/HRVirtualMachineTemplate", + "name": "HRVirtualMachineTemplate", + "type": "Microsoft.SCVMM/VirtualMachineTemplates", + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "properties": { + "vmmServerId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer", + "uuid": "aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListVirtualMachineTemplatesBySubscription.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListVirtualMachineTemplatesBySubscription.json new file mode 100644 index 000000000000..dc983c36ae46 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListVirtualMachineTemplatesBySubscription.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VirtualMachineTemplates/HRVirtualMachineTemplate", + "name": "HRVirtualMachineTemplate", + "type": "Microsoft.SCVMM/VirtualMachineTemplates", + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "properties": { + "vmmServerId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer", + "uuid": "aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListVirtualMachinesByResourceGroup.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListVirtualMachinesByResourceGroup.json new file mode 100644 index 000000000000..daaea9b0a9fd --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListVirtualMachinesByResourceGroup.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VirtualMachines/DemoVM", + "name": "DemoVM", + "type": "Microsoft.SCVMM/VirtualMachines", + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "properties": { + "cloudId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/Clouds/HRCloud", + "templateId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VirtualMachineTemplates/HRVirtualMachineTemplate", + "vmmServerId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer", + "hardwareProfile": { + "memoryMB": 4096, + "cpuCount": 4 + }, + "osProfile": { + "computerName": "DemoVM", + "osType": "Windows" + }, + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListVirtualMachinesBySubscription.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListVirtualMachinesBySubscription.json new file mode 100644 index 000000000000..4fea05eeb6c1 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListVirtualMachinesBySubscription.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VirtualMachines/DemoVM", + "name": "DemoVM", + "type": "Microsoft.SCVMM/VirtualMachines", + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "properties": { + "cloudId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/Clouds/HRCloud", + "templateId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VirtualMachineTemplates/HRVirtualMachineTemplate", + "vmmServerId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer", + "hardwareProfile": { + "memoryMB": 4096, + "cpuCount": 4 + }, + "osProfile": { + "computerName": "DemoVM", + "osType": "Windows" + }, + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListVirtualNetworksByResourceGroup.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListVirtualNetworksByResourceGroup.json new file mode 100644 index 000000000000..da3d0243dc0a --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListVirtualNetworksByResourceGroup.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VirtualNetworks/HRVirtualNetwork", + "name": "HRVirtualNetwork", + "type": "Microsoft.SCVMM/VirtualNetworks", + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "properties": { + "vmmServerId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer", + "uuid": "aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListVirtualNetworksBySubscription.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListVirtualNetworksBySubscription.json new file mode 100644 index 000000000000..4d249aabe37f --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/ListVirtualNetworksBySubscription.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VirtualNetworks/HRVirtualNetwork", + "name": "HRVirtualNetwork", + "type": "Microsoft.SCVMM/VirtualNetworks", + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "properties": { + "vmmServerId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer", + "uuid": "aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/PUTExtension.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/PUTExtension.json new file mode 100644 index 000000000000..98e84445b7df --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/PUTExtension.json @@ -0,0 +1,71 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myResourceGroup", + "virtualMachineName": "myMachine", + "extensionName": "CustomScriptExtension", + "api-version": "2022-05-21-preview", + "extensionParameters": { + "location": "eastus2euap", + "properties": { + "publisher": "Microsoft.Compute", + "typeHandlerVersion": "1.10", + "type": "CustomScriptExtension", + "settings": { + "commandToExecute": "powershell.exe -c \"Get-Process | Where-Object { $_.CPU -gt 10000 }\"" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Machines/myMachine/Extensions/CustomScriptExtension", + "name": "CustomScriptExtension", + "type": "Microsoft.ScVmm/VirtualMachines/extensions", + "location": "eastus2euap", + "properties": { + "publisher": "Microsoft.Compute", + "type": "string", + "typeHandlerVersion": "1.10.3", + "autoUpgradeMinorVersion": false, + "settings": "@{commandToExecute=powershell.exe -c \"Get-Process | Where-Object { $_.CPU -gt 10000 }\"}", + "provisioningState": "Succeeded", + "instanceView": { + "name": "CustomScriptExtension", + "type": "CustomScriptExtension", + "typeHandlerVersion": "1.10.3", + "status": { + "code": "success", + "level": "Information", + "message": "Finished executing command, StdOut: , StdErr:", + "time": "2020-08-08T20:42:10.999Z" + } + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Machines/myMachine/Extensions/CustomScriptExtension", + "name": "CustomScriptExtension", + "type": "Microsoft.ScVmm/VirtualMachines/extensions", + "location": "eastus2euap", + "properties": { + "publisher": "Microsoft.Compute", + "type": "string", + "typeHandlerVersion": "1.10.3", + "autoUpgradeMinorVersion": false, + "settings": "@{commandToExecute=powershell.exe -c \"Get-Process | Where-Object { $_.CPU -gt 10000 }\"}", + "provisioningState": "Created", + "instanceView": { + "name": "CustomScriptExtension", + "type": "CustomScriptExtension", + "typeHandlerVersion": "1.10.3", + "status": {} + } + } + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/RestartVirtualMachine.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/RestartVirtualMachine.json new file mode 100644 index 000000000000..736ba44a30a6 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/RestartVirtualMachine.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "virtualMachineName": "DemoVM" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/RestoreCheckpointVirtualMachine.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/RestoreCheckpointVirtualMachine.json new file mode 100644 index 000000000000..dcda02693c4c --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/RestoreCheckpointVirtualMachine.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "virtualMachineName": "DemoVM", + "body": { + "id": "Demo CheckpointID" + } + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/StartVirtualMachine.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/StartVirtualMachine.json new file mode 100644 index 000000000000..736ba44a30a6 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/StartVirtualMachine.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "virtualMachineName": "DemoVM" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/StopVirtualMachine.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/StopVirtualMachine.json new file mode 100644 index 000000000000..8d971abb43c9 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/StopVirtualMachine.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "virtualMachineName": "DemoVM", + "body": { + "skipShutdown": true + } + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/UpdateAvailabilitySet.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/UpdateAvailabilitySet.json new file mode 100644 index 000000000000..0de36463a06b --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/UpdateAvailabilitySet.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "availabilitySetName": "HRAvailabilitySet", + "body": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ScVmm/AvailabilitySets/HRAvailabilitySet", + "name": "HRAvailabilitySet", + "type": "Microsoft.ScVmm/AvailabilitySets", + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "vmmServerId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ScVmm/VMMServers/ContosoVMMServer", + "availabilitySetName": "hr-avset", + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ScVmm/AvailabilitySets/HRAvailabilitySet", + "name": "HRAvailabilitySet", + "type": "Microsoft.ScVmm/AvailabilitySets", + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "vmmServerId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ScVmm/VMMServers/ContosoVMMServer", + "availabilitySetName": "hr-avset", + "provisioningState": "Succeeded" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/UpdateCloud.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/UpdateCloud.json new file mode 100644 index 000000000000..9ead3601c20c --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/UpdateCloud.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "cloudName": "HRCloud", + "body": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/Clouds/HRCloud", + "name": "HRCloud", + "type": "Microsoft.SCVMM/Clouds", + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "vmmServerId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer", + "uuid": "aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/Clouds/HRCloud", + "name": "HRCloud", + "type": "Microsoft.SCVMM/Clouds", + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "vmmServerId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer", + "uuid": "aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", + "provisioningState": "Succeeded" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/UpdateExtension.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/UpdateExtension.json new file mode 100644 index 000000000000..b605dcd85566 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/UpdateExtension.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myResourceGroup", + "virtualMachineName": "myMachine", + "extensionName": "CustomScriptExtension", + "api-version": "2022-05-21-preview", + "extensionParameters": { + "properties": { + "publisher": "Microsoft.Compute", + "typeHandlerVersion": "1.10", + "type": "CustomScriptExtension", + "settings": { + "commandToExecute": "powershell.exe -c \"Get-Process | Where-Object { $_.CPU -lt 100 }\"" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Machines/myMachine/Extensions/CustomScriptExtension", + "name": "CustomScriptExtension", + "type": "Microsoft.ScVmm/VirtualMachines/extensions", + "location": "eastus2euap", + "properties": { + "publisher": "Microsoft.Compute", + "type": "string", + "typeHandlerVersion": "1.10.3", + "autoUpgradeMinorVersion": false, + "settings": "@{commandToExecute=powershell.exe -c \"Get-Process | Where-Object { $_.CPU -lt 100 }\"}", + "provisioningState": "Succeeded", + "instanceView": { + "name": "CustomScriptExtension", + "type": "CustomScriptExtension", + "typeHandlerVersion": "1.10.3", + "status": { + "code": "success", + "level": "Information", + "message": "Finished executing command, StdOut: , StdErr:", + "time": "2020-01-08T20:42:10.999Z" + } + } + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/UpdateVMMServer.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/UpdateVMMServer.json new file mode 100644 index 000000000000..0f38475d449e --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/UpdateVMMServer.json @@ -0,0 +1,69 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "vmmServerName": "ContosoVMMServer", + "body": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer", + "name": "ContosoVMMServer", + "type": "Microsoft.SCVMM/VMMServers", + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "fqdn": "VMM.contoso.com", + "port": 1234, + "connectionStatus": "Connected", + "uuid": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "version": "2.0", + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer", + "name": "ContosoVMMServer", + "type": "Microsoft.SCVMM/VMMServers", + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "fqdn": "VMM.contoso.com", + "port": 1234, + "connectionStatus": "Connected", + "uuid": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "version": "2.0", + "provisioningState": "Succeeded" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/UpdateVirtualMachine.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/UpdateVirtualMachine.json new file mode 100644 index 000000000000..5ad5fb246de8 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/UpdateVirtualMachine.json @@ -0,0 +1,211 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "virtualMachineName": "DemoVM", + "body": { + "properties": { + "hardwareProfile": { + "memoryMB": 4096, + "cpuCount": 4 + }, + "storageProfile": { + "disks": [ + { + "name": "test", + "diskSizeGB": 10 + } + ] + }, + "networkProfile": { + "networkInterfaces": [ + { + "name": "test", + "ipv4AddressType": "Dynamic", + "ipv6AddressType": "Dynamic", + "macAddressType": "Static" + } + ] + } + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VirtualMachines/DemoVM", + "name": "DemoVM", + "type": "Microsoft.SCVMM/VirtualMachines", + "location": "East US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "properties": { + "cloudId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/Clouds/HRCloud", + "templateId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VirtualMachineTemplates/HRVirtualMachineTemplate", + "vmmServerId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer", + "hardwareProfile": { + "memoryMB": 4096, + "cpuCount": 4, + "dynamicMemoryEnabled": "false", + "dynamicMemoryMaxMB": 0, + "dynamicMemoryMinMB": 0, + "isHighlyAvailable": "string" + }, + "osProfile": { + "computerName": "DemoVM", + "osType": "Windows", + "osName": "string" + }, + "networkProfile": { + "networkInterfaces": [ + { + "name": "test", + "ipv4Addresses": [ + "string" + ], + "ipv6Addresses": [ + "string" + ], + "macAddress": "string", + "virtualNetworkId": "string", + "displayName": "string", + "networkName": "string", + "ipv4AddressType": "Dynamic", + "ipv6AddressType": "Dynamic", + "macAddressType": "Static", + "nicId": "string" + } + ] + }, + "storageProfile": { + "disks": [ + { + "name": "test", + "diskId": "string", + "diskSizeGB": 10, + "maxDiskSizeGB": 10, + "displayName": "string", + "bus": 0, + "lun": 0, + "busType": "string", + "vhdType": "string", + "volumeType": "string", + "vhdFormatType": "string", + "templateDiskId": "string", + "storageQoSPolicy": { + "name": "string", + "id": "string" + }, + "createDiffDisk": "false" + } + ] + }, + "vmName": "string", + "uuid": "string", + "generation": 0, + "powerState": "string", + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VirtualMachines/DemoVM", + "name": "DemoVM", + "type": "Microsoft.SCVMM/VirtualMachines", + "location": "East US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "properties": { + "cloudId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/Clouds/HRCloud", + "templateId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VirtualMachineTemplates/HRVirtualMachineTemplate", + "vmmServerId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer", + "hardwareProfile": { + "memoryMB": 4096, + "cpuCount": 4, + "dynamicMemoryEnabled": "false", + "dynamicMemoryMaxMB": 0, + "dynamicMemoryMinMB": 0, + "isHighlyAvailable": "string" + }, + "osProfile": { + "computerName": "DemoVM", + "osType": "Windows", + "osName": "string" + }, + "networkProfile": { + "networkInterfaces": [ + { + "name": "test", + "ipv4Addresses": [ + "string" + ], + "ipv6Addresses": [ + "string" + ], + "macAddress": "string", + "virtualNetworkId": "string", + "displayName": "string", + "networkName": "string", + "ipv4AddressType": "Dynamic", + "ipv6AddressType": "Dynamic", + "macAddressType": "Static", + "nicId": "string" + } + ] + }, + "storageProfile": { + "disks": [ + { + "name": "test", + "diskId": "string", + "diskSizeGB": 10, + "maxDiskSizeGB": 10, + "displayName": "string", + "bus": 0, + "lun": 0, + "busType": "string", + "vhdType": "string", + "volumeType": "string", + "vhdFormatType": "string", + "templateDiskId": "string", + "storageQoSPolicy": { + "name": "string", + "id": "string" + }, + "createDiffDisk": "false" + } + ] + }, + "vmName": "string", + "uuid": "string", + "generation": 0, + "powerState": "string", + "provisioningState": "Created" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/UpdateVirtualMachineTemplate.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/UpdateVirtualMachineTemplate.json new file mode 100644 index 000000000000..c8700e4b3cf3 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/UpdateVirtualMachineTemplate.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "virtualMachineTemplateName": "HRVirtualMachineTemplate", + "body": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VirtualMachineTemplates/HRVirtualMachineTemplate", + "name": "HRVirtualMachineTemplate", + "type": "Microsoft.SCVMM/VirtualMachineTemplates", + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "vmmServerId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer", + "uuid": "aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VirtualMachineTemplates/HRVirtualMachineTemplate", + "name": "HRVirtualMachineTemplate", + "type": "Microsoft.SCVMM/VirtualMachineTemplates", + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "vmmServerId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer", + "uuid": "aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", + "provisioningState": "Succeeded" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/UpdateVirtualNetwork.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/UpdateVirtualNetwork.json new file mode 100644 index 000000000000..f58b6d5bd706 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/examples/UpdateVirtualNetwork.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "api-version": "2022-05-21-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "virtualNetworkName": "HRVirtualNetwork", + "body": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VirtualNetworks/HRVirtualNetwork", + "name": "HRVirtualNetwork", + "type": "Microsoft.SCVMM/VirtualNetworks", + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "vmmServerId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer", + "uuid": "aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VirtualNetworks/HRVirtualNetwork", + "name": "HRVirtualNetwork", + "type": "Microsoft.SCVMM/VirtualNetworks", + "location": "East US", + "extendedLocation": { + "type": "customLocation", + "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "vmmServerId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer", + "uuid": "aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", + "provisioningState": "Succeeded" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://foo.com/operationstatus" + } + } + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/scvmm.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/scvmm.json new file mode 100644 index 000000000000..f6dd879d13b2 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2022-05-21-preview/scvmm.json @@ -0,0 +1,5623 @@ +{ + "swagger": "2.0", + "info": { + "title": "SCVMM", + "description": "The Microsoft.ScVmm Rest API spec.", + "version": "2022-05-21-preview" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow.", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/vmmServers/{vmmServerName}": { + "get": { + "tags": [ + "VmmServers" + ], + "operationId": "VmmServers_Get", + "summary": "Gets a VMMServer.", + "description": "Implements VMMServer GET method.", + "x-ms-examples": { + "GetVMMServer": { + "$ref": "./examples/GetVMMServer.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "vmmServerName", + "required": true, + "type": "string", + "description": "Name of the VMMServer." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Retrieves the VmmServers resource.", + "schema": { + "$ref": "#/definitions/VMMServer" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "VmmServers" + ], + "operationId": "VmmServers_CreateOrUpdate", + "description": "Onboards the SCVMM fabric as an Azure VmmServer resource.", + "summary": "Implements VmmServers PUT method.", + "x-ms-examples": { + "CreateVMMServer": { + "$ref": "./examples/CreateVMMServer.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "vmmServerName", + "required": true, + "type": "string", + "description": "Name of the VMMServer." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "body", + "description": "Request payload.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VMMServer" + } + } + ], + "responses": { + "200": { + "description": "Creates or Updates the VmmServers resource.", + "schema": { + "$ref": "#/definitions/VMMServer" + } + }, + "201": { + "description": "Creates or Updates the VmmServers resource.", + "schema": { + "$ref": "#/definitions/VMMServer" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "delete": { + "tags": [ + "VmmServers" + ], + "operationId": "VmmServers_Delete", + "description": "Deboards the SCVMM fabric from Azure.", + "summary": "Implements VmmServers DELETE method.", + "x-ms-examples": { + "DeleteVMMServer": { + "$ref": "./examples/DeleteVMMServer.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "vmmServerName", + "required": true, + "type": "string", + "description": "Name of the VMMServer." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "in": "query", + "name": "force", + "description": "Forces the resource to be deleted from azure. The corresponding CR would be attempted to be deleted too.", + "required": false, + "type": "boolean" + } + ], + "responses": { + "200": { + "description": "Deletes the VmmServers resource." + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "patch": { + "tags": [ + "VmmServers" + ], + "operationId": "VmmServers_Update", + "summary": "Implements VmmServers PATCH method.", + "description": "Updates the VmmServers resource.", + "x-ms-examples": { + "UpdateVMMServer": { + "$ref": "./examples/UpdateVMMServer.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "in": "path", + "name": "vmmServerName", + "required": true, + "type": "string", + "description": "Name of the VMMServer." + }, + { + "name": "body", + "description": "VmmServers patch payload.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ResourcePatch" + } + } + ], + "responses": { + "200": { + "description": "Successful.", + "schema": { + "$ref": "#/definitions/VMMServer" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/VMMServer" + } + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/vmmServers": { + "get": { + "tags": [ + "VmmServers" + ], + "operationId": "VmmServers_ListByResourceGroup", + "summary": "Implements GET VmmServers in a resource group.", + "description": "List of VmmServers in a resource group.", + "x-ms-examples": { + "ListVmmServersByResourceGroup": { + "$ref": "./examples/ListVMMServersByResourceGroup.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Lists all VmmServers under the resource group.", + "schema": { + "$ref": "#/definitions/VMMServerListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.ScVmm/vmmServers": { + "get": { + "tags": [ + "VmmServers" + ], + "operationId": "VmmServers_ListBySubscription", + "summary": "Implements GET VmmServers in a subscription.", + "description": "List of VmmServers in a subscription.", + "x-ms-examples": { + "ListVmmServersBySubscription": { + "$ref": "./examples/ListVMMServersBySubscription.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Lists all VmmServers under the subscription.", + "schema": { + "$ref": "#/definitions/VMMServerListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.ScVmm/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "description": "Returns list of all operations.", + "x-ms-examples": { + "ListOperations": { + "$ref": "./examples/ListOperations.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/ResourceProviderOperationList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/clouds/{cloudName}": { + "get": { + "tags": [ + "Clouds" + ], + "operationId": "Clouds_Get", + "summary": "Gets a Cloud.", + "description": "Implements Cloud GET method.", + "x-ms-examples": { + "GetCloud": { + "$ref": "./examples/GetCloud.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "cloudName", + "required": true, + "type": "string", + "description": "Name of the Cloud." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Retrieves the Clouds resource.", + "schema": { + "$ref": "#/definitions/Cloud" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "Clouds" + ], + "operationId": "Clouds_CreateOrUpdate", + "description": "Onboards the ScVmm fabric cloud as an Azure cloud resource.", + "summary": "Implements Clouds PUT method.", + "x-ms-examples": { + "CreateCloud": { + "$ref": "./examples/CreateCloud.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "cloudName", + "required": true, + "type": "string", + "description": "Name of the Cloud." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "body", + "description": "Request payload.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Cloud" + } + } + ], + "responses": { + "200": { + "description": "Creates or Updates the Clouds resource.", + "schema": { + "$ref": "#/definitions/Cloud" + } + }, + "201": { + "description": "Creates or Updates the Clouds resource.", + "schema": { + "$ref": "#/definitions/Cloud" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "delete": { + "tags": [ + "Clouds" + ], + "operationId": "Clouds_Delete", + "description": "Deregisters the ScVmm fabric cloud from Azure.", + "summary": "Implements Cloud resource DELETE method.", + "x-ms-examples": { + "DeleteCloud": { + "$ref": "./examples/DeleteCloud.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "cloudName", + "required": true, + "type": "string", + "description": "Name of the Cloud." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "in": "query", + "name": "force", + "description": "Forces the resource to be deleted from azure. The corresponding CR would be attempted to be deleted too.", + "required": false, + "type": "boolean" + } + ], + "responses": { + "200": { + "description": "Deletes the Clouds resource." + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "patch": { + "tags": [ + "Clouds" + ], + "operationId": "Clouds_Update", + "summary": "Implements the Clouds PATCH method.", + "description": "Updates the Clouds resource.", + "x-ms-examples": { + "UpdateCloud": { + "$ref": "./examples/UpdateCloud.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "in": "path", + "name": "cloudName", + "required": true, + "type": "string", + "description": "Name of the Cloud." + }, + { + "name": "body", + "description": "Clouds patch payload.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ResourcePatch" + } + } + ], + "responses": { + "200": { + "description": "Successful.", + "schema": { + "$ref": "#/definitions/Cloud" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/Cloud" + } + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/clouds": { + "get": { + "tags": [ + "Clouds" + ], + "operationId": "Clouds_ListByResourceGroup", + "summary": "Implements GET Clouds in a resource group.", + "description": "List of Clouds in a resource group.", + "x-ms-examples": { + "ListCloudsByResourceGroup": { + "$ref": "./examples/ListCloudsByResourceGroup.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Lists all Clouds under the resource group.", + "schema": { + "$ref": "#/definitions/CloudListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.ScVmm/clouds": { + "get": { + "tags": [ + "Clouds" + ], + "operationId": "Clouds_ListBySubscription", + "summary": "Implements GET Clouds in a subscription.", + "description": "List of Clouds in a subscription.", + "x-ms-examples": { + "ListCloudsBySubscription": { + "$ref": "./examples/ListCloudsBySubscription.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Lists all Clouds under the subscription.", + "schema": { + "$ref": "#/definitions/CloudListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/virtualNetworks/{virtualNetworkName}": { + "get": { + "tags": [ + "VirtualNetworks" + ], + "operationId": "VirtualNetworks_Get", + "summary": "Gets a VirtualNetwork.", + "description": "Implements VirtualNetwork GET method.", + "x-ms-examples": { + "GetVirtualNetwork": { + "$ref": "./examples/GetVirtualNetwork.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "virtualNetworkName", + "required": true, + "type": "string", + "description": "Name of the VirtualNetwork." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Retrieves the VirtualNetworks resource.", + "schema": { + "$ref": "#/definitions/VirtualNetwork" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "VirtualNetworks" + ], + "operationId": "VirtualNetworks_CreateOrUpdate", + "description": "Onboards the ScVmm virtual network as an Azure virtual network resource.", + "summary": "Implements VirtualNetworks PUT method.", + "x-ms-examples": { + "CreateVirtualNetwork": { + "$ref": "./examples/CreateVirtualNetwork.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "virtualNetworkName", + "required": true, + "type": "string", + "description": "Name of the VirtualNetwork." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "body", + "description": "Request payload.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualNetwork" + } + } + ], + "responses": { + "200": { + "description": "Creates or Updates the VirtualNetworks resource.", + "schema": { + "$ref": "#/definitions/VirtualNetwork" + } + }, + "201": { + "description": "Creates or Updates the VirtualNetworks resource.", + "schema": { + "$ref": "#/definitions/VirtualNetwork" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "delete": { + "tags": [ + "VirtualNetworks" + ], + "operationId": "VirtualNetworks_Delete", + "description": "Deregisters the ScVmm virtual network from Azure.", + "summary": "Implements VirtualNetwork DELETE method.", + "x-ms-examples": { + "DeleteVirtualNetwork": { + "$ref": "./examples/DeleteVirtualNetwork.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "virtualNetworkName", + "required": true, + "type": "string", + "description": "Name of the VirtualNetwork." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "in": "query", + "name": "force", + "description": "Forces the resource to be deleted from azure. The corresponding CR would be attempted to be deleted too.", + "required": false, + "type": "boolean" + } + ], + "responses": { + "200": { + "description": "Deletes the VirtualNetworks resource." + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "patch": { + "tags": [ + "VirtualNetworks" + ], + "operationId": "VirtualNetworks_Update", + "summary": "Implements the VirtualNetworks PATCH method.", + "description": "Updates the VirtualNetworks resource.", + "x-ms-examples": { + "UpdateVirtualNetwork": { + "$ref": "./examples/UpdateVirtualNetwork.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "in": "path", + "name": "virtualNetworkName", + "required": true, + "type": "string", + "description": "Name of the VirtualNetwork." + }, + { + "name": "body", + "description": "VirtualNetworks patch payload.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ResourcePatch" + } + } + ], + "responses": { + "200": { + "description": "Successful.", + "schema": { + "$ref": "#/definitions/VirtualNetwork" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/VirtualNetwork" + } + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/virtualNetworks": { + "get": { + "tags": [ + "VirtualNetworks" + ], + "operationId": "VirtualNetworks_ListByResourceGroup", + "summary": "Implements GET VirtualNetworks in a resource group.", + "description": "List of VirtualNetworks in a resource group.", + "x-ms-examples": { + "ListVirtualNetworksByResourceGroup": { + "$ref": "./examples/ListVirtualNetworksByResourceGroup.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Lists all VirtualNetworks under the resource group.", + "schema": { + "$ref": "#/definitions/VirtualNetworkListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.ScVmm/virtualNetworks": { + "get": { + "tags": [ + "VirtualNetworks" + ], + "operationId": "VirtualNetworks_ListBySubscription", + "summary": "Implements GET VirtualNetworks in a subscription.", + "description": "List of VirtualNetworks in a subscription.", + "x-ms-examples": { + "ListVirtualNetworksBySubscription": { + "$ref": "./examples/ListVirtualNetworksBySubscription.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Lists all VirtualNetworks under the subscription.", + "schema": { + "$ref": "#/definitions/VirtualNetworkListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/virtualMachines/{virtualMachineName}": { + "get": { + "tags": [ + "VirtualMachines" + ], + "operationId": "VirtualMachines_Get", + "summary": "Gets a VirtualMachine.", + "description": "Implements VirtualMachine GET method.", + "x-ms-examples": { + "GetVirtualMachine": { + "$ref": "./examples/GetVirtualMachine.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "virtualMachineName", + "required": true, + "type": "string", + "description": "Name of the VirtualMachine." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Retrieves the VirtualMachines resource.", + "schema": { + "$ref": "#/definitions/VirtualMachine" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "VirtualMachines" + ], + "operationId": "VirtualMachines_CreateOrUpdate", + "description": "Creates Or Updates virtual machines deployed on scvmm fabric.", + "summary": "Implements VirtualMachines PUT method.", + "x-ms-examples": { + "CreateVirtualMachine": { + "$ref": "./examples/CreateVirtualMachine.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "virtualMachineName", + "required": true, + "type": "string", + "description": "Name of the VirtualMachine." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "body", + "description": "Request payload.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualMachine" + } + } + ], + "responses": { + "200": { + "description": "Creates or Updates the VirtualMachines resource.", + "schema": { + "$ref": "#/definitions/VirtualMachine" + } + }, + "201": { + "description": "Creates or Updates the VirtualMachines resource.", + "schema": { + "$ref": "#/definitions/VirtualMachine" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "delete": { + "tags": [ + "VirtualMachines" + ], + "operationId": "VirtualMachines_Delete", + "summary": "Implements VirtualMachine DELETE method.", + "description": "Deletes a VirtualMachine deployed on ScVmm fabric.", + "x-ms-examples": { + "DeleteVirtualMachine": { + "$ref": "./examples/DeleteVirtualMachine.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "virtualMachineName", + "required": true, + "type": "string", + "description": "Name of the VirtualMachine." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "in": "query", + "name": "retain", + "description": "Whether to just disable the VM from azure and retain the VM in the VMM.", + "required": false, + "type": "boolean" + }, + { + "in": "query", + "name": "force", + "description": "Forces the resource to be deleted from azure. The corresponding CR would be attempted to be deleted too.", + "required": false, + "type": "boolean" + }, + { + "in": "query", + "name": "deleteFromHost", + "description": "Whether to disable the VM from azure and also delete it from VMM.", + "required": false, + "type": "boolean" + } + ], + "responses": { + "200": { + "description": "Deletes the VirtualMachines resource." + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "patch": { + "tags": [ + "VirtualMachines" + ], + "operationId": "VirtualMachines_Update", + "summary": "Implements the VirtualMachines PATCH method.", + "description": "Updates the VirtualMachines resource.", + "x-ms-examples": { + "UpdateVirtualMachine": { + "$ref": "./examples/UpdateVirtualMachine.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "in": "path", + "name": "virtualMachineName", + "required": true, + "type": "string", + "description": "Name of the VirtualMachine." + }, + { + "name": "body", + "description": "VirtualMachines patch payload.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualMachineUpdate" + } + } + ], + "responses": { + "200": { + "description": "Successful.", + "schema": { + "$ref": "#/definitions/VirtualMachine" + } + }, + "201": { + "description": "Creates or Updates the VirtualMachines resource.", + "schema": { + "$ref": "#/definitions/VirtualMachine" + } + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/virtualMachines/{virtualMachineName}/stop": { + "post": { + "tags": [ + "VirtualMachines" + ], + "operationId": "VirtualMachines_Stop", + "description": "Stop virtual machine.", + "summary": "Implements the operation to stop a virtual machine.", + "x-ms-examples": { + "StopVirtualMachine": { + "$ref": "./examples/StopVirtualMachine.json" + } + }, + "consumes": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "in": "path", + "name": "virtualMachineName", + "required": true, + "type": "string", + "description": "Name of the VirtualMachine." + }, + { + "in": "body", + "name": "body", + "description": "Virtualmachine stop action payload.", + "schema": { + "$ref": "#/definitions/StopVirtualMachineOptions" + } + } + ], + "responses": { + "200": { + "description": "Success" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/virtualMachines/{virtualMachineName}/start": { + "post": { + "tags": [ + "VirtualMachines" + ], + "operationId": "VirtualMachines_Start", + "description": "Start virtual machine.", + "summary": "Implements the operation to start a virtual machine.", + "x-ms-examples": { + "StartVirtualMachine": { + "$ref": "./examples/StartVirtualMachine.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "in": "path", + "name": "virtualMachineName", + "required": true, + "type": "string", + "description": "Name of the VirtualMachine." + } + ], + "responses": { + "200": { + "description": "Success" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/virtualMachines/{virtualMachineName}/restart": { + "post": { + "tags": [ + "VirtualMachines" + ], + "operationId": "VirtualMachines_Restart", + "description": "Restart virtual machine.", + "summary": "Implements the operation to restart a virtual machine.", + "x-ms-examples": { + "RestartVirtualMachine": { + "$ref": "./examples/RestartVirtualMachine.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "in": "path", + "name": "virtualMachineName", + "required": true, + "type": "string", + "description": "Name of the VirtualMachine." + } + ], + "responses": { + "200": { + "description": "Success" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/virtualMachines/{virtualMachineName}/createCheckpoint": { + "post": { + "tags": [ + "VirtualMachines" + ], + "operationId": "VirtualMachines_CreateCheckpoint", + "description": "Creates a checkpoint in virtual machine.", + "summary": "Implements the operation to creates a checkpoint in a virtual machine.", + "x-ms-examples": { + "CreateCheckpointVirtualMachine": { + "$ref": "./examples/CreateCheckpointVirtualMachine.json" + } + }, + "consumes": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "in": "path", + "name": "virtualMachineName", + "required": true, + "type": "string", + "description": "Name of the VirtualMachine." + }, + { + "in": "body", + "name": "body", + "description": "Virtualmachine create checkpoint action payload.", + "schema": { + "$ref": "#/definitions/VirtualMachineCreateCheckpoint" + } + } + ], + "responses": { + "200": { + "description": "Success" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/virtualMachines/{virtualMachineName}/deleteCheckpoint": { + "post": { + "tags": [ + "VirtualMachines" + ], + "operationId": "VirtualMachines_DeleteCheckpoint", + "description": "Deletes a checkpoint in virtual machine.", + "summary": "Implements the operation to delete a checkpoint in a virtual machine.", + "x-ms-examples": { + "DeleteCheckpointVirtualMachine": { + "$ref": "./examples/DeleteCheckpointVirtualMachine.json" + } + }, + "consumes": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "in": "path", + "name": "virtualMachineName", + "required": true, + "type": "string", + "description": "Name of the VirtualMachine." + }, + { + "in": "body", + "name": "body", + "description": "Virtualmachine delete checkpoint action payload.", + "schema": { + "$ref": "#/definitions/VirtualMachineDeleteCheckpoint" + } + } + ], + "responses": { + "200": { + "description": "Success" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/virtualMachines/{virtualMachineName}/restoreCheckpoint": { + "post": { + "tags": [ + "VirtualMachines" + ], + "operationId": "VirtualMachines_RestoreCheckpoint", + "description": "Restores to a checkpoint in virtual machine.", + "summary": "Implements the operation to restores to a checkpoint in a virtual machine.", + "x-ms-examples": { + "RestoreCheckpointVirtualMachine": { + "$ref": "./examples/RestoreCheckpointVirtualMachine.json" + } + }, + "consumes": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "in": "path", + "name": "virtualMachineName", + "required": true, + "type": "string", + "description": "Name of the VirtualMachine." + }, + { + "in": "body", + "name": "body", + "description": "Virtualmachine restore checkpoint action payload.", + "schema": { + "$ref": "#/definitions/VirtualMachineRestoreCheckpoint" + } + } + ], + "responses": { + "200": { + "description": "Success" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/virtualMachines": { + "get": { + "tags": [ + "VirtualMachines" + ], + "operationId": "VirtualMachines_ListByResourceGroup", + "summary": "Implements GET VirtualMachines in a resource group.", + "description": "List of VirtualMachines in a resource group.", + "x-ms-examples": { + "ListVirtualMachinesByResourceGroup": { + "$ref": "./examples/ListVirtualMachinesByResourceGroup.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Lists all VirtualMachines under the resource group.", + "schema": { + "$ref": "#/definitions/VirtualMachineListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.ScVmm/virtualMachines": { + "get": { + "tags": [ + "VirtualMachines" + ], + "operationId": "VirtualMachines_ListBySubscription", + "summary": "Implements GET VirtualMachines in a subscription.", + "description": "List of VirtualMachines in a subscription.", + "x-ms-examples": { + "ListVirtualMachinesBySubscription": { + "$ref": "./examples/ListVirtualMachinesBySubscription.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Lists all VirtualMachines under the subscription.", + "schema": { + "$ref": "#/definitions/VirtualMachineListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/virtualMachineTemplates/{virtualMachineTemplateName}": { + "get": { + "tags": [ + "VirtualMachineTemplates" + ], + "operationId": "VirtualMachineTemplates_Get", + "summary": "Gets a VirtualMachineTemplate.", + "description": "Implements VirtualMachineTemplate GET method.", + "x-ms-examples": { + "GetVirtualMachineTemplate": { + "$ref": "./examples/GetVirtualMachineTemplate.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "virtualMachineTemplateName", + "required": true, + "type": "string", + "description": "Name of the VirtualMachineTemplate." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Retrieves the VirtualMachineTemplates resource.", + "schema": { + "$ref": "#/definitions/VirtualMachineTemplate" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "VirtualMachineTemplates" + ], + "operationId": "VirtualMachineTemplates_CreateOrUpdate", + "description": "Onboards the ScVmm VM Template as an Azure VM Template resource.", + "summary": "Implements VirtualMachineTemplates PUT method.", + "x-ms-examples": { + "CreateVirtualMachineTemplate": { + "$ref": "./examples/CreateVirtualMachineTemplate.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "virtualMachineTemplateName", + "required": true, + "type": "string", + "description": "Name of the VirtualMachineTemplate." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "body", + "description": "Request payload.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualMachineTemplate" + } + } + ], + "responses": { + "200": { + "description": "Creates or Updates the VirtualMachineTemplates resource.", + "schema": { + "$ref": "#/definitions/VirtualMachineTemplate" + } + }, + "201": { + "description": "Creates or Updates the VirtualMachineTemplates resource.", + "schema": { + "$ref": "#/definitions/VirtualMachineTemplate" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "delete": { + "tags": [ + "VirtualMachineTemplates" + ], + "operationId": "VirtualMachineTemplates_Delete", + "description": "Deregisters the ScVmm VM Template from Azure.", + "summary": "Implements VirtualMachineTemplate DELETE method.", + "x-ms-examples": { + "DeleteVirtualMachineTemplate": { + "$ref": "./examples/DeleteVirtualMachineTemplate.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "virtualMachineTemplateName", + "required": true, + "type": "string", + "description": "Name of the VirtualMachineTemplate." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "in": "query", + "name": "force", + "description": "Forces the resource to be deleted from azure. The corresponding CR would be attempted to be deleted too.", + "required": false, + "type": "boolean" + } + ], + "responses": { + "200": { + "description": "Deletes the VirtualMachineTemplates resource." + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "patch": { + "tags": [ + "VirtualMachineTemplates" + ], + "operationId": "VirtualMachineTemplates_Update", + "summary": "Implements the VirtualMachineTemplate PATCH method.", + "description": "Updates the VirtualMachineTemplate resource.", + "x-ms-examples": { + "UpdateVirtualMachineTemplate": { + "$ref": "./examples/UpdateVirtualMachineTemplate.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "in": "path", + "name": "virtualMachineTemplateName", + "required": true, + "type": "string", + "description": "Name of the VirtualMachineTemplate." + }, + { + "name": "body", + "description": "VirtualMachineTemplates patch details.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ResourcePatch" + } + } + ], + "responses": { + "200": { + "description": "Successful.", + "schema": { + "$ref": "#/definitions/VirtualMachineTemplate" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/VirtualMachineTemplate" + } + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/virtualMachineTemplates": { + "get": { + "tags": [ + "VirtualMachineTemplates" + ], + "operationId": "VirtualMachineTemplates_ListByResourceGroup", + "summary": "Implements GET VirtualMachineTemplates in a resource group.", + "description": "List of VirtualMachineTemplates in a resource group.", + "x-ms-examples": { + "ListVirtualMachineTemplatesByResourceGroup": { + "$ref": "./examples/ListVirtualMachineTemplatesByResourceGroup.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Lists all VirtualMachineTemplates under the resource group.", + "schema": { + "$ref": "#/definitions/VirtualMachineTemplateListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.ScVmm/virtualMachineTemplates": { + "get": { + "tags": [ + "VirtualMachineTemplates" + ], + "operationId": "VirtualMachineTemplates_ListBySubscription", + "summary": "Implements GET VirtualMachineTemplates in a subscription.", + "description": "List of VirtualMachineTemplates in a subscription.", + "x-ms-examples": { + "ListVirtualMachineTemplatesBySubscription": { + "$ref": "./examples/ListVirtualMachineTemplatesBySubscription.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Lists all VirtualMachineTemplates under the subscription.", + "schema": { + "$ref": "#/definitions/VirtualMachineTemplateListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/availabilitySets/{availabilitySetName}": { + "get": { + "tags": [ + "AvailabilitySets" + ], + "operationId": "AvailabilitySets_Get", + "summary": "Gets an AvailabilitySet.", + "description": "Implements AvailabilitySet GET method.", + "x-ms-examples": { + "GetAvailabilitySet": { + "$ref": "./examples/GetAvailabilitySet.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "availabilitySetName", + "required": true, + "type": "string", + "description": "Name of the AvailabilitySet." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Retrieves the AvailabilitySet resource.", + "schema": { + "$ref": "#/definitions/AvailabilitySet" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "AvailabilitySets" + ], + "operationId": "AvailabilitySets_CreateOrUpdate", + "description": "Onboards the ScVmm availability set as an Azure resource.", + "summary": "Implements AvailabilitySets PUT method.", + "x-ms-examples": { + "CreateAvailabilitySet": { + "$ref": "./examples/CreateAvailabilitySet.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "availabilitySetName", + "required": true, + "type": "string", + "description": "Name of the AvailabilitySet." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "body", + "description": "Request payload.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AvailabilitySet" + } + } + ], + "responses": { + "200": { + "description": "Creates or Updates the AvailabilitySets resource.", + "schema": { + "$ref": "#/definitions/AvailabilitySet" + } + }, + "201": { + "description": "Creates or Updates the AvailabilitySets resource.", + "schema": { + "$ref": "#/definitions/AvailabilitySet" + }, + "headers": { + "Azure-AsyncOperation": { + "description": "Tracking URL for long running operation.", + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "delete": { + "tags": [ + "AvailabilitySets" + ], + "operationId": "AvailabilitySets_Delete", + "description": "Deregisters the ScVmm availability set from Azure.", + "summary": "Implements AvailabilitySet DELETE method.", + "x-ms-examples": { + "DeleteAvailabilitySet": { + "$ref": "./examples/DeleteAvailabilitySet.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "availabilitySetName", + "required": true, + "type": "string", + "description": "Name of the AvailabilitySet." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "in": "query", + "name": "force", + "description": "Forces the resource to be deleted from azure. The corresponding CR would be attempted to be deleted too.", + "required": false, + "type": "boolean" + } + ], + "responses": { + "200": { + "description": "Deletes the AvailabilitySets resource." + }, + "202": { + "description": "Accepted", + "headers": { + "Azure-AsyncOperation": { + "description": "Tracking URL for long running operation.", + "type": "string" + } + } + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "AvailabilitySets" + ], + "operationId": "AvailabilitySets_Update", + "summary": "Implements the AvailabilitySets PATCH method.", + "description": "Updates the AvailabilitySets resource.", + "x-ms-examples": { + "UpdateAvailabilitySet": { + "$ref": "./examples/UpdateAvailabilitySet.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "in": "path", + "name": "availabilitySetName", + "required": true, + "type": "string", + "description": "Name of the AvailabilitySet." + }, + { + "name": "body", + "description": "AvailabilitySets patch payload.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ResourcePatch" + } + } + ], + "responses": { + "200": { + "description": "Successful.", + "schema": { + "$ref": "#/definitions/AvailabilitySet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/AvailabilitySet" + } + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/availabilitySets": { + "get": { + "tags": [ + "AvailabilitySets" + ], + "operationId": "AvailabilitySets_ListByResourceGroup", + "summary": "Implements GET AvailabilitySets in a resource group.", + "description": "List of AvailabilitySets in a resource group.", + "x-ms-examples": { + "ListAvailabilitySetsByResourceGroup": { + "$ref": "./examples/ListAvailabilitySetsByResourceGroup.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Lists all AvailabilitySets under the resource group.", + "schema": { + "$ref": "#/definitions/AvailabilitySetListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.ScVmm/availabilitySets": { + "get": { + "tags": [ + "AvailabilitySets" + ], + "operationId": "AvailabilitySets_ListBySubscription", + "summary": "Implements GET AvailabilitySets in a subscription.", + "description": "List of AvailabilitySets in a subscription.", + "x-ms-examples": { + "ListAvailabilitySetsBySubscription": { + "$ref": "./examples/ListAvailabilitySetsBySubscription.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Lists all AvailabilitySets under the subscription.", + "schema": { + "$ref": "#/definitions/AvailabilitySetListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/vmmServers/{vmmServerName}/inventoryItems/{inventoryItemName}": { + "put": { + "tags": [ + "InventoryItems" + ], + "operationId": "InventoryItems_Create", + "summary": "Implements InventoryItem PUT method.", + "description": "Create Or Update InventoryItem.", + "x-ms-examples": { + "CreateInventoryItem": { + "$ref": "./examples/CreateInventoryItem.json" + } + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "vmmServerName", + "required": true, + "type": "string", + "description": "Name of the VMMServer." + }, + { + "in": "path", + "name": "inventoryItemName", + "required": true, + "type": "string", + "description": "Name of the inventoryItem." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "body", + "description": "Request payload.", + "schema": { + "$ref": "#/definitions/InventoryItem" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/InventoryItem" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "get": { + "tags": [ + "InventoryItems" + ], + "operationId": "InventoryItems_Get", + "summary": "Implements GET InventoryItem method.", + "description": "Shows an inventory item.", + "x-ms-examples": { + "GetInventoryItem": { + "$ref": "./examples/GetInventoryItem.json" + } + }, + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "vmmServerName", + "required": true, + "type": "string", + "description": "Name of the VMMServer." + }, + { + "in": "path", + "name": "inventoryItemName", + "required": true, + "type": "string", + "description": "Name of the inventoryItem." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/InventoryItem" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "InventoryItems" + ], + "operationId": "InventoryItems_Delete", + "summary": "Implements inventoryItem DELETE method.", + "description": "Deletes an inventoryItem.", + "x-ms-examples": { + "DeleteInventoryItem": { + "$ref": "./examples/DeleteInventoryItem.json" + } + }, + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "vmmServerName", + "required": true, + "type": "string", + "description": "Name of the VMMServer." + }, + { + "in": "path", + "name": "inventoryItemName", + "required": true, + "type": "string", + "description": "Name of the inventoryItem." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/vmmServers/{vmmServerName}/inventoryItems": { + "get": { + "tags": [ + "InventoryItems" + ], + "operationId": "InventoryItems_ListByVMMServer", + "summary": "Implements GET for the list of Inventory Items in the VMMServer.", + "description": "Returns the list of inventoryItems in the given VMMServer.", + "x-ms-examples": { + "InventoryItemsListByVMMServer": { + "$ref": "./examples/ListInventoryItemsByVMMServer.json" + } + }, + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "vmmServerName", + "required": true, + "type": "string", + "description": "Name of the VMMServer." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/InventoryItemsList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/virtualMachines/{virtualMachineName}/hybridIdentityMetadata/{metadataName}": { + "put": { + "tags": [ + "HybridIdentityMetadata" + ], + "operationId": "HybridIdentityMetadatas_Create", + "description": "Create Or Update HybridIdentityMetadata.", + "summary": "Implements HybridIdentityMetadata PUT method.", + "x-ms-examples": { + "CreateHybridIdentityMetadata": { + "$ref": "./examples/CreateHybridIdentityMetadata.json" + } + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "virtualMachineName", + "required": true, + "type": "string", + "description": "Name of the vm." + }, + { + "in": "path", + "name": "metadataName", + "required": true, + "type": "string", + "description": "Name of the hybridIdentityMetadata." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "body", + "description": "Request payload.", + "schema": { + "$ref": "#/definitions/HybridIdentityMetadata" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/HybridIdentityMetadata" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "get": { + "tags": [ + "HybridIdentityMetadata" + ], + "operationId": "HybridIdentityMetadatas_Get", + "summary": "Gets HybridIdentityMetadata.", + "description": "Implements HybridIdentityMetadata GET method.", + "x-ms-examples": { + "GetHybridIdentityMetadata": { + "$ref": "./examples/GetHybridIdentityMetadata.json" + } + }, + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "virtualMachineName", + "required": true, + "type": "string", + "description": "Name of the vm." + }, + { + "in": "path", + "name": "metadataName", + "required": true, + "type": "string", + "description": "Name of the HybridIdentityMetadata." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/HybridIdentityMetadata" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "HybridIdentityMetadata" + ], + "operationId": "HybridIdentityMetadatas_Delete", + "summary": "Deletes an HybridIdentityMetadata.", + "description": "Implements HybridIdentityMetadata DELETE method.", + "x-ms-examples": { + "DeleteHybridIdentityMetadata": { + "$ref": "./examples/DeleteHybridIdentityMetadata.json" + } + }, + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "virtualMachineName", + "required": true, + "type": "string", + "description": "Name of the vm." + }, + { + "in": "path", + "name": "metadataName", + "required": true, + "type": "string", + "description": "Name of the HybridIdentityMetadata." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/virtualMachines/{virtualMachineName}/hybridIdentityMetadata": { + "get": { + "tags": [ + "HybridIdentityMetadata" + ], + "operationId": "HybridIdentityMetadatas_ListByVm", + "summary": "Implements GET HybridIdentityMetadata in a vm.", + "description": "Returns the list of HybridIdentityMetadata of the given vm.", + "x-ms-examples": { + "HybridIdentityMetadataListByVm": { + "$ref": "./examples/HybridIdentityMetadata_ListByVm.json" + } + }, + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "virtualMachineName", + "required": true, + "type": "string", + "description": "Name of the vm." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/HybridIdentityMetadataList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/virtualMachines/{virtualMachineName}/extensions/{extensionName}": { + "put": { + "tags": [ + "MachineExtensions" + ], + "operationId": "MachineExtensions_CreateOrUpdate", + "description": "The operation to create or update the extension.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "in": "path", + "name": "virtualMachineName", + "required": true, + "type": "string", + "description": "The name of the machine where the extension should be created or updated." + }, + { + "name": "extensionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the machine extension." + }, + { + "name": "extensionParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/MachineExtension" + }, + "description": "Parameters supplied to the Create Machine Extension operation." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MachineExtension" + } + }, + "201": { + "description": "HTTP 201 (Created) if the operation was successfully started and will complete asynchronously.", + "schema": { + "$ref": "#/definitions/MachineExtension" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create or Update a Machine Extension (PUT)": { + "$ref": "./examples/PUTExtension.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "patch": { + "tags": [ + "MachineExtensions" + ], + "operationId": "MachineExtensions_Update", + "description": "The operation to update the extension.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "in": "path", + "name": "virtualMachineName", + "required": true, + "type": "string", + "description": "The name of the machine where the extension should be created or updated." + }, + { + "name": "extensionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the machine extension." + }, + { + "name": "extensionParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/MachineExtensionUpdate" + }, + "description": "Parameters supplied to the Create Machine Extension operation." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MachineExtension" + } + }, + "202": { + "description": "Accepted", + "headers": { + "Azure-AsyncOperation": { + "description": "Tracking URL for long running operation.", + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create or Update a Machine Extension (PATCH)": { + "$ref": "./examples/UpdateExtension.json" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "MachineExtensions" + ], + "operationId": "MachineExtensions_Delete", + "description": "The operation to delete the extension.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "in": "path", + "name": "virtualMachineName", + "required": true, + "type": "string", + "description": "The name of the machine where the extension should be created or updated." + }, + { + "name": "extensionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the machine extension." + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Delete a Machine Extension": { + "$ref": "./examples/DeleteExtension.json" + } + } + }, + "get": { + "tags": [ + "MachineExtensions" + ], + "operationId": "MachineExtensions_Get", + "description": "The operation to get the extension.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "in": "path", + "name": "virtualMachineName", + "required": true, + "type": "string", + "description": "The name of the machine where the extension should be created or updated." + }, + { + "name": "extensionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the machine extension." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MachineExtension" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Machine Extension": { + "$ref": "./examples/GETExtension.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/virtualMachines/{virtualMachineName}/extensions": { + "get": { + "tags": [ + "MachineExtensions" + ], + "operationId": "MachineExtensions_List", + "description": "The operation to get all extensions of a non-Azure machine", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "in": "path", + "name": "virtualMachineName", + "required": true, + "type": "string", + "description": "The name of the machine where the extension should be created or updated." + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "The expand expression to apply on the operation." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MachineExtensionsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Get all Machine Extensions": { + "$ref": "./examples/ListExtension.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/virtualMachines/{virtualMachineName}/guestAgents/{guestAgentName}": { + "put": { + "tags": [ + "GuestAgents" + ], + "operationId": "GuestAgents_Create", + "description": "Create Or Update GuestAgent.", + "summary": "Implements GuestAgent PUT method.", + "x-ms-examples": { + "CreateGuestAgent": { + "$ref": "./examples/CreateGuestAgent.json" + } + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "virtualMachineName", + "required": true, + "type": "string", + "description": "Name of the vm." + }, + { + "in": "path", + "name": "guestAgentName", + "required": true, + "type": "string", + "description": "Name of the guestAgents." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "body", + "description": "Request payload.", + "schema": { + "$ref": "#/definitions/GuestAgent" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/GuestAgent" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/GuestAgent" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "get": { + "tags": [ + "GuestAgents" + ], + "operationId": "GuestAgents_Get", + "summary": "Gets GuestAgent.", + "description": "Implements GuestAgent GET method.", + "x-ms-examples": { + "GetGuestAgent": { + "$ref": "./examples/GetGuestAgent.json" + } + }, + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "virtualMachineName", + "required": true, + "type": "string", + "description": "Name of the vm." + }, + { + "in": "path", + "name": "guestAgentName", + "required": true, + "type": "string", + "description": "Name of the GuestAgent." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/GuestAgent" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "GuestAgents" + ], + "operationId": "GuestAgents_Delete", + "summary": "Deletes an GuestAgent.", + "description": "Implements GuestAgent DELETE method.", + "x-ms-examples": { + "DeleteGuestAgent": { + "$ref": "./examples/DeleteGuestAgent.json" + } + }, + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "virtualMachineName", + "required": true, + "type": "string", + "description": "Name of the vm." + }, + { + "in": "path", + "name": "guestAgentName", + "required": true, + "type": "string", + "description": "Name of the GuestAgent." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/virtualMachines/{virtualMachineName}/guestAgents": { + "get": { + "tags": [ + "GuestAgents" + ], + "operationId": "GuestAgents_ListByVm", + "summary": "Implements GET GuestAgent in a vm.", + "description": "Returns the list of GuestAgent of the given vm.", + "x-ms-examples": { + "GuestAgentListByVm": { + "$ref": "./examples/GuestAgent_ListByVm.json" + } + }, + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "virtualMachineName", + "required": true, + "type": "string", + "description": "Name of the vm." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/GuestAgentList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "VMMServerProperties": { + "description": "Defines the resource properties.", + "required": [ + "fqdn" + ], + "type": "object", + "properties": { + "credentials": { + "type": "object", + "description": "Credentials to connect to VMMServer.", + "properties": { + "username": { + "type": "string", + "description": "Username to use to connect to VMMServer." + }, + "password": { + "type": "string", + "description": "Credentials to use to connect to VMMServer.", + "x-ms-mutability": [ + "create", + "update" + ], + "x-ms-secret": true + } + } + }, + "fqdn": { + "type": "string", + "description": "Fqdn is the hostname/ip of the vmmServer.", + "minLength": 1 + }, + "port": { + "type": "integer", + "format": "int32", + "description": "Port is the port on which the vmmServer is listening.", + "maximum": 65535, + "minimum": 1 + }, + "connectionStatus": { + "type": "string", + "description": "Gets or sets the connection status to the vmmServer.", + "readOnly": true + }, + "errorMessage": { + "type": "string", + "description": "Gets or sets any error message if connection to vmmServer is having any issue.", + "readOnly": true + }, + "uuid": { + "type": "string", + "description": "Unique ID of vmmServer.", + "readOnly": true + }, + "version": { + "type": "string", + "description": "Version is the version of the vmmSever.", + "readOnly": true + }, + "provisioningState": { + "description": "Gets or sets the provisioning state.", + "type": "string", + "readOnly": true + } + } + }, + "ExtendedLocation": { + "type": "object", + "description": "The extended location.", + "properties": { + "type": { + "type": "string", + "description": "The extended location type." + }, + "name": { + "type": "string", + "description": "The extended location name." + } + } + }, + "VMMServer": { + "type": "object", + "x-ms-azure-resource": true, + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Resource properties.", + "$ref": "#/definitions/VMMServerProperties" + }, + "id": { + "type": "string", + "readOnly": true, + "description": "Resource Id" + }, + "name": { + "type": "string", + "readOnly": true, + "description": "Resource Name" + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Resource Type" + }, + "location": { + "description": "Gets or sets the location.", + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/systemData", + "description": "The system data." + }, + "extendedLocation": { + "$ref": "#/definitions/ExtendedLocation", + "description": "The extended location." + } + }, + "required": [ + "location", + "properties", + "extendedLocation" + ], + "description": "The VmmServers resource definition." + }, + "VMMServerListResult": { + "type": "object", + "description": "List of VmmServers.", + "properties": { + "value": { + "type": "array", + "description": "List of VmmServers.", + "items": { + "$ref": "#/definitions/VMMServer" + } + }, + "nextLink": { + "description": "Url to follow for getting next page of resources.", + "type": "string" + } + } + }, + "ResourceProviderOperationList": { + "type": "object", + "description": "Results of the request to list operations.", + "properties": { + "value": { + "type": "array", + "description": "List of Operations.", + "items": { + "$ref": "#/definitions/ResourceProviderOperation" + }, + "x-ms-identifiers": [ + "name" + ] + }, + "nextLink": { + "type": "string", + "description": "Url to follow for getting next page of resources." + } + } + }, + "CloudProperties": { + "description": "Defines the resource properties.", + "type": "object", + "properties": { + "inventoryItemId": { + "description": "Gets or sets the inventory Item ID for the resource.", + "type": "string" + }, + "uuid": { + "type": "string", + "description": "Unique ID of the cloud.", + "minLength": 1 + }, + "vmmServerId": { + "type": "string", + "description": "ARM Id of the vmmServer resource in which this resource resides." + }, + "cloudName": { + "type": "string", + "description": "Name of the cloud in VMMServer.", + "readOnly": true + }, + "cloudCapacity": { + "$ref": "#/definitions/CloudCapacity", + "description": "Capacity of the cloud.", + "readOnly": true + }, + "storageQoSPolicies": { + "description": "List of QoS policies available for the cloud.", + "type": "array", + "items": { + "$ref": "#/definitions/StorageQoSPolicy" + }, + "readOnly": true + }, + "provisioningState": { + "type": "string", + "description": "Gets or sets the provisioning state.", + "readOnly": true + } + } + }, + "Cloud": { + "type": "object", + "x-ms-azure-resource": true, + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Resource properties.", + "$ref": "#/definitions/CloudProperties" + }, + "id": { + "type": "string", + "readOnly": true, + "description": "Resource Id" + }, + "name": { + "type": "string", + "readOnly": true, + "description": "Resource Name" + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Resource Type" + }, + "location": { + "description": "Gets or sets the location.", + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/systemData", + "description": "The system data." + }, + "extendedLocation": { + "$ref": "#/definitions/ExtendedLocation", + "description": "The extended location." + } + }, + "required": [ + "location", + "properties", + "extendedLocation" + ], + "description": "The Clouds resource definition." + }, + "CloudListResult": { + "type": "object", + "description": "List of Clouds.", + "properties": { + "value": { + "type": "array", + "description": "List of Clouds.", + "items": { + "$ref": "#/definitions/Cloud" + } + }, + "nextLink": { + "type": "string", + "description": "Url to follow for getting next page of resources." + } + } + }, + "VirtualNetworkProperties": { + "description": "Defines the resource properties.", + "type": "object", + "properties": { + "inventoryItemId": { + "description": "Gets or sets the inventory Item ID for the resource.", + "type": "string" + }, + "uuid": { + "type": "string", + "description": "Unique ID of the virtual network.", + "minLength": 1 + }, + "vmmServerId": { + "type": "string", + "description": "ARM Id of the vmmServer resource in which this resource resides." + }, + "networkName": { + "type": "string", + "description": "Name of the virtual network in vmmServer.", + "readOnly": true + }, + "provisioningState": { + "type": "string", + "description": "Gets or sets the provisioning state.", + "readOnly": true + } + } + }, + "VirtualNetwork": { + "type": "object", + "x-ms-azure-resource": true, + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Resource properties.", + "$ref": "#/definitions/VirtualNetworkProperties" + }, + "id": { + "type": "string", + "readOnly": true, + "description": "Resource Id" + }, + "name": { + "type": "string", + "readOnly": true, + "description": "Resource Name" + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Resource Type" + }, + "location": { + "description": "Gets or sets the location.", + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/systemData", + "description": "The system data." + }, + "extendedLocation": { + "$ref": "#/definitions/ExtendedLocation", + "description": "The extended location." + } + }, + "required": [ + "location", + "properties", + "extendedLocation" + ], + "description": "The VirtualNetworks resource definition." + }, + "VirtualNetworkListResult": { + "type": "object", + "description": "List of VirtualNetworks.", + "properties": { + "value": { + "type": "array", + "description": "List of VirtualNetworks.", + "items": { + "$ref": "#/definitions/VirtualNetwork" + } + }, + "nextLink": { + "type": "string", + "description": "Url to follow for getting next page of resources." + } + } + }, + "AvailabilitySetProperties": { + "description": "Defines the resource properties.", + "type": "object", + "properties": { + "availabilitySetName": { + "type": "string", + "description": "Name of the availability set.", + "minLength": 1 + }, + "vmmServerId": { + "type": "string", + "description": "ARM Id of the vmmServer resource in which this resource resides." + }, + "provisioningState": { + "type": "string", + "description": "Gets or sets the provisioning state.", + "readOnly": true + } + } + }, + "AvailabilitySet": { + "type": "object", + "x-ms-azure-resource": true, + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Resource properties.", + "$ref": "#/definitions/AvailabilitySetProperties" + }, + "id": { + "type": "string", + "readOnly": true, + "description": "Resource Id" + }, + "name": { + "type": "string", + "readOnly": true, + "description": "Resource Name" + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Resource Type" + }, + "location": { + "description": "Gets or sets the location.", + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/systemData", + "description": "The system data." + }, + "extendedLocation": { + "$ref": "#/definitions/ExtendedLocation", + "description": "The extended location." + } + }, + "description": "The AvailabilitySets resource definition." + }, + "AvailabilitySetListResult": { + "type": "object", + "description": "List of AvailabilitySets.", + "properties": { + "value": { + "type": "array", + "description": "List of AvailabilitySets.", + "items": { + "$ref": "#/definitions/AvailabilitySet" + } + }, + "nextLink": { + "type": "string", + "description": "Url to follow for getting next page of resources." + } + } + }, + "AvailabilitySetList": { + "description": "Availability Sets in vm.", + "type": "array", + "items": { + "description": "Availability Set model", + "type": "object", + "properties": { + "id": { + "description": "Gets the ARM Id of the microsoft.scvmm/availabilitySets resource.", + "type": "string" + }, + "name": { + "description": "Gets or sets the name of the availability set.", + "type": "string" + } + } + } + }, + "VirtualMachineProperties": { + "description": "Defines the resource properties.", + "type": "object", + "properties": { + "inventoryItemId": { + "description": "Gets or sets the inventory Item ID for the resource.", + "type": "string" + }, + "vmmServerId": { + "type": "string", + "description": "ARM Id of the vmmServer resource in which this resource resides." + }, + "cloudId": { + "type": "string", + "description": "ARM Id of the cloud resource to use for deploying the vm." + }, + "templateId": { + "type": "string", + "description": "ARM Id of the template resource to use for deploying the vm." + }, + "checkpointType": { + "type": "string", + "description": "Type of checkpoint supported for the vm." + }, + "lastRestoredVMCheckpoint": { + "description": "Last restored checkpoint in the vm.", + "$ref": "#/definitions/Checkpoint", + "readOnly": true + }, + "checkpoints": { + "description": "Checkpoints in the vm.", + "type": "array", + "items": { + "description": "Checkpoint properties", + "$ref": "#/definitions/Checkpoint", + "readOnly": true + }, + "x-ms-identifiers": [ + "checkpointID" + ] + }, + "availabilitySets": { + "$ref": "#/definitions/AvailabilitySetList" + }, + "osProfile": { + "description": "OS properties.", + "$ref": "#/definitions/OsProfile" + }, + "hardwareProfile": { + "description": "Hardware properties.", + "$ref": "#/definitions/HardwareProfile" + }, + "networkProfile": { + "description": "Network properties.", + "$ref": "#/definitions/NetworkProfile" + }, + "storageProfile": { + "description": "Storage properties.", + "$ref": "#/definitions/StorageProfile" + }, + "vmName": { + "type": "string", + "description": "VMName is the name of VM on the SCVMM server.", + "minLength": 1 + }, + "uuid": { + "type": "string", + "description": "Unique ID of the virtual machine." + }, + "generation": { + "type": "integer", + "format": "int32", + "description": "Gets or sets the generation for the vm." + }, + "powerState": { + "description": "Gets the power state of the virtual machine.", + "type": "string", + "readOnly": true + }, + "guestAgentProfile": { + "description": "Guest agent status properties.", + "$ref": "#/definitions/GuestAgentProfile" + }, + "provisioningState": { + "description": "Gets or sets the provisioning state.", + "type": "string", + "readOnly": true + } + } + }, + "OsType": { + "description": "Defines the different types of VM guest operating systems.", + "enum": [ + "Windows", + "Linux", + "Other" + ], + "x-ms-enum": { + "modelAsString": true, + "name": "OsType" + }, + "type": "string", + "readOnly": true + }, + "OsProfile": { + "description": "Defines the resource properties.", + "type": "object", + "properties": { + "adminPassword": { + "description": "Admin password of the virtual machine.", + "type": "string", + "x-ms-mutability": [ + "create", + "update" + ], + "x-ms-secret": true + }, + "computerName": { + "description": "Gets or sets computer name.", + "type": "string" + }, + "osType": { + "description": "Gets or sets the type of the os.", + "$ref": "#/definitions/OsType", + "readOnly": true + }, + "osName": { + "description": "Gets or sets os name.", + "type": "string", + "readOnly": true + } + } + }, + "HardwareProfile": { + "description": "Defines the resource properties.", + "type": "object", + "properties": { + "memoryMB": { + "type": "integer", + "format": "int32", + "description": "MemoryMB is the size of a virtual machine's memory, in MB." + }, + "cpuCount": { + "type": "integer", + "description": "Gets or sets the number of vCPUs for the vm.", + "format": "int32" + }, + "limitCpuForMigration": { + "type": "string", + "description": "Gets or sets a value indicating whether to enable processor compatibility mode for live migration of VMs.", + "enum": [ + "false", + "true" + ], + "x-ms-enum": { + "modelAsString": true, + "name": "LimitCpuForMigration" + } + }, + "dynamicMemoryEnabled": { + "type": "string", + "description": "Gets or sets a value indicating whether to enable dynamic memory or not.", + "enum": [ + "false", + "true" + ], + "x-ms-enum": { + "modelAsString": true, + "name": "DynamicMemoryEnabled" + } + }, + "dynamicMemoryMaxMB": { + "type": "integer", + "format": "int32", + "description": "Gets or sets the max dynamic memory for the vm." + }, + "dynamicMemoryMinMB": { + "type": "integer", + "format": "int32", + "description": "Gets or sets the min dynamic memory for the vm." + }, + "isHighlyAvailable": { + "description": "Gets highly available property.", + "type": "string" + } + } + }, + "HardwareProfileUpdate": { + "description": "Defines the resource properties.", + "type": "object", + "properties": { + "memoryMB": { + "type": "integer", + "format": "int32", + "description": "MemoryMB is the size of a virtual machine's memory, in MB." + }, + "cpuCount": { + "type": "integer", + "description": "Gets or sets the number of vCPUs for the vm.", + "format": "int32" + }, + "limitCpuForMigration": { + "type": "string", + "description": "Gets or sets a value indicating whether to enable processor compatibility mode for live migration of VMs.", + "enum": [ + "false", + "true" + ], + "x-ms-enum": { + "modelAsString": true, + "name": "LimitCpuForMigration" + } + }, + "dynamicMemoryEnabled": { + "type": "string", + "description": "Gets or sets a value indicating whether to enable dynamic memory or not.", + "enum": [ + "false", + "true" + ], + "x-ms-enum": { + "modelAsString": true, + "name": "DynamicMemoryEnabled" + } + }, + "dynamicMemoryMaxMB": { + "type": "integer", + "format": "int32", + "description": "Gets or sets the max dynamic memory for the vm." + }, + "dynamicMemoryMinMB": { + "type": "integer", + "format": "int32", + "description": "Gets or sets the min dynamic memory for the vm." + } + } + }, + "Checkpoint": { + "description": "Defines the resource properties.", + "type": "object", + "properties": { + "parentCheckpointID": { + "description": "Gets ID of parent of the checkpoint.", + "type": "string" + }, + "checkpointID": { + "description": "Gets ID of the checkpoint.", + "type": "string" + }, + "name": { + "description": "Gets name of the checkpoint.", + "type": "string" + }, + "description": { + "description": "Gets description of the checkpoint.", + "type": "string" + } + } + }, + "NetworkProfileUpdate": { + "description": "Defines the resource properties.", + "type": "object", + "properties": { + "networkInterfaces": { + "description": "Gets or sets the list of network interfaces associated with the virtual machine.", + "type": "array", + "items": { + "$ref": "#/definitions/NetworkInterfacesUpdate" + }, + "x-ms-identifiers": [ + "name", + "nicId" + ] + } + } + }, + "NetworkProfile": { + "description": "Defines the resource properties.", + "type": "object", + "properties": { + "networkInterfaces": { + "description": "Gets or sets the list of network interfaces associated with the virtual machine.", + "type": "array", + "items": { + "$ref": "#/definitions/NetworkInterfaces" + }, + "x-ms-identifiers": [ + "name", + "nicId" + ] + } + } + }, + "AllocationMethod": { + "description": "Allocation method.", + "enum": [ + "Dynamic", + "Static" + ], + "x-ms-enum": { + "modelAsString": true, + "name": "AllocationMethod" + }, + "type": "string" + }, + "NetworkInterfaces": { + "description": "Network Interface model", + "type": "object", + "properties": { + "name": { + "description": "Gets or sets the name of the network interface.", + "type": "string" + }, + "displayName": { + "description": "Gets the display name of the network interface as shown in the vmmServer. This is the fallback label for a NIC when the name is not set.", + "type": "string", + "readOnly": true + }, + "ipv4Addresses": { + "description": "Gets or sets the nic ipv4 addresses.", + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + }, + "ipv6Addresses": { + "description": "Gets or sets the nic ipv6 addresses.", + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + }, + "macAddress": { + "description": "Gets or sets the nic MAC address.", + "type": "string" + }, + "virtualNetworkId": { + "description": "Gets or sets the ARM Id of the Microsoft.ScVmm/virtualNetwork resource to connect the nic.", + "type": "string" + }, + "networkName": { + "description": "Gets or sets the name of the virtual network in vmmServer that the nic is connected to.", + "type": "string", + "readOnly": true + }, + "ipv4AddressType": { + "description": "Gets or sets the ipv4 address type.", + "$ref": "#/definitions/AllocationMethod" + }, + "ipv6AddressType": { + "description": "Gets or sets the ipv6 address type.", + "$ref": "#/definitions/AllocationMethod" + }, + "macAddressType": { + "description": "Gets or sets the mac address type.", + "$ref": "#/definitions/AllocationMethod" + }, + "nicId": { + "description": "Gets or sets the nic id.", + "type": "string" + } + } + }, + "NetworkInterfacesUpdate": { + "description": "Network Interface model", + "type": "object", + "properties": { + "name": { + "description": "Gets or sets the name of the network interface.", + "type": "string" + }, + "macAddress": { + "description": "Gets or sets the nic MAC address.", + "type": "string" + }, + "virtualNetworkId": { + "description": "Gets or sets the ARM Id of the Microsoft.ScVmm/virtualNetwork resource to connect the nic.", + "type": "string" + }, + "ipv4AddressType": { + "description": "Gets or sets the ipv4 address type.", + "$ref": "#/definitions/AllocationMethod" + }, + "ipv6AddressType": { + "description": "Gets or sets the ipv6 address type.", + "$ref": "#/definitions/AllocationMethod" + }, + "macAddressType": { + "description": "Gets or sets the mac address type.", + "$ref": "#/definitions/AllocationMethod" + }, + "nicId": { + "description": "Gets or sets the nic id.", + "type": "string" + } + } + }, + "CloudCapacity": { + "description": "Cloud Capacity model", + "type": "object", + "properties": { + "cpuCount": { + "type": "integer", + "format": "int64", + "description": "CPUCount specifies the maximum number of CPUs that can be allocated in the cloud." + }, + "memoryMB": { + "type": "integer", + "format": "int64", + "description": "MemoryMB specifies a memory usage limit in megabytes." + }, + "vmCount": { + "type": "integer", + "format": "int64", + "description": "VMCount gives the max number of VMs that can be deployed in the cloud." + } + }, + "readOnly": true + }, + "StorageQoSPolicyDetails": { + "description": "The StorageQoSPolicyDetails definition.", + "type": "object", + "properties": { + "name": { + "description": "The name of the policy.", + "type": "string" + }, + "id": { + "description": "The ID of the QoS policy.", + "type": "string" + } + } + }, + "VirtualDisk": { + "description": "Virtual disk model", + "type": "object", + "properties": { + "name": { + "description": "Gets or sets the name of the disk.", + "type": "string" + }, + "displayName": { + "description": "Gets the display name of the virtual disk as shown in the vmmServer. This is the fallback label for a disk when the name is not set.", + "type": "string", + "readOnly": true + }, + "diskId": { + "description": "Gets or sets the disk id.", + "type": "string" + }, + "diskSizeGB": { + "format": "int32", + "description": "Gets or sets the disk total size.", + "type": "integer" + }, + "maxDiskSizeGB": { + "format": "int32", + "description": "Gets or sets the max disk size.", + "type": "integer", + "readOnly": true + }, + "bus": { + "format": "int32", + "description": "Gets or sets the disk bus.", + "type": "integer" + }, + "lun": { + "format": "int32", + "description": "Gets or sets the disk lun.", + "type": "integer" + }, + "busType": { + "description": "Gets or sets the disk bus type.", + "type": "string" + }, + "vhdType": { + "description": "Gets or sets the disk vhd type.", + "type": "string" + }, + "volumeType": { + "description": "Gets or sets the disk volume type.", + "type": "string", + "readOnly": true + }, + "vhdFormatType": { + "description": "Gets the disk vhd format type.", + "type": "string", + "readOnly": true + }, + "templateDiskId": { + "description": "Gets or sets the disk id in the template.", + "type": "string" + }, + "storageQoSPolicy": { + "description": "The QoS policy for the disk.", + "$ref": "#/definitions/StorageQoSPolicyDetails" + }, + "createDiffDisk": { + "type": "string", + "description": "Gets or sets a value indicating diff disk.", + "enum": [ + "false", + "true" + ], + "x-ms-enum": { + "modelAsString": true, + "name": "CreateDiffDisk" + } + } + } + }, + "VirtualDiskUpdate": { + "description": "Virtual disk model", + "type": "object", + "properties": { + "name": { + "description": "Gets or sets the name of the disk.", + "type": "string" + }, + "diskId": { + "description": "Gets or sets the disk id.", + "type": "string" + }, + "diskSizeGB": { + "format": "int32", + "description": "Gets or sets the disk total size.", + "type": "integer" + }, + "bus": { + "format": "int32", + "description": "Gets or sets the disk bus.", + "type": "integer" + }, + "lun": { + "format": "int32", + "description": "Gets or sets the disk lun.", + "type": "integer" + }, + "busType": { + "description": "Gets or sets the disk bus type.", + "type": "string" + }, + "vhdType": { + "description": "Gets or sets the disk vhd type.", + "type": "string" + }, + "storageQoSPolicy": { + "description": "The QoS policy for the disk.", + "$ref": "#/definitions/StorageQoSPolicyDetails" + } + } + }, + "StorageProfileUpdate": { + "description": "Defines the resource properties.", + "type": "object", + "properties": { + "disks": { + "description": "Gets or sets the list of virtual disks associated with the virtual machine.", + "type": "array", + "items": { + "$ref": "#/definitions/VirtualDiskUpdate" + }, + "x-ms-identifiers": [ + "name", + "diskId" + ] + } + } + }, + "StorageProfile": { + "description": "Defines the resource properties.", + "type": "object", + "properties": { + "disks": { + "description": "Gets or sets the list of virtual disks associated with the virtual machine.", + "type": "array", + "items": { + "$ref": "#/definitions/VirtualDisk" + }, + "x-ms-identifiers": [ + "name", + "diskId" + ] + } + } + }, + "StopVirtualMachineOptions": { + "description": "Defines the stop action properties.", + "type": "object", + "properties": { + "skipShutdown": { + "description": "Gets or sets a value indicating whether to request non-graceful VM shutdown. True value for this flag indicates non-graceful shutdown whereas false indicates otherwise. Defaults to false.", + "type": "boolean", + "default": false + } + } + }, + "VirtualMachineCreateCheckpoint": { + "description": "Defines the create checkpoint action properties.", + "type": "object", + "properties": { + "name": { + "description": "Name of the checkpoint.", + "type": "string" + }, + "description": { + "description": "Description of the checkpoint.", + "type": "string" + } + } + }, + "VirtualMachineDeleteCheckpoint": { + "description": "Defines the delete checkpoint action properties.", + "type": "object", + "properties": { + "id": { + "description": "ID of the checkpoint to be deleted.", + "type": "string" + } + } + }, + "VirtualMachineRestoreCheckpoint": { + "description": "Defines the restore checkpoint action properties.", + "type": "object", + "properties": { + "id": { + "description": "ID of the checkpoint to be restored to.", + "type": "string" + } + } + }, + "VirtualMachine": { + "type": "object", + "x-ms-azure-resource": true, + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Resource properties.", + "$ref": "#/definitions/VirtualMachineProperties" + }, + "id": { + "type": "string", + "readOnly": true, + "description": "Resource Id" + }, + "name": { + "type": "string", + "readOnly": true, + "description": "Resource Name" + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Resource Type" + }, + "location": { + "description": "Gets or sets the location.", + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/systemData", + "description": "The system data." + }, + "extendedLocation": { + "$ref": "#/definitions/ExtendedLocation", + "description": "The extended location." + }, + "identity": { + "$ref": "#/definitions/Identity", + "description": "The identity of the resource." + } + }, + "required": [ + "location", + "properties", + "extendedLocation" + ], + "description": "The VirtualMachines resource definition." + }, + "VirtualMachineListResult": { + "type": "object", + "description": "List of VirtualMachines.", + "properties": { + "value": { + "type": "array", + "description": "List of VirtualMachines.", + "items": { + "$ref": "#/definitions/VirtualMachine" + } + }, + "nextLink": { + "type": "string", + "description": "Url to follow for getting next page of resources." + } + } + }, + "VirtualMachineUpdateProperties": { + "description": "Defines the resource properties.", + "type": "object", + "properties": { + "hardwareProfile": { + "$ref": "#/definitions/HardwareProfileUpdate" + }, + "storageProfile": { + "$ref": "#/definitions/StorageProfileUpdate" + }, + "networkProfile": { + "$ref": "#/definitions/NetworkProfileUpdate" + }, + "availabilitySets": { + "$ref": "#/definitions/AvailabilitySetList" + }, + "checkpointType": { + "type": "string", + "description": "Type of checkpoint supported for the vm." + } + } + }, + "VirtualMachineUpdate": { + "description": "Defines the virtualMachineUpdate.", + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/VirtualMachineUpdateProperties" + }, + "tags": { + "description": "Gets or sets the Resource tags.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "identity": { + "$ref": "#/definitions/Identity", + "description": "The identity of the resource." + } + } + }, + "VirtualMachineTemplateProperties": { + "description": "Defines the resource properties.", + "type": "object", + "properties": { + "inventoryItemId": { + "description": "Gets or sets the inventory Item ID for the resource.", + "type": "string" + }, + "uuid": { + "type": "string", + "description": "Unique ID of the virtual machine template.", + "minLength": 1 + }, + "vmmServerId": { + "type": "string", + "description": "ARM Id of the vmmServer resource in which this resource resides." + }, + "osType": { + "description": "Gets or sets the type of the os.", + "$ref": "#/definitions/OsType", + "readOnly": true + }, + "osName": { + "description": "Gets or sets os name.", + "type": "string", + "readOnly": true + }, + "computerName": { + "description": "Gets or sets computer name.", + "type": "string", + "readOnly": true + }, + "memoryMB": { + "type": "integer", + "format": "int32", + "description": "MemoryMB is the desired size of a virtual machine's memory, in MB.", + "readOnly": true + }, + "cpuCount": { + "type": "integer", + "description": "Gets or sets the desired number of vCPUs for the vm.", + "format": "int32", + "readOnly": true + }, + "limitCpuForMigration": { + "type": "string", + "description": "Gets or sets a value indicating whether to enable processor compatibility mode for live migration of VMs.", + "enum": [ + "false", + "true" + ], + "x-ms-enum": { + "modelAsString": true, + "name": "LimitCpuForMigration" + }, + "readOnly": true + }, + "dynamicMemoryEnabled": { + "type": "string", + "description": "Gets or sets a value indicating whether to enable dynamic memory or not.", + "enum": [ + "false", + "true" + ], + "x-ms-enum": { + "modelAsString": true, + "name": "DynamicMemoryEnabled" + }, + "readOnly": true + }, + "isCustomizable": { + "type": "string", + "description": "Gets or sets a value indicating whether the vm template is customizable or not.", + "enum": [ + "false", + "true" + ], + "x-ms-enum": { + "modelAsString": true, + "name": "IsCustomizable" + }, + "readOnly": true + }, + "dynamicMemoryMaxMB": { + "type": "integer", + "format": "int32", + "description": "Gets or sets the max dynamic memory for the vm.", + "readOnly": true + }, + "dynamicMemoryMinMB": { + "type": "integer", + "format": "int32", + "description": "Gets or sets the min dynamic memory for the vm.", + "readOnly": true + }, + "isHighlyAvailable": { + "description": "Gets highly available property.", + "type": "string", + "readOnly": true + }, + "generation": { + "type": "integer", + "format": "int32", + "description": "Gets or sets the generation for the vm.", + "readOnly": true + }, + "networkInterfaces": { + "description": "Gets or sets the network interfaces of the template.", + "type": "array", + "items": { + "$ref": "#/definitions/NetworkInterfaces" + }, + "x-ms-identifiers": [ + "name", + "nicId" + ], + "readOnly": true + }, + "disks": { + "description": "Gets or sets the disks of the template.", + "type": "array", + "items": { + "$ref": "#/definitions/VirtualDisk" + }, + "x-ms-identifiers": [ + "name", + "diskId" + ], + "readOnly": true + }, + "provisioningState": { + "description": "Gets or sets the provisioning state.", + "type": "string", + "readOnly": true + } + } + }, + "VirtualMachineTemplate": { + "type": "object", + "x-ms-azure-resource": true, + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Resource properties.", + "$ref": "#/definitions/VirtualMachineTemplateProperties" + }, + "id": { + "type": "string", + "readOnly": true, + "description": "Resource Id" + }, + "name": { + "type": "string", + "readOnly": true, + "description": "Resource Name" + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Resource Type" + }, + "location": { + "description": "Gets or sets the location.", + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/systemData", + "description": "The system data." + }, + "extendedLocation": { + "$ref": "#/definitions/ExtendedLocation", + "description": "The extended location." + } + }, + "required": [ + "location", + "properties", + "extendedLocation" + ], + "description": "The VirtualMachineTemplates resource definition." + }, + "VirtualMachineTemplateListResult": { + "type": "object", + "description": "List of VirtualMachineTemplates.", + "properties": { + "value": { + "description": "List of VirtualMachineTemplates.", + "type": "array", + "items": { + "$ref": "#/definitions/VirtualMachineTemplate" + } + }, + "nextLink": { + "type": "string", + "description": "Url to follow for getting next page of resources." + } + } + }, + "InventoryItemsList": { + "description": "List of InventoryItems.", + "type": "object", + "properties": { + "nextLink": { + "description": "Url to follow for getting next page of InventoryItems.", + "type": "string" + }, + "value": { + "description": "Array of InventoryItems", + "type": "array", + "items": { + "$ref": "#/definitions/InventoryItem" + } + } + }, + "required": [ + "value" + ] + }, + "InventoryItem": { + "description": "Defines the inventory item.", + "required": [ + "properties" + ], + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource", + "description": "The resource model definition for an Azure Resource Manager proxy resource. It will have everything other than required location and tags." + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Resource properties.", + "$ref": "#/definitions/InventoryItemProperties" + }, + "kind": { + "type": "string", + "description": "Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value." + } + }, + "x-ms-azure-resource": true + }, + "InventoryItemProperties": { + "description": "Defines the resource properties.", + "required": [ + "inventoryType" + ], + "discriminator": "inventoryType", + "type": "object", + "properties": { + "inventoryType": { + "description": "They inventory type.", + "$ref": "#/definitions/InventoryType" + }, + "managedResourceId": { + "description": "Gets the tracked resource id corresponding to the inventory resource.", + "type": "string", + "readOnly": true + }, + "uuid": { + "description": "Gets the UUID (which is assigned by VMM) for the inventory item.", + "type": "string", + "readOnly": true + }, + "inventoryItemName": { + "description": "Gets the Managed Object name in VMM for the inventory item.", + "type": "string", + "readOnly": true + }, + "provisioningState": { + "description": "Gets the provisioning state.", + "type": "string", + "readOnly": true + } + } + }, + "InventoryType": { + "type": "string", + "description": "The inventory type.", + "enum": [ + "Cloud", + "VirtualNetwork", + "VirtualMachineTemplate", + "VirtualMachine" + ], + "x-ms-enum": { + "name": "InventoryType", + "modelAsString": true + } + }, + "InventoryItemDetails": { + "description": "Defines the resource properties.", + "type": "object", + "properties": { + "inventoryItemId": { + "description": "Gets or sets the inventory Item ID for the resource.", + "type": "string" + }, + "inventoryItemName": { + "description": "Gets or sets the Managed Object name in VMM for the resource.", + "type": "string" + } + } + }, + "CloudInventoryItem": { + "description": "The Cloud inventory item.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/InventoryItemProperties" + } + ], + "x-ms-discriminator-value": "Cloud" + }, + "VirtualNetworkInventoryItem": { + "description": "The Virtual network inventory item.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/InventoryItemProperties" + } + ], + "x-ms-discriminator-value": "VirtualNetwork" + }, + "VirtualMachineTemplateInventoryItem": { + "description": "The Virtual machine template inventory item.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/InventoryItemProperties" + } + ], + "properties": { + "cpuCount": { + "type": "integer", + "description": "Gets or sets the desired number of vCPUs for the vm.", + "format": "int32", + "readOnly": true + }, + "memoryMB": { + "type": "integer", + "format": "int32", + "description": "MemoryMB is the desired size of a virtual machine's memory, in MB.", + "readOnly": true + }, + "osType": { + "description": "Gets or sets the type of the os.", + "$ref": "#/definitions/OsType", + "readOnly": true + }, + "osName": { + "description": "Gets or sets os name.", + "type": "string", + "readOnly": true + } + }, + "x-ms-discriminator-value": "VirtualMachineTemplate" + }, + "VirtualMachineInventoryItem": { + "description": "The Virtual machine inventory item.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/InventoryItemProperties" + } + ], + "properties": { + "osType": { + "description": "Gets or sets the type of the os.", + "$ref": "#/definitions/OsType", + "readOnly": true + }, + "osName": { + "description": "Gets or sets os name.", + "type": "string", + "readOnly": true + }, + "powerState": { + "description": "Gets the power state of the virtual machine.", + "type": "string", + "readOnly": true + }, + "ipAddresses": { + "description": "Gets or sets the nic ip addresses.", + "type": "array", + "items": { + "type": "string" + } + }, + "cloud": { + "description": "Cloud inventory resource details where the VM is present.", + "$ref": "#/definitions/InventoryItemDetails" + } + }, + "x-ms-discriminator-value": "VirtualMachine" + }, + "GuestAgentProfile": { + "description": "Defines the resource properties.", + "type": "object", + "properties": { + "vmUuid": { + "readOnly": true, + "type": "string", + "description": "Specifies the VM's unique SMBIOS ID." + }, + "status": { + "readOnly": true, + "type": "string", + "description": "The status of the hybrid machine agent.", + "enum": [ + "Connected", + "Disconnected", + "Error" + ], + "x-ms-enum": { + "name": "StatusTypes", + "modelAsString": true + } + }, + "lastStatusChange": { + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "The time of the last status change." + }, + "clientPublicKey": { + "description": "Gets or sets the Public Key provided by the client for enabling guest management.", + "type": "string" + }, + "agentVersion": { + "readOnly": true, + "type": "string", + "description": "The hybrid machine agent full version." + }, + "errorDetails": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" + }, + "description": "Details about the error state.", + "x-ms-identifiers": [] + } + } + }, + "HybridIdentityMetadataList": { + "description": "List of HybridIdentityMetadata.", + "type": "object", + "properties": { + "nextLink": { + "description": "Url to follow for getting next page of HybridIdentityMetadata.", + "type": "string" + }, + "value": { + "description": "Array of HybridIdentityMetadata", + "type": "array", + "items": { + "$ref": "#/definitions/HybridIdentityMetadata" + } + } + }, + "required": [ + "value" + ] + }, + "HybridIdentityMetadata": { + "description": "Defines the HybridIdentityMetadata.", + "required": [ + "properties" + ], + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource", + "description": "The resource model definition for an Azure Resource Manager proxy resource. It will have everything other than required location and tags." + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Resource properties.", + "$ref": "#/definitions/HybridIdentityMetadataProperties" + } + }, + "x-ms-azure-resource": true + }, + "HybridIdentityMetadataProperties": { + "description": "Defines the resource properties.", + "type": "object", + "properties": { + "resourceUid": { + "description": "Gets or sets the Vm Id.", + "type": "string" + }, + "publicKey": { + "description": "Gets or sets the Public Key.", + "type": "string" + }, + "identity": { + "$ref": "#/definitions/Identity", + "description": "The identity of the resource.", + "readOnly": true + }, + "provisioningState": { + "description": "Gets or sets the provisioning state.", + "type": "string", + "readOnly": true + } + } + }, + "Identity": { + "type": "object", + "required": [ + "type" + ], + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal id of managed service identity." + }, + "tenantId": { + "readOnly": true, + "type": "string", + "description": "The tenant of managed service identity." + }, + "type": { + "type": "string", + "description": "The type of managed service identity.", + "enum": [ + "None", + "SystemAssigned" + ], + "x-ms-enum": { + "name": "IdentityType", + "modelAsString": true + } + } + }, + "description": "Managed service identity." + }, + "MachineExtension": { + "x-ms-azure-resource": true, + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/MachineExtensionProperties", + "description": "Describes Machine Extension Properties." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ], + "description": "Describes a Machine Extension." + }, + "MachineExtensionUpdate": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/MachineExtensionUpdateProperties", + "description": "Describes Machine Extension Update Properties." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ResourcePatch" + } + ], + "description": "Describes a Machine Extension Update." + }, + "MachineExtensionProperties": { + "type": "object", + "properties": { + "forceUpdateTag": { + "type": "string", + "description": "How the extension handler should be forced to update even if the extension configuration has not changed." + }, + "publisher": { + "type": "string", + "description": "The name of the extension handler publisher." + }, + "type": { + "type": "string", + "description": "Specifies the type of the extension; an example is \"CustomScriptExtension\"." + }, + "typeHandlerVersion": { + "type": "string", + "description": "Specifies the version of the script handler." + }, + "enableAutomaticUpgrade": { + "type": "boolean", + "description": "Indicates whether the extension should be automatically upgraded by the platform if there is a newer version available." + }, + "autoUpgradeMinorVersion": { + "type": "boolean", + "description": "Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true." + }, + "settings": { + "type": "object", + "description": "Json formatted public settings for the extension." + }, + "protectedSettings": { + "type": "object", + "description": "The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.", + "x-ms-secret": true + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state, which only appears in the response." + }, + "instanceView": { + "allOf": [ + { + "$ref": "#/definitions/MachineExtensionInstanceView" + } + ], + "description": "The machine extension instance view." + } + }, + "description": "Describes the properties of a Machine Extension." + }, + "MachineExtensionUpdateProperties": { + "type": "object", + "properties": { + "forceUpdateTag": { + "type": "string", + "description": "How the extension handler should be forced to update even if the extension configuration has not changed." + }, + "publisher": { + "type": "string", + "description": "The name of the extension handler publisher." + }, + "type": { + "type": "string", + "description": "Specifies the type of the extension; an example is \"CustomScriptExtension\"." + }, + "typeHandlerVersion": { + "type": "string", + "description": "Specifies the version of the script handler." + }, + "enableAutomaticUpgrade": { + "type": "boolean", + "description": "Indicates whether the extension should be automatically upgraded by the platform if there is a newer version available." + }, + "autoUpgradeMinorVersion": { + "type": "boolean", + "description": "Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true." + }, + "settings": { + "type": "object", + "description": "Json formatted public settings for the extension." + }, + "protectedSettings": { + "type": "object", + "description": "The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.", + "x-ms-secret": true + } + }, + "description": "Describes the properties of a Machine Extension." + }, + "MachineExtensionInstanceView": { + "type": "object", + "properties": { + "name": { + "type": "string", + "readOnly": true, + "description": "The machine extension name." + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Specifies the type of the extension; an example is \"CustomScriptExtension\"." + }, + "typeHandlerVersion": { + "type": "string", + "readOnly": true, + "description": "Specifies the version of the script handler." + }, + "status": { + "type": "object", + "properties": { + "code": { + "type": "string", + "readOnly": true, + "description": "The status code." + }, + "level": { + "type": "string", + "readOnly": true, + "description": "The level code.", + "enum": [ + "Info", + "Warning", + "Error" + ], + "x-ms-enum": { + "name": "StatusLevelTypes", + "modelAsString": true + } + }, + "displayStatus": { + "type": "string", + "readOnly": true, + "description": "The short localizable label for the status." + }, + "message": { + "type": "string", + "readOnly": true, + "description": "The detailed status message, including for alerts and error messages." + }, + "time": { + "type": "string", + "readOnly": true, + "format": "date-time", + "description": "The time of the status." + } + }, + "description": "Instance view status." + } + }, + "description": "Describes the Machine Extension Instance View." + }, + "MachineExtensionsListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/MachineExtension" + }, + "description": "The list of extensions" + }, + "nextLink": { + "type": "string", + "description": "The uri to fetch the next page of machine extensions. Call ListNext() with this to fetch the next page of extensions." + } + }, + "description": "Describes the Machine Extensions List Result." + }, + "ProvisioningAction": { + "description": "Defines the different types of operations for guest agent.", + "enum": [ + "install", + "uninstall", + "repair" + ], + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "ProvisioningAction" + } + }, + "GuestCredential": { + "description": "Username / Password Credentials to connect to guest.", + "type": "object", + "properties": { + "username": { + "description": "Gets or sets username to connect with the guest.", + "type": "string" + }, + "password": { + "description": "Gets or sets the password to connect with the guest.", + "type": "string", + "x-ms-mutability": [ + "create", + "update" + ], + "x-ms-secret": true + } + } + }, + "HttpProxyConfiguration": { + "description": "HTTP Proxy configuration for the VM.", + "type": "object", + "properties": { + "httpsProxy": { + "description": "Gets or sets httpsProxy url.", + "type": "string" + } + } + }, + "GuestAgentList": { + "description": "List of GuestAgent.", + "type": "object", + "properties": { + "nextLink": { + "description": "Url to follow for getting next page of GuestAgent.", + "type": "string" + }, + "value": { + "description": "Array of GuestAgent", + "type": "array", + "items": { + "$ref": "#/definitions/GuestAgent" + } + } + }, + "required": [ + "value" + ] + }, + "GuestAgent": { + "description": "Defines the GuestAgent.", + "required": [ + "properties" + ], + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource", + "description": "The resource model definition for an Azure Resource Manager proxy resource. It will have everything other than required location and tags." + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Resource properties.", + "$ref": "#/definitions/GuestAgentProperties" + } + }, + "x-ms-azure-resource": true + }, + "GuestAgentProperties": { + "description": "Defines the resource properties.", + "type": "object", + "properties": { + "uuid": { + "description": "Gets or sets a unique identifier for this resource.", + "type": "string", + "readOnly": true + }, + "credentials": { + "description": "Username / Password Credentials to provision guest agent.", + "$ref": "#/definitions/GuestCredential" + }, + "httpProxyConfig": { + "description": "HTTP Proxy configuration for the VM.", + "$ref": "#/definitions/HttpProxyConfiguration" + }, + "provisioningAction": { + "description": "Gets or sets the guest agent provisioning action.", + "$ref": "#/definitions/ProvisioningAction", + "type": "string" + }, + "status": { + "description": "Gets or sets the guest agent status.", + "type": "string", + "readOnly": true + }, + "customResourceName": { + "description": "Gets the name of the corresponding resource in Kubernetes.", + "type": "string", + "readOnly": true + }, + "provisioningState": { + "description": "Gets or sets the provisioning state.", + "type": "string", + "readOnly": true + } + } + }, + "ResourceProviderOperation": { + "type": "object", + "properties": { + "isDataAction": { + "type": "string", + "description": "Indicates whether the operation applies to data-plane." + }, + "name": { + "type": "string", + "description": "Operation name, in format of {provider}/{resource}/{operation}." + }, + "display": { + "type": "object", + "properties": { + "provider": { + "type": "string", + "description": "The resource provider." + }, + "resource": { + "type": "string", + "description": "Resource on which the operation is performed." + }, + "operation": { + "type": "string", + "description": "Type of operation: read, write, delete, etc." + }, + "description": { + "type": "string", + "description": "Description of this operation." + } + }, + "description": "Display metadata associated with the operation." + } + }, + "description": "Results of the request to list operations." + }, + "ErrorResponse": { + "description": "Error response.", + "type": "object", + "properties": { + "error": { + "$ref": "#/definitions/ErrorDefinition", + "description": "The error details." + } + } + }, + "ErrorDefinition": { + "description": "Error definition.", + "type": "object", + "properties": { + "code": { + "description": "Service specific error code which serves as the substatus for the HTTP error code.", + "type": "string", + "readOnly": true + }, + "message": { + "description": "Description of the error.", + "type": "string", + "readOnly": true + }, + "details": { + "description": "Internal error details.", + "type": "array", + "items": { + "$ref": "#/definitions/ErrorDefinition" + }, + "x-ms-identifiers": [], + "readOnly": true + } + } + }, + "StorageQoSPolicy": { + "description": "The StorageQoSPolicy definition.", + "type": "object", + "properties": { + "name": { + "description": "The name of the policy.", + "type": "string" + }, + "id": { + "description": "The ID of the QoS policy.", + "type": "string" + }, + "iopsMaximum": { + "description": "The maximum IO operations per second.", + "type": "integer", + "format": "int64" + }, + "iopsMinimum": { + "description": "The minimum IO operations per second.", + "type": "integer", + "format": "int64" + }, + "bandwidthLimit": { + "description": "The Bandwidth Limit for internet traffic.", + "type": "integer", + "format": "int64" + }, + "policyId": { + "description": "The underlying policy.", + "type": "string" + } + } + }, + "ResourcePatch": { + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags." + } + }, + "description": "Object containing tags updates for patch operations." + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)." + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group.", + "x-ms-parameter-location": "method" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to be used with the HTTP request (e.g. YYYY-MM-DD)." + } + } +} diff --git a/specification/scvmm/resource-manager/readme.azureresourceschema.md b/specification/scvmm/resource-manager/readme.azureresourceschema.md index c6f37e70b179..61d5276d25a8 100644 --- a/specification/scvmm/resource-manager/readme.azureresourceschema.md +++ b/specification/scvmm/resource-manager/readme.azureresourceschema.md @@ -7,6 +7,7 @@ These settings apply only when `--azureresourceschema` is specified on the comma ``` yaml $(azureresourceschema) && $(multiapi) batch: - tag: schema-scvmm-2020-06-05-preview + - tag: schema-scvmm-2022-05-21-preview ``` @@ -22,3 +23,14 @@ input-file: - Microsoft.SCVMM/preview/2020-06-05-preview/scvmm.json ``` + +### Tag: schema-scvmm-2022-05-21-preview and azureresourceschema + +``` yaml $(tag) == 'schema-scvmm-2022-05-21-preview' && $(azureresourceschema) +output-folder: $(azureresourceschema-folder)/schemas + +# all the input files in this apiVersion +input-file: + - Microsoft.SCVMM/preview/2022-05-21-preview/scvmm.json + +``` \ No newline at end of file diff --git a/specification/scvmm/resource-manager/readme.csharp.md b/specification/scvmm/resource-manager/readme.csharp.md index 402b2df8b21e..8de24c13c00f 100644 --- a/specification/scvmm/resource-manager/readme.csharp.md +++ b/specification/scvmm/resource-manager/readme.csharp.md @@ -12,4 +12,4 @@ csharp: client-side-validation: false namespace: Microsoft.SCVMM output-folder: $(csharp-sdks-folder)/scvmm/management/Microsoft.SCVMM/GeneratedProtocol -``` +``` \ No newline at end of file diff --git a/specification/scvmm/resource-manager/readme.go.md b/specification/scvmm/resource-manager/readme.go.md index ac565ca1c784..fbe6e9ed1f14 100644 --- a/specification/scvmm/resource-manager/readme.go.md +++ b/specification/scvmm/resource-manager/readme.go.md @@ -8,4 +8,4 @@ license-header: MICROSOFT_MIT_NO_VERSION module-name: sdk/resourcemanager/scvmm/armscvmm module: github.com/Azure/azure-sdk-for-go/$(module-name) output-folder: $(go-sdk-folder)/$(module-name) -``` +``` \ No newline at end of file diff --git a/specification/scvmm/resource-manager/readme.java.md b/specification/scvmm/resource-manager/readme.java.md index a7c0c914d840..944884c1168b 100644 --- a/specification/scvmm/resource-manager/readme.java.md +++ b/specification/scvmm/resource-manager/readme.java.md @@ -18,6 +18,7 @@ description: "SCVMM Client" ``` yaml $(java) && $(multiapi) batch: - tag: package-2020-06-05-preview + - tag: package-2022-05-21-preview ``` ### Tag: package-2020-06-05-preview and java @@ -32,3 +33,15 @@ java: regenerate-manager: true generate-interface: true ``` +### Tag: package-2022-05-21-preview and java + +These settings apply only when `--tag=package-2022-05-21-preview` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2022-05-21-preview' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.scvmm.v2022-05-21-preview + output-folder: $(azure-libraries-for-java-folder)/scvmm/resource-manager/v2022-05-21-preview +regenerate-manager: true +generate-interface: true +``` \ No newline at end of file diff --git a/specification/scvmm/resource-manager/readme.md b/specification/scvmm/resource-manager/readme.md index bed05f9cde33..90db236afd23 100644 --- a/specification/scvmm/resource-manager/readme.md +++ b/specification/scvmm/resource-manager/readme.md @@ -27,7 +27,7 @@ These are the global settings for the scvmm. ```yaml openapi-type: arm openapi-subtype: rpaas -tag: package-2020-06-05-preview +tag: package-2022-05-21-preview ``` ### Tag: package-2020-06-05-preview @@ -39,6 +39,15 @@ input-file: - Microsoft.ScVmm/preview/2020-06-05-preview/scvmm.json ``` +### Tag: package-2022-05-21-preview + +These settings apply only when `--tag=package-2022-05-21-preview` is specified on the command line. + +```yaml $(tag) == 'package-2022-05-21-preview' +input-file: + - Microsoft.ScVmm/preview/2022-05-21-preview/scvmm.json +``` + --- # Code Generation @@ -55,7 +64,6 @@ swagger-to-sdk: - repo: azure-sdk-for-go - repo: azure-sdk-for-js - repo: azure-sdk-for-net - - repo: azure-sdk-for-ruby after_scripts: - bundle install && rake arm:regen_all_profiles['azure_mgmt_scvmm'] - repo: azure-resource-manager-schemas @@ -71,10 +79,6 @@ See configuration in [readme.go.md](./readme.go.md) See configuration in [readme.python.md](./readme.python.md) -## Ruby - -See configuration in [readme.ruby.md](./readme.ruby.md) - ## TypeScript See configuration in [readme.typescript.md](./readme.typescript.md) diff --git a/specification/scvmm/resource-manager/readme.python.md b/specification/scvmm/resource-manager/readme.python.md index bf62e1f039e8..8b1796101710 100644 --- a/specification/scvmm/resource-manager/readme.python.md +++ b/specification/scvmm/resource-manager/readme.python.md @@ -3,7 +3,7 @@ These settings apply only when `--python` is specified on the command line. Please also specify `--python-sdks-folder=`. -``` yaml $(python) +```yaml $(python) azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION package-name: azure-mgmt-scvmm @@ -12,7 +12,7 @@ package-version: 1.0.0b1 clear-output-folder: true ``` -``` yaml $(python) +```yaml $(python) no-namespace-folders: true output-folder: $(python-sdks-folder)/scvmm/azure-mgmt-scvmm/azure/mgmt/scvmm -``` +``` \ No newline at end of file diff --git a/specification/scvmm/resource-manager/readme.ruby.md b/specification/scvmm/resource-manager/readme.ruby.md deleted file mode 100644 index 32114011aa6b..000000000000 --- a/specification/scvmm/resource-manager/readme.ruby.md +++ /dev/null @@ -1,19 +0,0 @@ -## Ruby - -These settings apply only when `--ruby` is specified on the command line. - -```yaml -package-name: azure_mgmt_scvmm -package-version: 2020-06-05-preview -azure-arm: true -``` - -### Tag: package-2020-06-05-preview and ruby - -These settings apply only when `--tag=package-2020-06-05-preview --ruby` is specified on the command line. -Please also specify `--ruby-sdks-folder=`. - -```yaml $(tag) == 'package-2020-06-05-preview' && $(ruby) -namespace: Microsoft.SCVMM -output-folder: $(ruby-sdks-folder)/scvmm -``` diff --git a/specification/scvmm/resource-manager/readme.typescript.md b/specification/scvmm/resource-manager/readme.typescript.md index 7e4a07e94dbd..288169e29901 100644 --- a/specification/scvmm/resource-manager/readme.typescript.md +++ b/specification/scvmm/resource-manager/readme.typescript.md @@ -10,4 +10,4 @@ typescript: output-folder: "$(typescript-sdks-folder)/sdk/scvmm/arm-scvmm" payload-flattening-threshold: 1 generate-metadata: true -``` +``` \ No newline at end of file