kembitnl.pmp.resource (1.1.6) — module

Create or remove resources owned or shared by API account

Authors: Armand Hatting (armand@armandit.com)

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

Create or remove resources owned or shared by an API account in ManageEngine - Password Manager Pro

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Create a resources and account under an organization
- name: Get all resources
  kembitnl.pmp.resource:
    authtoken: 12324FSA-E348-4FDF-A75E-49GH508334930
    pmpserver: pmp.somedomain.com
    resourcename: 'FANCY-WEBSRV'
    accountname: 'Administrator'
    password: 'Str0ngP@ssw0rd'
    resourcetype: 'Windows'
    notes: 'Local Administrator'
    resourcedescription: 'Created by Automation Platform'
    department: 'IT Support'
    resourceurl: 'https://www.somefancywebsite.com'
    resourcegroupname: 'Default Group'
    domainname: 'dc1.somedomain.com'
    sec_dc: 'dc2.somedomain.com'
    resourcepasswordpolicy: "Offline Password File"
    accountpasswordpolicy: "Offline Password File"
    ownername: john@somedomain.com
    state: present
    dnsname: 'FANCY-WEBSRV.somedomain.com'
    location: 'Azure'
    organization: 'DeZorggroep'

Inputs

    
state:
    default: null
    description: The state of the resource (present or absent).
    required: true
    type: choice

password:
    default: null
    description: The password for the new account for this resource
    required: true
    type: str

authtoken:
    description: The API or integration accounts authorization token.
    required: true
    type: str

ownername:
    default: null
    description: The PMP login name of the owner for this (new) resource.
    required: true
    type: str

pmpserver:
    description: The Password Manager Pro Server Address (without http(s)://).
    required: true
    type: str

accountname:
    default: null
    description: The name of the new account for this resource.
    required: true
    type: str

organization:
    description: The name of the organization in PMP.
    required: true
    type: str

resourcename:
    default: null
    description: The name of the resource to be added or updated.
    required: true
    type: str

resourcetype:
    default: null
    description: The resource type of the resource to be added or updated
    required: true
    type: str

Outputs

resource:
  description: Returns a dictonairies containing the resource(s) data
  returned: on success
  sample:
    accountname: Administrator
    accountpasswordpolicy: Offline Password File
    authtoken: VALUE_SPECIFIED_IN_NO_LOG_PARAMETER
    custom_fields: null
    department: IT Support
    dnsname: FANCY-WEBSRV.somedomain.com
    domainname: dc1.somedomain.com
    location: Azure
    notes: Local Administrator
    organization: DeZorggroep
    ownername: john@somedomain.com
    password: VALUE_SPECIFIED_IN_NO_LOG_PARAMETER
    pmpserver: pim.kembit.nl
    resourcedescription: Created by Automation Platform
    resourcegroupname: Default Group
    resourcename: KEMBIT-TESTWEBSRV
    resourcepasswordpolicy: Offline Password File
    resourcetype: Windows
    resourceurl: https://www.somefancywebsite.com
    sec_dc: dc2.somedomain.com
    state: present
    update: false
  type: dict