Update Vm Snapshot
API can be leveraged to change snapshot name or revert to the specified snapshot by setting isCurrent to true.
Request
URI
PUT
https://{api_host}/cloudapi/1.0.0/vm/{vmUrn}/snapshots/{snapshotId}
COPY
Path Parameters
string
vmUrn
Required
vmUrn
string
snapshotId
Required
snapshotId.
Request Body
VmSnapshot
of type(s)
application/json
Optional
{
"id": "string",
"name": "Snapshot Sample Name",
"isCurrent": false,
"state": "string",
"storageConsumedMb": 0,
"dateCreated": "string",
"memory": false,
"quiesce": false,
"vappSnapshotId": "string",
"parentSnapshotId": "string",
"vm": {
"name": "string",
"id": "string"
},
"type": "string"
}
Responses
202
The request have been accepted and the task to monitor the request is in the Location header.
Operation doesn't return any data structure
Code Samples
COPY
curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/cloudapi/1.0.0/vm/{vmUrn}/snapshots/{snapshotId}
Availability
Added in 39.0
On This Page
Vm Snapshots Operations
GET
Get Vm Snapshots
POST
Create Vm Snapshot
GET
Get Vm Snapshot
PUT
Update Vm Snapshot
DELETE
Remove Vm Snapshot