forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DiskRP swagger 2021-12-01 (Azure#17709)
* inital commit for diskrp swagger 2021-12-01 * added architecture * updated api version for example files * added dataAccessAuthMode * added architecture and dataAccessAuthMode * updated description for DataAccessAuthMode * Addressed comments * added xms-ids * Update readme.md Co-authored-by: REDMOND\rytruong <rytruong@microsoft.com> Co-authored-by: Theodore Chang <thchan@microsoft.com> Co-authored-by: ArcturusZhang <dapzhang@microsoft.com>
- Loading branch information
1 parent
86c11ab
commit 9b57fab
Showing
74 changed files
with
7,320 additions
and
1 deletion.
There are no files selected for viewing
3,846 changes: 3,846 additions & 0 deletions
3,846
specification/compute/resource-manager/Microsoft.Compute/stable/2021-12-01/disk.json
Large diffs are not rendered by default.
Oops, something went wrong.
54 changes: 54 additions & 0 deletions
54
...anager/Microsoft.Compute/stable/2021-12-01/examples/ApprovePrivateEndpointConnection.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": "2021-12-01", | ||
"diskAccessName": "myDiskAccess", | ||
"privateEndpointConnectionName": "myPrivateEndpointConnection", | ||
"privateEndpointConnection": { | ||
"properties": { | ||
"privateLinkServiceConnectionState": { | ||
"status": "Approved", | ||
"description": "Approving myPrivateEndpointConnection" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"body": { | ||
"name": "myPrivateEndpointConenction", | ||
"type": "Microsoft.Compute/diskAccesses/privateEndpointConnections", | ||
"properties": { | ||
"provisioningState": "Updating", | ||
"privateEndpoint": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint" | ||
}, | ||
"privateLinkServiceConnectionState": { | ||
"actionsRequired": "None", | ||
"description": "Approving myPrivateEndpointConnection", | ||
"status": "Approved" | ||
} | ||
} | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"name": "myPrivateEndpointConnectionName", | ||
"type": "Microsoft.Compute/diskAccesses/PrivateEndpointConnections", | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskAccesses/myDiskAccess/privateEndpoinConnections/myPrivateEndpointConnectionName", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"privateEndpoint": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint" | ||
}, | ||
"privateLinkServiceConnectionState": { | ||
"actionsRequired": "None", | ||
"description": "Approving myPrivateEndpointConnection", | ||
"status": "Approved" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...-manager/Microsoft.Compute/stable/2021-12-01/examples/BeginGetAccessDiskRestorePoint.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,22 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"restorePointCollectionName": "rpc", | ||
"vmRestorePointName": "vmrp", | ||
"diskRestorePointName": "TestDisk45ceb03433006d1baee0_b70cd924-3362-4a80-93c2-9415eaa12745", | ||
"api-version": "2021-12-01", | ||
"grantAccessData": { | ||
"access": "Read", | ||
"durationInSeconds": 300 | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"accessSAS": "https://md-gpvmcxzlzxgd.partition.blob.storage.azure.net/xx3cqcx53f0v/abcd?sv=2014-02-14&sr=b&sk=key1&sig=XXX&st=2021-05-24T18:02:34Z&se=2021-05-24T18:19:14Z&sp=r" | ||
} | ||
}, | ||
"202": {} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...ource-manager/Microsoft.Compute/stable/2021-12-01/examples/BeginGetAccessManagedDisk.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,20 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"diskName": "myDisk", | ||
"api-version": "2021-12-01", | ||
"grantAccessData": { | ||
"access": "Read", | ||
"durationInSeconds": 300 | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"accessSAS": "https://md-gpvmcxzlzxgd.partition.blob.storage.azure.net/xx3cqcx53f0v/abcd?sv=2014-02-14&sr=b&sk=key1&sig=XXX&st=2021-05-24T18:02:34Z&se=2021-05-24T18:19:14Z&sp=r" | ||
} | ||
}, | ||
"202": {} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...crosoft.Compute/stable/2021-12-01/examples/BeginGetAccessManagedDiskWithVMGuestState.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,22 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"diskName": "myDisk", | ||
"api-version": "2021-12-01", | ||
"grantAccessData": { | ||
"access": "Read", | ||
"durationInSeconds": 300, | ||
"getSecureVMGuestStateSAS": true | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"accessSAS": "https://md-gpvmcxzlzxgd.partition.blob.storage.azure.net/xx3cqcx53f0v/abcd?sv=2014-02-14&sr=b&sk=key1&sig=XXX&st=2021-05-24T18:02:34Z&se=2021-05-24T18:19:14Z&sp=r", | ||
"securityDataAccessSAS": "https://md-gpvmcxzlzxgd.partition.blob.storage.azure.net/xx3cqcx53f0v/b9bf5824-6122-49e0-ba22-042f76ccd8a1_vmgs?sv=2014-02-14&sr=b&sk=key1&sig=XXX&st=2021-05-24T18:02:34Z&se=2021-05-24T18:19:14Z&sp=r" | ||
} | ||
}, | ||
"202": {} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...resource-manager/Microsoft.Compute/stable/2021-12-01/examples/BeginGetAccessSnapshot.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,20 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"snapshotName": "mySnapshot", | ||
"api-version": "2021-12-01", | ||
"grantAccessData": { | ||
"access": "Read", | ||
"durationInSeconds": 300 | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"accessSAS": "https://md-gpvmcxzlzxgd.partition.blob.storage.azure.net/xx3cqcx53f0v/abcd?sv=2014-02-14&sr=b&sk=key1&sig=XXX&st=2021-05-24T18:02:34Z&se=2021-05-24T18:19:14Z&sp=r" | ||
} | ||
}, | ||
"202": {} | ||
} | ||
} |
66 changes: 66 additions & 0 deletions
66
...crosoft.Compute/stable/2021-12-01/examples/CreateAConfidentialVMDiskEncryptedWithCMK.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,66 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscriptionId}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2021-12-01", | ||
"diskName": "myDisk", | ||
"disk": { | ||
"location": "West US", | ||
"properties": { | ||
"osType": "Windows", | ||
"securityProfile": { | ||
"securityType": "ConfidentialVM_DiskEncryptedWithCustomerKey", | ||
"secureVMDiskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}" | ||
}, | ||
"creationData": { | ||
"createOption": "FromImage", | ||
"imageReference": { | ||
"id": "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/westus/Publishers/{publisher}/ArtifactTypes/VMImage/Offers/{offer}/Skus/{sku}/Versions/1.0.0" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"body": { | ||
"name": "myDisk", | ||
"location": "West US", | ||
"properties": { | ||
"provisioningState": "Updating", | ||
"osType": "Windows", | ||
"securityProfile": { | ||
"securityType": "ConfidentialVM_DiskEncryptedWithCustomerKey", | ||
"secureVMDiskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}" | ||
}, | ||
"creationData": { | ||
"createOption": "FromImage", | ||
"imageReference": { | ||
"id": "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/westus/Publishers/{publisher}/ArtifactTypes/VMImage/Offers/{offer}/Skus/{sku}/Versions/1.0.0" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"name": "myDisk", | ||
"location": "West US", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"osType": "Windows", | ||
"securityProfile": { | ||
"securityType": "ConfidentialVM_DiskEncryptedWithCustomerKey", | ||
"secureVMDiskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}" | ||
}, | ||
"creationData": { | ||
"createOption": "FromImage", | ||
"imageReference": { | ||
"id": "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/westus/Publishers/{publisher}/ArtifactTypes/VMImage/Offers/{offer}/Skus/{sku}/Versions/1.0.0" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
...pute/resource-manager/Microsoft.Compute/stable/2021-12-01/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": "2021-12-01", | ||
"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/2021-12-01/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": "2021-12-01", | ||
"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": [] | ||
} | ||
} | ||
} | ||
} | ||
} |
54 changes: 54 additions & 0 deletions
54
...e/2021-12-01/examples/CreateADiskEncryptionSetWithKeyVaultFromADifferentSubscription.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": "2021-12-01", | ||
"diskEncryptionSetName": "myDiskEncryptionSet", | ||
"diskEncryptionSet": { | ||
"location": "West US", | ||
"identity": { | ||
"type": "SystemAssigned" | ||
}, | ||
"properties": { | ||
"activeKey": { | ||
"keyUrl": "https://myvaultdifferentsub.vault-int.azure-int.net/keys/{key}" | ||
}, | ||
"encryptionType": "EncryptionAtRestWithCustomerKey" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"body": { | ||
"name": "myDiskEncryptionSet", | ||
"location": "West US", | ||
"identity": { | ||
"type": "SystemAssigned" | ||
}, | ||
"properties": { | ||
"activeKey": { | ||
"keyUrl": "https://myvaultdifferentsub.vault-int.azure-int.net/keys/{key}" | ||
}, | ||
"encryptionType": "EncryptionAtRestWithCustomerKey", | ||
"previousKeys": [] | ||
} | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"name": "myDiskEncryptionSet", | ||
"location": "West US", | ||
"identity": { | ||
"type": "SystemAssigned" | ||
}, | ||
"properties": { | ||
"activeKey": { | ||
"keyUrl": "https://myvaultdifferentsub.vault-int.azure-int.net/keys/{key}" | ||
}, | ||
"encryptionType": "EncryptionAtRestWithCustomerKey", | ||
"previousKeys": [] | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.