racampos.dnac.global_credential_snmpv2_write_community (0.0.1) — module

Manage GlobalCredentialSnmpv2WriteCommunity objects of Discovery

| "added in version" 1.0 of racampos.dnac"

Authors: first last (@GitHubID)

preview | supported by community

This plugin has a corresponding action plugin.

Install collection

Install with ansible-galaxy collection install racampos.dnac:==0.0.1


Add to requirements.yml

  collections:
    - name: racampos.dnac
      version: 0.0.1

Description

Adds global SNMP write community.

Updates global SNMP write community.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: create_snmp_write_community
  cisco.dnac.global_credential_snmpv2_write_community:
    state: create  # required
    payload:  # required
    - writeCommunity: SomeValue  # string, required
      comments: SomeValue  # string
      credentialType: SomeValue  # string
      description: SomeValue  # string
      id: SomeValue  # string
      instanceTenantId: SomeValue  # string
      instanceUuid: SomeValue  # string
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
  
- name: update_snmp_write_community
  cisco.dnac.global_credential_snmpv2_write_community:
    state: update  # required
    writeCommunity: SomeValue  # string, required
    comments: SomeValue  # string
    credentialType: SomeValue  # string, valid values: 'GLOBAL', 'APP'.
    description: SomeValue  # string
    id: SomeValue  # string
    instanceTenantId: SomeValue  # string
    instanceUuid: SomeValue  # string

Inputs

    
id:
    description:
    - SNMPv2WriteCommunityDTO's id.
    type: str

payload:
    description:
    - An object to send in the Request body.
    - Required for state create.
    elements: dict
    suboptions:
      comments:
        description:
        - It is the global credential snmpv2 write community's comments.
        type: str
      credentialType:
        description:
        - It is the global credential snmpv2 write community's credentialType.
        type: str
      description:
        description:
        - It is the global credential snmpv2 write community's description.
        type: str
      id:
        description:
        - It is the global credential snmpv2 write community's id.
        type: str
      instanceTenantId:
        description:
        - It is the global credential snmpv2 write community's instanceTenantId.
        type: str
      instanceUuid:
        description:
        - It is the global credential snmpv2 write community's instanceUuid.
        type: str
      writeCommunity:
        description:
        - It is the global credential snmpv2 write community's writeCommunity.
        required: true
        type: str
    type: list

comments:
    description:
    - SNMPv2WriteCommunityDTO's comments.
    type: str

description:
    description:
    - SNMPv2WriteCommunityDTO's description.
    type: str

instanceUuid:
    description:
    - SNMPv2WriteCommunityDTO's instanceUuid.
    type: str

credentialType:
    description:
    - SNMPv2WriteCommunityDTO's credentialType.
    - Available values are 'GLOBAL' and 'APP'.
    type: str

writeCommunity:
    description:
    - SNMPv2WriteCommunityDTO's writeCommunity.
    - Required for state update.
    type: str

instanceTenantId:
    description:
    - SNMPv2WriteCommunityDTO's instanceTenantId.
    type: str

Outputs

create_snmp_write_community:
  contains: null
  description: Adds global SNMP write community.
  response:
    contains:
      taskId:
        description: It is the global credential snmpv2 write community's taskId.
        returned: success
        type: dict
      url:
        description: It is the global credential snmpv2 write community's url.
        returned: success
        sample: <url>
        type: str
    description: SNMPv2WriteCommunityDTO's response.
    returned: success
    type: dict
  returned: success
  type: dict
  version:
    description: SNMPv2WriteCommunityDTO's version.
    returned: success
    sample: '1.0'
    type: str
update_snmp_write_community:
  contains: null
  description: Updates global SNMP write community.
  response:
    contains:
      taskId:
        description: It is the global credential snmpv2 write community's taskId.
        returned: changed
        type: dict
      url:
        description: It is the global credential snmpv2 write community's url.
        returned: changed
        sample: <url>
        type: str
    description: SNMPv2WriteCommunityDTO's response.
    returned: changed
    type: dict
  returned: changed
  type: dict
  version:
    description: SNMPv2WriteCommunityDTO's version.
    returned: changed
    sample: '1.0'
    type: str

See also