kembitnl / kembitnl.pmp / 1.1.6 / module / resource_info list of all resources in an organization Authors: KEMBIT Automation team (ansible@kembit.nl)kembitnl.pmp.resource_info (1.1.6) — module
Install with ansible-galaxy collection install kembitnl.pmp:==1.1.6
collections: - name: kembitnl.pmp version: 1.1.6
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.
# Retrieve all resources owned or shared by an API account - name: Get all resources kembitnl.pmp.resource_info: orgName: MyOrganization
orgName: aliases: - organization description: The name of the organization. If omitted, the default organization will be used. required: false type: str
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