-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DiskRP swagger change for api version 2020-06-30 (#10208)
- Loading branch information
Showing
37 changed files
with
4,587 additions
and
1 deletion.
There are no files selected for viewing
2,754 changes: 2,754 additions & 0 deletions
2,754
specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-30/disk.json
Large diffs are not rendered by default.
Oops, something went wrong.
32 changes: 32 additions & 0 deletions
32
...pute/resource-manager/Microsoft.Compute/stable/2020-06-30/examples/CreateADiskAccess.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,32 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2020-06-30", | ||
"diskAccessName": "myDiskAccess", | ||
"diskAccess": { | ||
"location": "West US" | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"body": { | ||
"name": "myDiskAccess", | ||
"location": "West US", | ||
"type": "Microsoft.Compute/diskAccesses" | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"name": "myDiskAccess", | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourcegroup/providers/Microsoft.Compute/diskAccesses/myDiskAccess", | ||
"type": "Microsoft.Compute/diskAccesses", | ||
"location": "West US", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"timeCreated": "2020-05-01T04:41:35.079872+00:00" | ||
} | ||
} | ||
} | ||
} | ||
} |
63 changes: 63 additions & 0 deletions
63
...source-manager/Microsoft.Compute/stable/2020-06-30/examples/CreateADiskEncryptionSet.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,63 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2020-06-30", | ||
"diskEncryptionSetName": "myDiskEncryptionSet", | ||
"diskEncryptionSet": { | ||
"location": "West US", | ||
"identity": { | ||
"type": "SystemAssigned" | ||
}, | ||
"properties": { | ||
"activeKey": { | ||
"sourceVault": { | ||
"id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault" | ||
}, | ||
"keyUrl": "https://myvmvault.vault-int.azure-int.net/keys/{key}" | ||
}, | ||
"encryptionType": "EncryptionAtRestWithCustomerKey" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"body": { | ||
"name": "myDiskEncryptionSet", | ||
"location": "West US", | ||
"identity": { | ||
"type": "SystemAssigned" | ||
}, | ||
"properties": { | ||
"activeKey": { | ||
"sourceVault": { | ||
"id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault" | ||
}, | ||
"keyUrl": "https://myvmvault.vault-int.azure-int.net/keys/{key}" | ||
}, | ||
"encryptionType": "EncryptionAtRestWithCustomerKey", | ||
"previousKeys": [] | ||
} | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"name": "myDiskEncryptionSet", | ||
"location": "West US", | ||
"identity": { | ||
"type": "SystemAssigned" | ||
}, | ||
"properties": { | ||
"activeKey": { | ||
"sourceVault": { | ||
"id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault" | ||
}, | ||
"keyUrl": "https://myvmvault.vault-int.azure-int.net/keys/{key}" | ||
}, | ||
"encryptionType": "EncryptionAtRestWithCustomerKey", | ||
"previousKeys": [] | ||
} | ||
} | ||
} | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
...er/Microsoft.Compute/stable/2020-06-30/examples/CreateAManagedDiskByCopyingASnapshot.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,45 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2020-06-30", | ||
"diskName": "myDisk", | ||
"disk": { | ||
"location": "West US", | ||
"properties": { | ||
"creationData": { | ||
"createOption": "Copy", | ||
"sourceResourceId": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"body": { | ||
"name": "myDisk", | ||
"location": "West US", | ||
"properties": { | ||
"provisioningState": "Updating", | ||
"creationData": { | ||
"createOption": "Copy", | ||
"sourceResourceId": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" | ||
} | ||
} | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"name": "myDisk", | ||
"location": "West US", | ||
"properties": { | ||
"provisioningState": "Updating", | ||
"creationData": { | ||
"createOption": "Copy", | ||
"sourceResourceId": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
48 changes: 48 additions & 0 deletions
48
...6-30/examples/CreateAManagedDiskByImportingAnUnmanagedBlobFromADifferentSubscription.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,48 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2020-06-30", | ||
"diskName": "myDisk", | ||
"disk": { | ||
"location": "West US", | ||
"properties": { | ||
"creationData": { | ||
"createOption": "Import", | ||
"storageAccountId": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount", | ||
"sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"body": { | ||
"name": "myDisk", | ||
"location": "West US", | ||
"properties": { | ||
"provisioningState": "Updating", | ||
"creationData": { | ||
"createOption": "Import", | ||
"storageAccountId": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount", | ||
"sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd" | ||
} | ||
} | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"name": "myDisk", | ||
"location": "West US", | ||
"properties": { | ||
"provisioningState": "Updating", | ||
"creationData": { | ||
"createOption": "Import", | ||
"storageAccountId": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount", | ||
"sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
...0-06-30/examples/CreateAManagedDiskByImportingAnUnmanagedBlobFromTheSameSubscription.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,45 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2020-06-30", | ||
"diskName": "myDisk", | ||
"disk": { | ||
"location": "West US", | ||
"properties": { | ||
"creationData": { | ||
"createOption": "Import", | ||
"sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"body": { | ||
"name": "myDisk", | ||
"location": "West US", | ||
"properties": { | ||
"provisioningState": "Updating", | ||
"creationData": { | ||
"createOption": "Import", | ||
"sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd" | ||
} | ||
} | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"name": "myDisk", | ||
"location": "West US", | ||
"properties": { | ||
"provisioningState": "Updating", | ||
"creationData": { | ||
"createOption": "Import", | ||
"sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
54 changes: 54 additions & 0 deletions
54
...er/Microsoft.Compute/stable/2020-06-30/examples/CreateAManagedDiskFromAPlatformImage.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,54 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2020-06-30", | ||
"diskName": "myDisk", | ||
"disk": { | ||
"location": "West US", | ||
"properties": { | ||
"osType": "Windows", | ||
"creationData": { | ||
"createOption": "FromImage", | ||
"imageReference": { | ||
"id": "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/uswest/Publishers/Microsoft/ArtifactTypes/VMImage/Offers/{offer}" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"body": { | ||
"name": "myDisk", | ||
"location": "West US", | ||
"properties": { | ||
"provisioningState": "Updating", | ||
"osType": "Windows", | ||
"creationData": { | ||
"createOption": "FromImage", | ||
"imageReference": { | ||
"id": "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/uswest/Publishers/Microsoft/ArtifactTypes/VMImage/Offers/{offer}" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"name": "myDisk", | ||
"location": "West US", | ||
"properties": { | ||
"provisioningState": "Updating", | ||
"osType": "Windows", | ||
"creationData": { | ||
"createOption": "FromImage", | ||
"imageReference": { | ||
"id": "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/uswest/Publishers/Microsoft/ArtifactTypes/VMImage/Offers/{offer}" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
...osoft.Compute/stable/2020-06-30/examples/CreateAManagedDiskFromAnExistingManagedDisk.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,45 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2020-06-30", | ||
"diskName": "myDisk2", | ||
"disk": { | ||
"location": "West US", | ||
"properties": { | ||
"creationData": { | ||
"createOption": "Copy", | ||
"sourceResourceId": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myDisk1" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"body": { | ||
"properties": { | ||
"creationData": { | ||
"createOption": "Copy", | ||
"sourceResourceId": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myDisk1" | ||
}, | ||
"provisioningState": "Updating" | ||
}, | ||
"location": "West US", | ||
"name": "myDisk2" | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"creationData": { | ||
"createOption": "Copy", | ||
"sourceResourceId": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myDisk1" | ||
}, | ||
"provisioningState": "Updating" | ||
}, | ||
"location": "West US", | ||
"name": "myDisk2" | ||
} | ||
} | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
...anager/Microsoft.Compute/stable/2020-06-30/examples/CreateAManagedDiskWithDiskAccess.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,49 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2020-06-30", | ||
"diskName": "myDisk", | ||
"disk": { | ||
"location": "West US", | ||
"properties": { | ||
"creationData": { | ||
"createOption": "Empty" | ||
}, | ||
"diskSizeGB": 200, | ||
"networkAccessPolicy": "AllowPrivate", | ||
"diskAccessId": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskAccesses/{existing-diskAccess-name}" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"body": { | ||
"properties": { | ||
"creationData": { | ||
"createOption": "Empty" | ||
}, | ||
"diskSizeGB": 200, | ||
"provisioningState": "Updating" | ||
}, | ||
"location": "West US", | ||
"name": "myDisk" | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"creationData": { | ||
"createOption": "Empty" | ||
}, | ||
"diskSizeGB": 200, | ||
"provisioningState": "Succeeded", | ||
"networkAccessPolicy": "AllowPrivate", | ||
"diskAccessId": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskAccesses/{existing-diskAccess-name}" | ||
}, | ||
"location": "West US", | ||
"name": "myDisk" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.