Note
This module is part of the cisco.dnac collection (version 6.31.3).
You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install cisco.dnac. You need further requirements to be able to use this module, see Requirements for details.
To use it in a playbook, specify: cisco.dnac.applications_v2.
New in cisco.dnac 6.14.0
Note
This module has a corresponding action plugin.
The below requirements are needed on the host that executes this module.
Parameter | Comments |
|---|---|
dnac_debug boolean | Flag for Cisco DNA Center SDK to enable debugging. Choices:
|
dnac_host string / required | The Cisco DNA Center hostname. |
dnac_password string | The Cisco DNA Center password to authenticate. |
dnac_port integer | The Cisco DNA Center port. Default: |
dnac_username aliases: user string | The Cisco DNA Center username to authenticate. Default: |
dnac_verify boolean | Flag to enable or disable SSL certificate verification. Choices:
|
dnac_version string | Informs the SDK which version of Cisco DNA Center to use. Default: |
id string | Id path parameter. Id of custom application to delete. |
payload list / elements=dictionary | Applications V2’s payload. |
|
displayName string |
Display name. |
|
id string |
Application id. |
|
indicativeNetworkIdentity list / elements=dictionary |
Applications V2’s indicativeNetworkIdentity. |
|
displayName string |
Display name. |
|
id string |
Id. |
|
lowerPort float |
Lower port. |
|
ports string |
Ports. |
|
protocol string |
Protocol. |
|
upperPort float |
Upper port. |
|
instanceId integer |
Instance id. |
|
instanceVersion float |
Instance version. |
|
name string |
Application name. |
|
namespace string |
Namespace. |
|
networkApplications list / elements=dictionary |
Applications V2’s networkApplications. |
|
applicationSubType string |
Application sub type, LEARNED discovered application, NONE nbar and custom application. |
|
applicationType string |
Application type, DEFAULT nbar application, DEFAULT_MODIFIED nbar modified application, CUSTOM custom application. |
|
appProtocol string |
App protocol. |
|
categoryId string |
Category id. |
|
displayName string |
Display name. |
|
dscp string |
Dscp. |
|
engineId string |
Engine id. |
|
helpString string |
Help string. |
|
id string |
Id. |
|
ignoreConflict boolean |
Ignore conflict, true or false. Choices:
|
|
longDescription string |
Long description. |
|
name string |
Application name. |
|
popularity float |
Popularity. |
|
rank integer |
Rank, any value between 1 to 65535. |
|
selectorId string |
Selector id. |
|
serverName string |
Server name. |
|
trafficClass string |
Traffic class. |
|
url string |
Url. |
|
networkIdentity list / elements=dictionary |
Applications V2’s networkIdentity. |
|
displayName string |
Display name. |
|
id string |
Id. |
|
ipv4Subnet list / elements=string |
Ipv4 subnet. |
|
ipv6Subnet list / elements=dictionary |
Ipv6 subnet. |
|
lowerPort float |
Lower port. |
|
ports string |
Ports. |
|
protocol string |
Protocol. |
|
upperPort float |
Upper port. |
|
parentScalableGroup dictionary |
Applications V2’s parentScalableGroup. |
|
idRef string |
Id reference to parent application set. |
|
qualifier string |
Qualifier, valid value application. |
|
scalableGroupExternalHandle string |
Scalable group external handle, should be equal to Application name. |
|
scalableGroupType string |
Scalable group type, valid value APPLICATION. |
|
type string |
Type, valid value scalablegroup. |
validate_response_schema boolean | Flag for Cisco DNA Center SDK to enable the validation of request bodies against a JSON schema. Choices:
|
Note
check_mode
See also
Complete reference of the CreateApplicationsV2 API.
Complete reference of the DeleteApplicationV2 API.
Complete reference of the EditApplicationsV2 API.
- name: Update all
cisco.dnac.applications_v2:
dnac_host: "{{dnac_host}}"
dnac_username: "{{dnac_username}}"
dnac_password: "{{dnac_password}}"
dnac_verify: "{{dnac_verify}}"
dnac_port: "{{dnac_port}}"
dnac_version: "{{dnac_version}}"
dnac_debug: "{{dnac_debug}}"
state: present
payload:
- displayName: string
id: string
indicativeNetworkIdentity:
- displayName: string
id: string
lowerPort: 0
ports: string
protocol: string
upperPort: 0
instanceId: 0
instanceVersion: 0
name: string
namespace: string
networkApplications:
- appProtocol: string
applicationSubType: string
applicationType: string
categoryId: string
displayName: string
dscp: string
engineId: string
helpString: string
id: string
ignoreConflict: true
longDescription: string
name: string
popularity: 0
rank: 0
selectorId: string
serverName: string
trafficClass: string
url: string
networkIdentity:
- displayName: string
id: string
ipv4Subnet:
- string
ipv6Subnet:
- {}
lowerPort: 0
ports: string
protocol: string
upperPort: 0
parentScalableGroup:
idRef: string
qualifier: string
scalableGroupExternalHandle: string
scalableGroupType: string
type: string
- name: Create
cisco.dnac.applications_v2:
dnac_host: "{{dnac_host}}"
dnac_username: "{{dnac_username}}"
dnac_password: "{{dnac_password}}"
dnac_verify: "{{dnac_verify}}"
dnac_port: "{{dnac_port}}"
dnac_version: "{{dnac_version}}"
dnac_debug: "{{dnac_debug}}"
state: present
payload:
- indicativeNetworkIdentity:
- ipv4Subnet:
- string
ipv6Subnet:
- string
lowerPort: 0
ports: string
protocol: string
upperPort: 0
name: string
networkApplications:
- appProtocol: string
applicationType: string
categoryId: string
dscp: string
engineId: 0
helpString: string
ignoreConflict: true
rank: 0
serverName: string
trafficClass: string
type: string
url: string
networkIdentity:
- ipv4Subnet:
- string
lowerPort: 0
ports: string
protocol: string
upperPort: 0
parentScalableGroup:
idRef: string
scalableGroupType: string
type: string
- name: Delete by id
cisco.dnac.applications_v2:
dnac_host: "{{dnac_host}}"
dnac_username: "{{dnac_username}}"
dnac_password: "{{dnac_password}}"
dnac_verify: "{{dnac_verify}}"
dnac_port: "{{dnac_port}}"
dnac_version: "{{dnac_version}}"
dnac_debug: "{{dnac_debug}}"
state: absent
id: string
Common return values are documented here, the following are the fields unique to this module:
Key | Description |
|---|---|
dnac_response dictionary | A dictionary or list with the response returned by the Cisco DNAC Python SDK Returned: always Sample: |
© 2012–2018 Michael DeHaan
© 2018–2025 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/cisco/dnac/applications_v2_module.html