cisco.dnac.snmp_property (2.0.7) — module

Manage SnmpProperty objects of Discovery

| "added in version" 1.0.0 of cisco.dnac"

Authors: Rafael Campos (@racampos)

This plugin has a corresponding action plugin.

Install collection

Install with ansible-galaxy collection install cisco.dnac:==2.0.7


Add to requirements.yml

  collections:
    - name: cisco.dnac
      version: 2.0.7

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: nm_get_snmp_properties
  • 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

dnac_response:
  description: A dictionary with the response returned by the DNA Center Python SDK
  returned: always
  sample:
    response: 29
    version: '1.0'
  type: dict
missing_params:
  description: Provided arguments do not comply with the schema of the DNA Center
    Python SDK function
  returned: when the function request schema is not satisfied
  sample: null
  type: list
sdk_function:
  description: The DNA Center SDK function used to execute the task
  returned: always
  sample: discovery.create_update_snmp_properties
  type: str

See also