nautobot_ssot_vsphere.utilities.vsphere_client

Extending vSphere SDK.

Module Contents

Classes

VsphereClient

Class for interacting with VMWare vSphere.

Attributes

LOGGER

nautobot_ssot_vsphere.utilities.vsphere_client.LOGGER
class nautobot_ssot_vsphere.utilities.vsphere_client.VsphereClient(vsphere_uri: str = defaults.VSPHERE_URI, username: str = defaults.VSPHERE_USERNAME, password: str = defaults.VSPHERE_PASSWORD, verify_ssl: bool = is_truthy(defaults.VSPHERE_VERIFY_SSL))

Class for interacting with VMWare vSphere.

_request(method: str, path: str, **kwargs)

Return a response object after making a request to by other methods.

Args:

method (str): Request method to call in self.session. path (str): uri path to call.

Returns:

Response: Response from the API.

get_vms() Dict

Get VMs.

get_vms_from_cluster(cluster: str) Dict

Get VMs.

get_vms_from_dc(datacenter: str) Dict

Get VMs.

get_datacenters() Dict

Get datacenters.

get_datacenter_details(datacenter: str) Dict

Get datacenters.

get_clusters() Dict

Get Clusters.

get_clusters_from_dc(datacenter: str) Dict

Get Clusters.

get_cluster_details(cluster_name: str) Dict

Get Clusters.

get_vm_details(vm_id: str) Dict

Get all VMs details.

get_host_from_cluster(cluster: str) Dict

Get hosts from cluster.

get_host_details(host: str) Dict

Get host details.

get_vm_interfaces(vm_id: str) Dict

Get all VM interfaces.