cisco.dnac.application_set (2.0.7) — module

Manage ApplicationSet objects of ApplicationPolicy

| "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

Delete existing application-set by it's id.

Get appllication-sets by offset/limit or by name.

Create new custom application-set/s.

Get the number of existing application-sets.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: delete_application_set
  cisco.dnac.application_set:
    state: delete  # required
    id: SomeValue  # string, required
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: get_application_sets
  cisco.dnac.application_set:
    state: query  # required
    limit: 1  #  number
    name: SomeValue  # string
    offset: 1  #  number
  register: nm_get_application_sets
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: create_application_set
  cisco.dnac.application_set:
    state: create  # required
    payload:  # required
    - name: SomeValue  # string
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: get_application_sets_count
  cisco.dnac.application_set:
    state: query  # required
    count: True  # boolean, required
  register: nm_get_application_sets_count

Inputs

    
id:
    description:
    - Id query parameter.
    - Required for state delete.
    type: str

name:
    description:
    - Name query parameter.
    type: str

count:
    description:
    - If true gets the number of objects.
    - Required for state query.
    type: bool

limit:
    description:
    - Limit query parameter.
    type: int

offset:
    description:
    - Offset query parameter.
    type: int

payload:
    description:
    - An object to send in the Request body.
    - Required for state create.
    elements: dict
    suboptions:
      name:
        description:
        - It is the application set's name.
        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: application_policy.create_application_set
  type: str

See also