Skip to content

Commit

Permalink
Add supportedCapabilities in SnapshotUpdateProperties model (#16768)
Browse files Browse the repository at this point in the history
* Add supportedCapabilities in SnapshotUpdateProperties model

* Add an example for update acceleratedNetwork on snapshots

* Fix example model

* clean up
  • Loading branch information
laurawu19 authored Nov 19, 2021
1 parent 1f4a5c9 commit 98f557a
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,9 @@
"x-ms-examples": {
"Update a snapshot.": {
"$ref": "./examples/UpdateASnapshot.json"
},
"Update a snapshot with accelerated networking.": {
"$ref": "./examples/UpdateASnapshotWithAcceleratedNetwork.json"
}
},
"x-ms-long-running-operation": true
Expand Down Expand Up @@ -2693,6 +2696,10 @@
},
"publicNetworkAccess": {
"$ref": "#/definitions/PublicNetworkAccess"
},
"supportedCapabilities": {
"$ref": "#/definitions/SupportedCapabilities",
"description": "List of supported capabilities (like accelerated networking) for the image from which the OS disk was created."
}
},
"description": "Snapshot resource update properties."
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"snapshotName": "mySnapshot",
"api-version": "2021-08-01",
"snapshot": {
"properties": {
"diskSizeGB": 20,
"supportedCapabilities": {
"acceleratedNetwork": false
}
},
"tags": {
"department": "Development",
"project": "UpdateSnapshots"
}
}
},
"responses": {
"202": {
"headers": {
"Location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot?api-version=2021-04-01"
},
"body": {
"properties": {
"creationData": {
"createOption": "Copy",
"sourceResourceId": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1"
},
"supportedCapabilities": {
"acceleratedNetwork": false
},
"diskSizeGB": 20,
"provisioningState": "Updating"
},
"tags": {
"department": "Development",
"project": "UpdateSnapshots"
},
"location": "West US",
"name": "mySnapshot"
}
},
"200": {
"body": {
"properties": {
"creationData": {
"createOption": "Copy",
"sourceResourceId": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1"
},
"supportedCapabilities": {
"acceleratedNetwork": false
},
"diskSizeGB": 20,
"provisioningState": "Succeeded"
},
"tags": {
"department": "Development",
"project": "UpdateSnapshots"
},
"location": "West US",
"name": "mySnapshot"
}
}
}
}

0 comments on commit 98f557a

Please sign in to comment.