Snapservice. Clusters. Virtual Machines. Snapshots List
List the snapshots for the given virtual machine.
This operation was added in vSphere API 8.0.3.0.
Returns an authorization error if you do not have all of the privileges described as follows:
- The resource
ClusterComputeResource
referenced by the parameter cluster requiresSystem.Read
.
Identifier of the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource
.
Identifier of the virtual machine.
The parameter must be an identifier for the resource type: VirtualMachine
.
Specification of matching snapshots for which information should be returned.
If missing or null
, the behavior is equivalent to a Snapservice.Clusters.VirtualMachines.Snapshots.FilterSpec with all properties missing or null
which means all virtual machine snapshots match the filter.
Identifiers of the snapshots that must match the filter.
This property was added in vSphere API 8.0.3.0.
If missing or null
snapshots with any identifier match the filter.
When clients pass a value of this schema as a parameter, the property must contain identifiers for the resource type: com.vmware.snapservice.vm.snapshot
. When operations return a value of this schema as a response, the property will contain identifiers for the resource type: com.vmware.snapservice.vm.snapshot
.
Names of the snapshots that must match the filter.
This property was added in vSphere API 8.0.3.0.
If missing or null
snapshots with any name match the filter.
Information about the snapshots matching the Snapservice.Clusters.VirtualMachines.Snapshots.FilterSpec for the specified virtual machine.
"Snapservice.Clusters.VirtualMachines.Snapshots.ListResult Object"
If validation of the filter fails.
"Vapi.Std.Errors.InvalidArgument Object"
If the caller is not authenticated.
"Vapi.Std.Errors.Unauthenticated Object"
If the caller is not authorized to perform the operation.
"Vapi.Std.Errors.Unauthorized Object"
If there is no cluster associated with cluster or no or no virtual machine associated with vmin the system.
"Vapi.Std.Errors.NotFound Object"
If there is unknown internal error.
"Vapi.Std.Errors.Error Object"
If the service is not available.
"Vapi.Std.Errors.ServiceUnavailable Object"
curl -H 'Authorization: <value>' https://{api_host}/api/snapservice/clusters/{cluster}/virtual-machines/{vm}/snapshots