Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DiskRP swagger 2021-12-01 #17709

Merged
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"info": {
"title": "DiskResourceProviderClient",
"description": "The Disk Resource Provider Client.",
"version": "2021-08-01"
"version": "2021-12-01"
},
"host": "management.azure.com",
"schemes": [
Expand Down Expand Up @@ -103,6 +103,9 @@
"Create a managed disk and associate with disk access resource.": {
"$ref": "./examples/CreateAManagedDiskWithDiskAccess.json"
},
"Create a managed disk with dataAccessAuthMode": {
"$ref": "./examples/CreateAManagedDiskWithDataAccessAuthMode.json"
},
"Create a managed disk and associate with disk encryption set.": {
"$ref": "./examples/CreateAManagedDiskWithDiskEncryptionSet.json"
},
Expand Down Expand Up @@ -195,6 +198,9 @@
},
"Update a managed disk to change tier.": {
"$ref": "./examples/UpdateAManagedDiskToChangeTier.json"
},
"Update a managed disk to add architecture.": {
"$ref": "./examples/UpdateAManagedDiskToAddArchitecture.json"
}
}
},
Expand Down Expand Up @@ -2216,6 +2222,9 @@
},
"publicNetworkAccess": {
"$ref": "#/definitions/PublicNetworkAccess"
},
"dataAccessAuthMode": {
"$ref": "#/definitions/DataAccessAuthMode"
}
},
"required": [
Expand Down Expand Up @@ -2261,7 +2270,7 @@
},
"supportedCapabilities": {
"$ref": "#/definitions/SupportedCapabilities",
"description": "List of supported capabilities (like Accelerated Networking) for the image from which the source disk from the snapshot was originally created."
"description": "List of supported capabilities for the image from which the source disk from the snapshot was originally created."
},
"creationData": {
"$ref": "#/definitions/CreationData",
Expand Down Expand Up @@ -2325,6 +2334,9 @@
"completionPercent": {
"type": "number",
"description": "Percentage complete for the background copy when a resource is created via the CopyStart operation."
},
"dataAccessAuthMode": {
"$ref": "#/definitions/DataAccessAuthMode"
}
},
"required": [
Expand Down Expand Up @@ -2590,6 +2602,28 @@
]
}
},
"DataAccessAuthMode": {
"type": "string",
"description": "Add additional AAD authentication requirement when accessing disk/snapshot export URL.",
grizzlytheodore marked this conversation as resolved.
Show resolved Hide resolved
"enum": [
"AzureActiveDirectory",
"None"
],
"x-ms-enum": {
"name": "DataAccessAuthMode",
"modelAsString": true,
"values": [
{
"value": "AzureActiveDirectory",
"description": "When export/upload URL is used additional authentication is performed, to check if the user has necessary RBAC access. Please refer to aka.ms/{placeholder}."
grizzlytheodore marked this conversation as resolved.
Show resolved Hide resolved
},
{
"value": "None",
"description": "No additional authentication would be performed when accessing export/upload URL."
}
]
}
},
"DiskUpdateProperties": {
"properties": {
"osType": {
Expand Down Expand Up @@ -2663,7 +2697,7 @@
},
"supportedCapabilities": {
"$ref": "#/definitions/SupportedCapabilities",
"description": "List of supported capabilities (like accelerated networking) to be added on the OS disk."
"description": "List of supported capabilities to be added on the OS disk."
},
"propertyUpdatesInProgress": {
"readOnly": true,
Expand All @@ -2676,6 +2710,9 @@
},
"publicNetworkAccess": {
"$ref": "#/definitions/PublicNetworkAccess"
},
"dataAccessAuthMode": {
"$ref": "#/definitions/DataAccessAuthMode"
}
},
"description": "Disk resource update properties."
Expand Down Expand Up @@ -2721,9 +2758,12 @@
"publicNetworkAccess": {
"$ref": "#/definitions/PublicNetworkAccess"
},
"dataAccessAuthMode": {
"$ref": "#/definitions/DataAccessAuthMode"
},
"supportedCapabilities": {
"$ref": "#/definitions/SupportedCapabilities",
"description": "List of supported capabilities (like accelerated networking) for the image from which the OS disk was created."
"description": "List of supported capabilities for the image from which the OS disk was created."
}
},
"description": "Snapshot resource update properties."
Expand Down Expand Up @@ -2954,9 +2994,21 @@
"acceleratedNetwork": {
"type": "boolean",
"description": "True if the image from which the OS disk is created supports accelerated networking."
},
"architecture": {
"type": "string",
"description": "The architecture of the image.",
grizzlytheodore marked this conversation as resolved.
Show resolved Hide resolved
"enum": [
"x64",
"Arm64"
],
"x-ms-enum": {
"name": "Architecture",
"modelAsString": true
}
}
},
"description": "List of supported capabilities (like accelerated networking) persisted on the disk resource for VM use."
"description": "List of supported capabilities persisted on the disk resource for VM use."
},
"PropertyUpdatesInProgress": {
"properties": {
Expand Down Expand Up @@ -3522,7 +3574,7 @@
},
"supportedCapabilities": {
"$ref": "#/definitions/SupportedCapabilities",
"description": "List of supported capabilities (like accelerated networking) for the image from which the OS disk was created."
"description": "List of supported capabilities for the image from which the OS disk was created."
},
"familyId": {
"type": "string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"api-version": "2021-08-01",
"api-version": "2021-12-01",
"diskAccessName": "myDiskAccess",
"privateEndpointConnectionName": "myPrivateEndpointConnection",
"privateEndpointConnection": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"restorePointCollectionName": "rpc",
"vmRestorePointName": "vmrp",
"diskRestorePointName": "TestDisk45ceb03433006d1baee0_b70cd924-3362-4a80-93c2-9415eaa12745",
"api-version": "2021-08-01",
"api-version": "2021-12-01",
"grantAccessData": {
"access": "Read",
"durationInSeconds": 300
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"diskName": "myDisk",
"api-version": "2021-08-01",
"api-version": "2021-12-01",
"grantAccessData": {
"access": "Read",
"durationInSeconds": 300
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"diskName": "myDisk",
"api-version": "2021-08-01",
"api-version": "2021-12-01",
"grantAccessData": {
"access": "Read",
"durationInSeconds": 300,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"snapshotName": "mySnapshot",
"api-version": "2021-08-01",
"api-version": "2021-12-01",
"grantAccessData": {
"access": "Read",
"durationInSeconds": 300
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"subscriptionId": "{subscriptionId}",
"resourceGroupName": "myResourceGroup",
"api-version": "2021-08-01",
"api-version": "2021-12-01",
"diskName": "myDisk",
"disk": {
"location": "West US",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"api-version": "2021-08-01",
"api-version": "2021-12-01",
"diskAccessName": "myDiskAccess",
"diskAccess": {
"location": "West US"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"api-version": "2021-08-01",
"api-version": "2021-12-01",
"diskEncryptionSetName": "myDiskEncryptionSet",
"diskEncryptionSet": {
"location": "West US",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"api-version": "2021-08-01",
"api-version": "2021-12-01",
"diskEncryptionSetName": "myDiskEncryptionSet",
"diskEncryptionSet": {
"location": "West US",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"api-version": "2021-08-01",
"api-version": "2021-12-01",
"diskName": "myDisk",
"disk": {
"location": "West US",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"api-version": "2021-08-01",
"api-version": "2021-12-01",
"diskName": "myDisk",
"disk": {
"location": "West US",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"api-version": "2021-08-01",
"api-version": "2021-12-01",
"diskName": "myDisk",
"disk": {
"location": "West US",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"subscriptionId": "{subscriptionId}",
"resourceGroupName": "myResourceGroup",
"api-version": "2021-08-01",
"api-version": "2021-12-01",
"diskName": "myDisk",
"disk": {
"location": "West US",
Expand Down Expand Up @@ -31,7 +31,8 @@
"product": "{offer}"
},
"supportedCapabilities": {
"acceleratedNetwork": true
"acceleratedNetwork": true,
"architecture": "Arm64"
},
"creationData": {
"createOption": "FromImage",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"api-version": "2021-08-01",
"api-version": "2021-12-01",
"diskName": "myDisk2",
"disk": {
"location": "West US",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"api-version": "2021-08-01",
"api-version": "2021-12-01",
"diskName": "myDisk",
"disk": {
"location": "West US",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"api-version": "2021-08-01",
"api-version": "2021-12-01",
"diskName": "myDisk",
"disk": {
"location": "West US",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"api-version": "2021-12-01",
"diskName": "myDisk",
"disk": {
"location": "West US",
"properties": {
"creationData": {
"createOption": "Empty"
},
"diskSizeGB": 200,
"dataAccessAuthMode": "AzureActiveDirectory"
}
}
},
"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",
"dataAccessAuthMode": "AzureActiveDirectory"
},
"location": "West US",
"name": "myDisk"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"api-version": "2021-08-01",
"api-version": "2021-12-01",
"diskName": "myDisk",
"disk": {
"location": "West US",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"api-version": "2021-08-01",
"api-version": "2021-12-01",
"diskName": "myDisk",
"disk": {
"location": "West US",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"api-version": "2021-08-01",
"api-version": "2021-12-01",
"diskName": "myDisk",
"disk": {
"location": "West US",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"api-version": "2021-08-01",
"api-version": "2021-12-01",
"diskName": "myDisk",
"disk": {
"location": "West US",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"api-version": "2021-08-01",
"api-version": "2021-12-01",
"diskName": "myDisk",
"disk": {
"location": "North Central US",
Expand Down
Loading