racampos.dnac.snmp_property (0.0.1) — module

Manage SnmpProperty 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

Returns SNMP properties.

Adds SNMP properties.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: get_snmp_properties
  cisco.dnac.snmp_property:
    state: query  # required

  register: query_result
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
  
- name: create_update_snmp_properties
  cisco.dnac.snmp_property:
    state: create  # required
    payload:  # required
    - id: SomeValue  # string
      instanceTenantId: SomeValue  # string
      instanceUuid: SomeValue  # string
      intValue: 1  #  integer
      systemPropertyName: SomeValue  # string

Inputs

    
payload:
    description:
    - An object to send in the Request body.
    - Required for state create.
    elements: dict
    suboptions:
      id:
        description:
        - It is the snmp property's id.
        type: str
      instanceTenantId:
        description:
        - It is the snmp property's instanceTenantId.
        type: str
      instanceUuid:
        description:
        - It is the snmp property's instanceUuid.
        type: str
      intValue:
        description:
        - It is the snmp property's intValue.
        type: int
      systemPropertyName:
        description:
        - It is the snmp property's systemPropertyName.
        type: str
    type: list

Outputs

create_update_snmp_properties:
  contains: null
  description: Adds SNMP properties.
  response:
    contains:
      taskId:
        description: It is the snmp property's taskId.
        returned: success
        type: dict
      url:
        description: It is the snmp property's url.
        returned: success
        sample: <url>
        type: str
    description: SystemPropertyNameAndIntValueDTO's response.
    returned: success
    type: dict
  returned: success
  type: dict
  version:
    description: SystemPropertyNameAndIntValueDTO's version.
    returned: success
    sample: '1.0'
    type: str
get_snmp_properties:
  contains: null
  description: Returns SNMP properties.
  response:
    contains:
      id:
        description: It is the snmp property's id.
        returned: always
        sample: '478012'
        type: str
      instanceTenantId:
        description: It is the snmp property's instanceTenantId.
        returned: always
        sample: <instancetenantid>
        type: str
      instanceUuid:
        description: It is the snmp property's instanceUuid.
        returned: always
        sample: <instanceuuid>
        type: str
      intValue:
        description: It is the snmp property's intValue.
        returned: always
        sample: 0
        type: int
      systemPropertyName:
        description: It is the snmp property's systemPropertyName.
        returned: always
        sample: <systempropertyname>
        type: str
    description: Response, property of the response body (list of objects).
    returned: always
    type: list
  returned: always
  type: dict
  version:
    description: Version, property of the response body.
    returned: always
    sample: '1.0'
    type: str

See also