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:
  • project (str, Optional) – Project ID for this request. If not provided will use the one configured in ctx

  • filter (str, Optional) – A filter to narrow down results to a preferred subset. The filtering language accepts strings like “displayName=tokyo”, and is documented in more detail in AIP-160.

Examples

list-locations:
    exec.run:
        - path: gcp.cloudkms.location.list
        - kwargs:
            project: project-name