cisco.dnac.global_credential_netconf (2.0.7) — module

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

Adds global netconf credentials.

Updates global netconf credentials.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: create_netconf_credentials
  cisco.dnac.global_credential_netconf:
    state: create  # required
    payload:  # required
    - netconfPort: 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_netconf_credentials
  cisco.dnac.global_credential_netconf:
    state: update  # required
    netconfPort: SomeValue  # string, required
    comments: SomeValue  # string
    credentialType: # valid values are 'GLOBAL',
      # 'APP'.
      SomeValue  # string
    description: SomeValue  # string
    id: SomeValue  # string
    instanceTenantId: SomeValue  # string
    instanceUuid: SomeValue  # string

Inputs

    
id:
    description:
    - NetconfCredentialDTO'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 netconf's comments.
        type: str
      credentialType:
        description:
        - It is the global credential netconf's credentialType.
        type: str
      description:
        description:
        - It is the global credential netconf's description.
        type: str
      id:
        description:
        - It is the global credential netconf's id.
        type: str
      instanceTenantId:
        description:
        - It is the global credential netconf's instanceTenantId.
        type: str
      instanceUuid:
        description:
        - It is the global credential netconf's instanceUuid.
        type: str
      netconfPort:
        description:
        - It is the global credential netconf's netconfPort.
        required: true
        type: str
    type: list

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

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

netconfPort:
    description:
    - NetconfCredentialDTO's netconfPort.
    - Required for state update.
    type: str

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

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

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

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_netconf_credentials
  type: str

See also