kembitnl.pmp.getaccount (1.1.6) — lookup

Generates a list of accounts that start with a pattern

Authors: unknown

Install collection

Install with ansible-galaxy collection install kembitnl.pmp:==1.1.6


Add to requirements.yml

  collections:
    - name: kembitnl.pmp
      version: 1.1.6

Description

This lookup plugin retrieves all accounts that start with a given string in a resource.

The PMP URL and authtoken must be set in environment variables PMP_URL and PMP_AUTHTOKEN.

Inputs

    
orgName:
    description: The name of the organization. If omitted, the default organization will
      be used.
    required: false
    type: str

resourceName:
    description: The name of the resource
    required: true
    type: str

accountPattern:
    description: The start of the accountname to search for
    required: true
    type: str

Outputs

accountlist:
  description: A comma-separated list with accounts matching the pattern, or an empty
    string if no matches are found
  returned: on success
  sample:
  - svc-vmware,svc-ldap,svc-application
  - ''
  type: str