location#

async idem_vra.states.vra.iaas.location.present(hub, ctx, name: str, regionId: Any, **kwargs)[source]#
Parameters:
  • regionId (string) – (required in body) The id of the region for which this profile is created

  • name (string) – (required in body) A human-friendly name used as an identifier in APIs that support this option.

  • apiVersion (string) – (optional in query) The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about

  • customProperties (object) – (optional in body) A list of key value pair of properties that will be used

  • folder (string) – (optional in body) The folder relative path to the datacenter where resources are deployed to. (only applicable for vSphere cloud zones)

  • computeIds (array) – (optional in body) The ids of the compute resources that will be explicitly assigned to this zone

  • tagsToMatch (array) – (optional in body) A set of tag keys and optional values that will be used

  • description (string) – (optional in body) A human-friendly description.

  • placementPolicy (string) – (optional in body) Placement policy for the zone. One of DEFAULT, SPREAD, BINPACK or SPREAD_MEMORY.

  • tags (array) – (optional in body) A set of tag keys and optional values that are effectively applied to all compute resources in this zone, but only in the context of this zone.

async idem_vra.states.vra.iaas.location.absent(hub, ctx, name: str, **kwargs)[source]#
Parameters:
  • p_id (string) – (required in path) The ID of the zone.

  • apiVersion (string) – (optional in query) The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about

async idem_vra.states.vra.iaas.location.describe(hub, ctx)[source]#
idem_vra.states.vra.iaas.location.is_pending(hub, ret: dict, state: str = None, **pending_kwargs)[source]#
class idem_vra.states.vra.iaas.location.LocationState(hub, ctx)[source]#

Bases: object

async present(hub, ctx, name: str, regionId: Any, **kwargs)[source]#
async absent(hub, ctx, name: str, **kwargs)[source]#
async describe(hub, ctx)[source]#
async paginate_find(hub, ctx, **kwargs)[source]#

Paginate through all resources using their ‘find’ method.

is_pending(hub, ret: dict, state: str = None, **pending_kwargs)[source]#

State reconciliation

async remap_resource_structure(hub, ctx, obj: dict) dict[source]#