Cns Volume Manager Cns Delete Snapshots
Delete snapshots with given volumeIds and snapshotIds.
Delete snapshot operation should be called by providing at least one SnapshotDeleteSpec If an array of empty spec is passed, the operation will fail. Return a task that tracks the status and result of delete operation per given volume. Following privileges will be required on specified entities, to perform this operation:
- Datastore.FileManagement on all involved Datastores
The unique identifier for the managed object to which the method attaches; the serialized managed object reference for a request has the form moType/moId
, in this case CnsVolumeManager/{moId}
.
The vSphere release schema. The current specification covers vSphere 9.0.0.0 APIs.
"CnsDeleteSnapshotsRequestType Object"
Specifications for snapshot delete operation.
Delete the snapshot with given volumeId and snapshotId.
This structure may be used only with operations rendered under /vsan
.
Task to track the progress and result of this operation.
"MoRefTask Object"
InvalidArgument: This API supports input size of 1 only. If
more or less than one entries are passed as
input, this exception will be thrown and
operation will fail.
This exception will be thrown when invalid
format for VolumeId id
is passed, or volume IDs is empty etc.
NotFound: if the volume or snapshot can not be found.
CnsFault: Thrown for all other failure scenario.
"VimFault Object"
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/vsan/CnsVolumeManager/{moId}/CnsDeleteSnapshots