kvcd.vmware package

Submodules

kvcd.vmware.vcloud_helper module

Set of helpers to manage a Cloud Director connection and its related objects.

class VcdSession(hostname: str, username: str, password: str, organisation: str, port: int = 443, verify_ssl: bool = True)[source]

Bases: object

Define VcdSession class to manage the Cloud Director connection and its related objects.

rehydrate()[source]

Renew the authentication, based on stored credentials.

exception VCDError(msg='', *args, **kwargs)[source]

Bases: Exception

Base class for exceptions with logging.

get_org(vcd_session: kvcd.vmware.vcloud_helper.VcdSession, org_name: str)[source]

Get an Org VDC based on its name

Parameters
  • vcd_session (VcdSession) – VCD session

  • org_name (str) – Name of the Organization

Returns

Org object

Return type

Org

get_vdc(vcd_session: kvcd.vmware.vcloud_helper.VcdSession, org_name: str, vdc_name: str)[source]

Get an Org VDC based on its name

Parameters
  • vcd_session (VcdSession) – VCD session

  • org_name (str) – Name of the Organization

  • vdc_name (str) – Name of the VDC to get

Returns

VDC object

Return type

VDC

Module contents