pycloudlib.vmware.instance module

VMWare instance.

class pycloudlib.vmware.instance.VMWareInstance(key_pair: KeyPair, vm_id: str, env: Mapping)[source]

Bases: BaseInstance

VMWare backed instance.

__init__(key_pair: KeyPair, vm_id: str, env: Mapping)[source]

Instance for VMWare.

Parameters:
  • key_pair – SSH key object

  • vm_id – ID of the VM to interact with

delete(wait=True) List[Exception][source]

Delete the instance.

property id: str

Return instance id.

property ip: str

Return VM IP.

property name: str

Return VM name.

shutdown(wait=True, **kwargs)[source]

Shutdown the instance.

Parameters:

wait – wait for the instance shutdown

start(wait=True)[source]

Start the instance.

Parameters:

wait – wait for the instance to start.

wait_for_delete(**kwargs)[source]

Wait for instance to be deleted.

wait_for_stop(**kwargs)[source]

Wait for instance to stop.