get_vsphere_vm_snapshot
Retrieve summary information for the snapshots of a virtual machine.
def get_vsphere_vm_snapshot(self, vm_name, timeout=15):
Arguments
Name
Type
Description
Choices
vm_name
str
Name of the virtual machine.
Keyword Arguments
Name
Type
Description
Choices
Default
timeout
int
The number of seconds to wait to establish a connection with the Rubrik cluster before returning a timeout error.
15
Returns
Type
Return Value
dict
The full response of GET /v1/vmware/vm/{vm_id}/snapshot
Example
import rubrik_cdm
vm_name = "python-sdk-demo"
rubrik = rubrik_cdm.Connect()
get_vm_snapshot = rubrik.get_vsphere_vm_snapshot(vm_name)
Last updated