-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SCVMM public preview API spec (#18542)
* add openapi spec for scvmm * lint fixes, spell fixes * typo fix * prettier * force delete query param * removing some deprecated properties * remove additional props
- Loading branch information
1 parent
df898cb
commit 5274825
Showing
57 changed files
with
6,405 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
...ce-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/CreateAvailabilitySet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
} | ||
} | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
...r/Microsoft.ScVmm/preview/2020-06-05-preview/examples/CreateCheckpointVirtualMachine.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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": {} | ||
} | ||
} |
55 changes: 55 additions & 0 deletions
55
...vmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/CreateCloud.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
} | ||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...urce-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/CreateInventoryItem.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
} | ||
} | ||
} | ||
} |
65 changes: 65 additions & 0 deletions
65
...resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/CreateVMMServer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
} | ||
} | ||
} | ||
} |
78 changes: 78 additions & 0 deletions
78
...rce-manager/Microsoft.ScVmm/preview/2020-06-05-preview/examples/CreateVirtualMachine.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
} | ||
} | ||
} | ||
} |
55 changes: 55 additions & 0 deletions
55
...ger/Microsoft.ScVmm/preview/2020-06-05-preview/examples/CreateVirtualMachineTemplate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.