diff --git a/custom-words.txt b/custom-words.txt index b28a5362f721..43be64051eef 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -2519,8 +2519,10 @@ Smartsheet businessmetadata Qualys servermetrics +Deboards +Deregisters Dataworld Asana AppFigures Twilio -getazresiliencystatus \ No newline at end of file +getazresiliencystatus diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/CreateAvailabilitySet.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/CreateAvailabilitySet.json new file mode 100644 index 000000000000..396917a49584 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/CreateAvailabilitySet.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2020-06-05-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/2020-06-05-preview/examples/CreateCheckpointVirtualMachine.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/CreateCheckpointVirtualMachine.json new file mode 100644 index 000000000000..49a6f7a38dc3 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/CreateCheckpointVirtualMachine.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2020-06-05-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "virtualMachineName": "DemoVM", + "body": { + "name": "Demo Checkpoint name", + "description": "Demo Checkpoint description" + } + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/CreateCloud.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/CreateCloud.json new file mode 100644 index 000000000000..387b784adc94 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/CreateCloud.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2020-06-05-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/2020-06-05-preview/examples/CreateInventoryItem.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/CreateInventoryItem.json new file mode 100644 index 000000000000..fb4e9972d9ee --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/CreateInventoryItem.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2020-06-05-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/2020-06-05-preview/examples/CreateVMMServer.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/CreateVMMServer.json new file mode 100644 index 000000000000..ce41ffe1845c --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/CreateVMMServer.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "api-version": "2020-06-05-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/2020-06-05-preview/examples/CreateVirtualMachine.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/CreateVirtualMachine.json new file mode 100644 index 000000000000..c77350b03d28 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/CreateVirtualMachine.json @@ -0,0 +1,78 @@ +{ + "parameters": { + "api-version": "2020-06-05-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/2020-06-05-preview/examples/CreateVirtualMachineTemplate.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/CreateVirtualMachineTemplate.json new file mode 100644 index 000000000000..42558011e28c --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/CreateVirtualMachineTemplate.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2020-06-05-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/2020-06-05-preview/examples/CreateVirtualNetwork.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/CreateVirtualNetwork.json new file mode 100644 index 000000000000..f295769d4353 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/CreateVirtualNetwork.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2020-06-05-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/2020-06-05-preview/examples/DeleteAvailabilitySet.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/DeleteAvailabilitySet.json new file mode 100644 index 000000000000..aec5a8846cb3 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/DeleteAvailabilitySet.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2020-06-05-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "availabilitySetName": "HRAvailabilitySet" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/DeleteCheckpointVirtualMachine.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/DeleteCheckpointVirtualMachine.json new file mode 100644 index 000000000000..f52d329825a9 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/DeleteCheckpointVirtualMachine.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2020-06-05-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "virtualMachineName": "DemoVM", + "body": { + "id": "Demo CheckpointID" + } + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/DeleteCloud.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/DeleteCloud.json new file mode 100644 index 000000000000..0bd080a94767 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/DeleteCloud.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2020-06-05-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "cloudName": "HRCloud" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/DeleteInventoryItem.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/DeleteInventoryItem.json new file mode 100644 index 000000000000..8a62c28dd680 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/DeleteInventoryItem.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2020-06-05-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/2020-06-05-preview/examples/DeleteVMMServer.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/DeleteVMMServer.json new file mode 100644 index 000000000000..1dc778f2085c --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/DeleteVMMServer.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2020-06-05-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "vmmServerName": "ContosoVMMServer" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/DeleteVirtualMachine.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/DeleteVirtualMachine.json new file mode 100644 index 000000000000..0fc5e291b536 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/DeleteVirtualMachine.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2020-06-05-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "virtualMachineName": "DemoVM" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/DeleteVirtualMachineTemplate.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/DeleteVirtualMachineTemplate.json new file mode 100644 index 000000000000..b032b96fbdf2 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/DeleteVirtualMachineTemplate.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2020-06-05-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "virtualMachineTemplateName": "HRVirtualMachineTemplate" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/DeleteVirtualNetwork.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/DeleteVirtualNetwork.json new file mode 100644 index 000000000000..feeabb646eb4 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/DeleteVirtualNetwork.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2020-06-05-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "virtualNetworkName": "HRVirtualNetwork" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/GetAvailabilitySet.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/GetAvailabilitySet.json new file mode 100644 index 000000000000..64fa4deab953 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/GetAvailabilitySet.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2020-06-05-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/2020-06-05-preview/examples/GetCloud.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/GetCloud.json new file mode 100644 index 000000000000..b2b858de0cf3 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/GetCloud.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2020-06-05-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/2020-06-05-preview/examples/GetInventoryItem.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/GetInventoryItem.json new file mode 100644 index 000000000000..0202068db660 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/GetInventoryItem.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2020-06-05-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/2020-06-05-preview/examples/GetVMMServer.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/GetVMMServer.json new file mode 100644 index 000000000000..b0784d4571ed --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/GetVMMServer.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2020-06-05-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/2020-06-05-preview/examples/GetVirtualMachine.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/GetVirtualMachine.json new file mode 100644 index 000000000000..cf9653ce4527 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/GetVirtualMachine.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2020-06-05-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/2020-06-05-preview/examples/GetVirtualMachineTemplate.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/GetVirtualMachineTemplate.json new file mode 100644 index 000000000000..1db6830333c4 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/GetVirtualMachineTemplate.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2020-06-05-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/2020-06-05-preview/examples/GetVirtualNetwork.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/GetVirtualNetwork.json new file mode 100644 index 000000000000..9a3c224bd37c --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/GetVirtualNetwork.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2020-06-05-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/2020-06-05-preview/examples/ListAvailabilitySetsByResourceGroup.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/ListAvailabilitySetsByResourceGroup.json new file mode 100644 index 000000000000..3f0deaf37910 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/ListAvailabilitySetsByResourceGroup.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2020-06-05-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/2020-06-05-preview/examples/ListAvailabilitySetsBySubscription.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/ListAvailabilitySetsBySubscription.json new file mode 100644 index 000000000000..1a841fbdeade --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/ListAvailabilitySetsBySubscription.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2020-06-05-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/2020-06-05-preview/examples/ListCloudsByResourceGroup.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/ListCloudsByResourceGroup.json new file mode 100644 index 000000000000..9f5c9559399c --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/ListCloudsByResourceGroup.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2020-06-05-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/2020-06-05-preview/examples/ListCloudsBySubscription.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/ListCloudsBySubscription.json new file mode 100644 index 000000000000..689491fa60b7 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/ListCloudsBySubscription.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2020-06-05-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/2020-06-05-preview/examples/ListInventoryItemsByVMMServer.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/ListInventoryItemsByVMMServer.json new file mode 100644 index 000000000000..2dd20f2930ec --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/ListInventoryItemsByVMMServer.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2020-06-05-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/2020-06-05-preview/examples/ListOperations.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/ListOperations.json new file mode 100644 index 000000000000..75b60a1e911c --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/ListOperations.json @@ -0,0 +1,148 @@ +{ + "parameters": { + "api-version": "2020-06-05-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/2020-06-05-preview/examples/ListVMMServersByResourceGroup.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/ListVMMServersByResourceGroup.json new file mode 100644 index 000000000000..1dea80f03b3f --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/ListVMMServersByResourceGroup.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2020-06-05-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/2020-06-05-preview/examples/ListVMMServersBySubscription.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/ListVMMServersBySubscription.json new file mode 100644 index 000000000000..7accf2ffa88e --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/ListVMMServersBySubscription.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2020-06-05-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/2020-06-05-preview/examples/ListVirtualMachineTemplatesByResourceGroup.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/ListVirtualMachineTemplatesByResourceGroup.json new file mode 100644 index 000000000000..338d2bc76465 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/ListVirtualMachineTemplatesByResourceGroup.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2020-06-05-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/2020-06-05-preview/examples/ListVirtualMachineTemplatesBySubscription.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/ListVirtualMachineTemplatesBySubscription.json new file mode 100644 index 000000000000..4b0f516d97db --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/ListVirtualMachineTemplatesBySubscription.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2020-06-05-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/2020-06-05-preview/examples/ListVirtualMachinesByResourceGroup.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/ListVirtualMachinesByResourceGroup.json new file mode 100644 index 000000000000..df960d5ef281 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/ListVirtualMachinesByResourceGroup.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2020-06-05-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/2020-06-05-preview/examples/ListVirtualMachinesBySubscription.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/ListVirtualMachinesBySubscription.json new file mode 100644 index 000000000000..d429ab1ee562 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/ListVirtualMachinesBySubscription.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2020-06-05-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/2020-06-05-preview/examples/ListVirtualNetworksByResourceGroup.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/ListVirtualNetworksByResourceGroup.json new file mode 100644 index 000000000000..4cd6d4ecc057 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/ListVirtualNetworksByResourceGroup.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2020-06-05-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/2020-06-05-preview/examples/ListVirtualNetworksBySubscription.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/ListVirtualNetworksBySubscription.json new file mode 100644 index 000000000000..15e76ea14f30 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/ListVirtualNetworksBySubscription.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2020-06-05-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/2020-06-05-preview/examples/RestartVirtualMachine.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/RestartVirtualMachine.json new file mode 100644 index 000000000000..157c4a37b32d --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/RestartVirtualMachine.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2020-06-05-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "virtualMachineName": "DemoVM" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/RestoreCheckpointVirtualMachine.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/RestoreCheckpointVirtualMachine.json new file mode 100644 index 000000000000..f52d329825a9 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/RestoreCheckpointVirtualMachine.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2020-06-05-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "virtualMachineName": "DemoVM", + "body": { + "id": "Demo CheckpointID" + } + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/StartVirtualMachine.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/StartVirtualMachine.json new file mode 100644 index 000000000000..157c4a37b32d --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/StartVirtualMachine.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2020-06-05-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "virtualMachineName": "DemoVM" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/StopVirtualMachine.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/StopVirtualMachine.json new file mode 100644 index 000000000000..623071174696 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/StopVirtualMachine.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2020-06-05-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "virtualMachineName": "DemoVM", + "body": { + "skipShutdown": true + } + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/UpdateAvailabilitySet.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/UpdateAvailabilitySet.json new file mode 100644 index 000000000000..b835a093e084 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/UpdateAvailabilitySet.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "api-version": "2020-06-05-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": {} + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/UpdateCloud.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/UpdateCloud.json new file mode 100644 index 000000000000..af82de371a8a --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/UpdateCloud.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "api-version": "2020-06-05-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": {} + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/UpdateVMMServer.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/UpdateVMMServer.json new file mode 100644 index 000000000000..82c1e08355b1 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/UpdateVMMServer.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "api-version": "2020-06-05-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": {} + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/UpdateVirtualMachine.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/UpdateVirtualMachine.json new file mode 100644 index 000000000000..d0bea4cf3c18 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/UpdateVirtualMachine.json @@ -0,0 +1,207 @@ +{ + "parameters": { + "api-version": "2020-06-05-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": {} + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/UpdateVirtualMachineTemplate.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/UpdateVirtualMachineTemplate.json new file mode 100644 index 000000000000..34dbbd728d9f --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/UpdateVirtualMachineTemplate.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "api-version": "2020-06-05-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": {} + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/UpdateVirtualNetwork.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/UpdateVirtualNetwork.json new file mode 100644 index 000000000000..9304e515a935 --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/UpdateVirtualNetwork.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "api-version": "2020-06-05-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": {} + } +} diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/scvmm.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/scvmm.json new file mode 100644 index 000000000000..4d929b5264fa --- /dev/null +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/scvmm.json @@ -0,0 +1,4349 @@ +{ + "swagger": "2.0", + "info": { + "title": "SCVMM", + "description": "The Microsoft.ScVmm Rest API spec.", + "version": "2020-06-05-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" + } + ], + "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" + } + } + } + }, + "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." + }, + "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 + }, + "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." + } + }, + "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" + } + } + }, + "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" + } + } + } + }, + "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/v2/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" + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "description": "The system data." + }, + "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" + }, + "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 new file mode 100644 index 000000000000..c6f37e70b179 --- /dev/null +++ b/specification/scvmm/resource-manager/readme.azureresourceschema.md @@ -0,0 +1,24 @@ +## AzureResourceSchema + +These settings apply only when `--azureresourceschema` is specified on the command line. + +### AzureResourceSchema multi-api + +``` yaml $(azureresourceschema) && $(multiapi) +batch: + - tag: schema-scvmm-2020-06-05-preview + +``` + +Please also specify `--azureresourceschema-folder=`. + +### Tag: schema-scvmm-2020-06-05-preview and azureresourceschema + +``` yaml $(tag) == 'schema-scvmm-2020-06-05-preview' && $(azureresourceschema) +output-folder: $(azureresourceschema-folder)/schemas + +# all the input files in this apiVersion +input-file: + - Microsoft.SCVMM/preview/2020-06-05-preview/scvmm.json + +``` diff --git a/specification/scvmm/resource-manager/readme.csharp.md b/specification/scvmm/resource-manager/readme.csharp.md new file mode 100644 index 000000000000..402b2df8b21e --- /dev/null +++ b/specification/scvmm/resource-manager/readme.csharp.md @@ -0,0 +1,15 @@ +## C + +These settings apply only when `--csharp` is specified on the command line. +Please also specify `--csharp-sdks-folder=`. + +```yaml $(csharp) +csharp: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + payload-flattening-threshold: 1 + clear-output-folder: true + client-side-validation: false + namespace: Microsoft.SCVMM + output-folder: $(csharp-sdks-folder)/scvmm/management/Microsoft.SCVMM/GeneratedProtocol +``` diff --git a/specification/scvmm/resource-manager/readme.go.md b/specification/scvmm/resource-manager/readme.go.md new file mode 100644 index 000000000000..ac565ca1c784 --- /dev/null +++ b/specification/scvmm/resource-manager/readme.go.md @@ -0,0 +1,11 @@ +## Go + +These settings apply only when `--go` is specified on the command line. + +```yaml $(go) && $(track2) +azure-arm: true +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) +``` diff --git a/specification/scvmm/resource-manager/readme.java.md b/specification/scvmm/resource-manager/readme.java.md new file mode 100644 index 000000000000..a7c0c914d840 --- /dev/null +++ b/specification/scvmm/resource-manager/readme.java.md @@ -0,0 +1,34 @@ + +These settings apply only when `--java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(java) +azure-arm: true +fluent: true +namespace: com.microsoft.azure.management.scvmm +license-header: MICROSOFT_MIT_NO_CODEGEN +payload-flattening-threshold: 1 +output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-scvmm +title: SCVMMClient +description: "SCVMM Client" +``` + +### Java multi-api + +``` yaml $(java) && $(multiapi) +batch: + - tag: package-2020-06-05-preview +``` + +### Tag: package-2020-06-05-preview and java + +These settings apply only when `--tag=package-2020-06-05-preview` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2020-06-05-preview' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.scvmm.v2020-06-05-preview + output-folder: $(azure-libraries-for-java-folder)/scvmm/resource-manager/v2020-06-05-preview +regenerate-manager: true +generate-interface: true +``` diff --git a/specification/scvmm/resource-manager/readme.md b/specification/scvmm/resource-manager/readme.md new file mode 100644 index 000000000000..537db7c64df3 --- /dev/null +++ b/specification/scvmm/resource-manager/readme.md @@ -0,0 +1,84 @@ +# scvmm + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for scvmm. + +## Getting Started + +To build the SDKs for My API, simply install AutoRest via `npm` (`npm install -g autorest`) and then run: + +> `autorest readme.md` + +To see additional help and options, run: + +> `autorest --help` + +For other options on installation see [Installing AutoRest](https://aka.ms/autorest/install) on the AutoRest github page. + +--- + +## Configuration + +### Basic Information + +These are the global settings for the scvmm. + +```yaml +openapi-type: arm +openapi-subtype: rpaas +tag: package-2020-06-05-preview +``` + +### Tag: package-2020-06-05-preview + +These settings apply only when `--tag=package-2020-06-05-preview` is specified on the command line. + +```yaml $(tag) == 'package-2020-06-05-preview' +input-file: + - Microsoft.ScVmm/preview/2020-06-05-preview/scvmm.json +``` + +--- + +# Code Generation + +## Swagger to SDK + +This section describes what SDK should be generated by the automatic system. +This is not used by Autorest itself. + +```yaml $(swagger-to-sdk) +swagger-to-sdk: + - repo: azure-sdk-for-python-track2 + - repo: azure-sdk-for-java + - repo: azure-sdk-for-go-track2 + - 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 + after_scripts: + - node sdkauto_afterscript.js scvmm/resource-manager +``` + +## Go + +See configuration in [readme.go.md](./readme.go.md) + +## Python + +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) + +## CSharp + +See configuration in [readme.csharp.md](./readme.csharp.md) diff --git a/specification/scvmm/resource-manager/readme.python.md b/specification/scvmm/resource-manager/readme.python.md new file mode 100644 index 000000000000..74cdb6fe9ab2 --- /dev/null +++ b/specification/scvmm/resource-manager/readme.python.md @@ -0,0 +1,23 @@ +## Python + +These settings apply only when `--python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(track2) +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +package-name: azure-mgmt-scvmm +no-namespace-folders: true +package-version: 1.0.0b1 +clear-output-folder: true +``` + +``` yaml $(python-mode) == 'update' && $(track2) +no-namespace-folders: true +output-folder: $(python-sdks-folder)/scvmm/azure-mgmt-scvmm/azure/mgmt/scvmm +``` + +``` yaml $(python-mode) == 'create' && $(track2) +basic-setup-py: true +output-folder: $(python-sdks-folder)/scvmm/azure-mgmt-scvmm +``` diff --git a/specification/scvmm/resource-manager/readme.ruby.md b/specification/scvmm/resource-manager/readme.ruby.md new file mode 100644 index 000000000000..32114011aa6b --- /dev/null +++ b/specification/scvmm/resource-manager/readme.ruby.md @@ -0,0 +1,19 @@ +## 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 new file mode 100644 index 000000000000..e26b730f8763 --- /dev/null +++ b/specification/scvmm/resource-manager/readme.typescript.md @@ -0,0 +1,13 @@ +## TypeScript + +These settings apply only when `--typescript` is specified on the command line. +Please also specify `--typescript-sdks-folder=`. + +```yaml $(typescript) +typescript: + azure-arm: true + package-name: "scvmm" + output-folder: "$(typescript-sdks-folder)/packages/scvmm" + payload-flattening-threshold: 1 + generate-metadata: true +```