pyvcloud.vcd.system module

class pyvcloud.vcd.system.System(client, admin_href=None, admin_resource=None)

Bases: object

create_org(org_name, full_org_name, is_enabled=False)

Create new organization.

Parameters:
  • org_name – (str): The name of the organization.
  • full_org_name – (str): The fullname of the organization.
  • is_enabled – (bool): Enable organization if True
Returns:

(AdminOrgType) Created org object.

delete_org(org_name, force=None, recursive=None)

Delete an organization.

Parameters:
  • org_name – (str): name of the org to be deleted.
  • force – (bool): pass force=True along with recursive=True to remove an organization and any objects it contains, regardless of their state.
  • recursive – (bool): pass recursive=True to remove an organization and any objects it contains that are in a state that normally allows removal.
get_network_pool_reference(name)

Return a network pool by name in the system organization.

Returns:NetworkPoolReference item if found, raise Exception otherwise.
get_provider_vdc(name)

Return a provider VDC by name in the system organization.

Returns:ProviderVdcReference item if found, raise Exception otherwise.
get_provider_vdc_storage_profile(name)

Return a provider VDC storage profile by name in the system org.

Returns:ProviderVdcStorageProfile item if found, raise Exception otherwise.
list_network_pools()

List network pools in the system organization.

Returns:a list of NetworkPoolReference items
list_provider_vdc_storage_profiles(name=None)

List provider VDC storage profiles in the system organization.

Returns:a list of ProviderVdcStorageProfile items
list_provider_vdcs()

List provider VDCs in the system organization.

Returns:a list of ProviderVdcReference items