get_vsphere_vm_details

Retrieve details for a virtual machine.

def get_vsphere_vm_details(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/{id}.

Example

import rubrik_cdm

rubrik = rubrik_cdm.Connect()

vm_name = "python-sdk-demo"

get_vm_details = rubrik.get_vsphere_vm_details(vm_name)

Last updated