location#
Exec module for managing Cloud Key Management Service locations.
- async idem_gcp.exec.gcp.cloudkms.location.get(hub, ctx, resource_id: str)[source]#
Returns a location by its Idem resource ID.
- Parameters:
resource_id (str) – Idem resource ID.
projects/{project id}/locations/{location id}
- Returns:
Location resource
Examples
{% set project_id = 'project-name' %} {% set location_id = 'us-east1' %} get-location: exec.run: - path: gcp.cloudkms.location.get - kwargs: resource_id: projects/{{project_id}}/locations/{{location_id}}
- async idem_gcp.exec.gcp.cloudkms.location.list_(hub, ctx, project: str = None, filter_: (<class 'str'>, 'alias=filter') = None) Dict[str, Any] [source]#
Retrieves the locations for a specific project.
- Parameters:
Examples
list-locations: exec.run: - path: gcp.cloudkms.location.list - kwargs: project: project-name