aiyor.gcp.gcp_resourcemanager_folders_info (1.0.1) — module

Gather info for GCP Folder(s) - List Folder(s) with associated properties.

Authors: Tze L. (https://github.com/tl-aiyor)

preview | supported by community

Install collection

Install with ansible-galaxy collection install aiyor.gcp:==1.0.1


Add to requirements.yml

  collections:
    - name: aiyor.gcp
      version: 1.0.1

Description

Gather info for GCP Folder(s)


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: get list of secrets and the associated versions - secret payload excluded
  gcp_resourcemanager_folders_info:
    parent: organizations/111111111
    auth_kind: application

Inputs

    
scopes:
    default: https://www.googleapis.com/auth/cloud-platform
    description:
    - Array of scopes to be used
    elements: str
    type: list

env_type:
    description:
    - Specifies which Ansible environment you're running this module within.
    - This should not be set unless you know what you're doing.
    - This only alters the User Agent string for any API requests.
    type: str

auth_kind:
    choices:
    - application
    - machineaccount
    - serviceaccount
    - accesstoken
    description:
    - The type of credential used.
    required: true
    type: str

access_token:
    description:
    - An OAuth2 access token if credential type is accesstoken.
    type: str

service_account_file:
    description:
    - The path of a Service Account JSON file if serviceaccount is selected as type.
    type: path

service_account_email:
    description:
    - An optional service account email address if machineaccount is selected and the
      user does not wish to use the default email.
    type: str

service_account_contents:
    description:
    - The contents of a Service Account JSON file, either in a dictionary or as a JSON
      string that represents it.
    type: jsonarg

Outputs

resources:
  contains:
    createTime:
      description:
      - The creation time of the secret.
      type: str
    displayName:
      description: The folder's display name. STATE_UNSPECIFIED | ACTIVE | DELETE_REQUESTED
      returned: success
      type: str
    etag:
      description:
      - A checksum computed by the server based on the current value of the folder
        resource
      returned: success
      type: str
    name:
      description:
      - The full name/id of Folder (e.g., folders/{folder_id}).
      returned: success
      type: str
    parent:
      description:
      - Folder's parent id
      required: true (if 'search' is not used.)
      returned: success
      type: str
    state:
      description: The lifecycle state of the folder.
      returned: success
      type: str
    updateTime:
      description:
      - Timestamp when the folder was requested to be deleted.
      type: str
  description: List of resources
  returned: always
  type: complex