kembitnl.pmp.resource_info (1.1.6) — module

list of all resources in an organization

Authors: KEMBIT Automation team (ansible@kembit.nl)

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

Retrieve a list of all resources in an organization that are available to the API account

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

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Retrieve all resources owned or shared by an API account
- name: Get all resources
  kembitnl.pmp.resource_info:
    orgName: MyOrganization

Inputs

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

Outputs

resource_info:
  description: Return all resources for a customer
  returned: on success
  sample:
    resources:
    - NOOFACCOUNTS: '2'
      RESOURCE DESCRIPTION: ''
      RESOURCE ID: '1234'
      RESOURCE NAME: Azure Accounts
      RESOURCE TYPE: Microsoft Azure
    - NOOFACCOUNTS: '9'
      RESOURCE DESCRIPTION: ''
      RESOURCE ID: '4567'
      RESOURCE NAME: Domain Accounts
      RESOURCE TYPE: WindowsDomain
  type: list