cisco.dnac.tag – Manage Tag objects of Tag¶
Note
This plugin is part of the cisco.dnac collection (version 2.0.7).
To install it use: ansible-galaxy collection install cisco.dnac
.
To use it in a playbook, specify: cisco.dnac.tag
.
New in version 1.0.0: of cisco.dnac
Synopsis¶
Returns the Tags for given filter criteria.
Creates Tag with specified Tag attributes.
Updates a Tag specified by id.
Deletes a Tag specified by id.
Returns Tag specified by Id.
Returns Tag count.
Note
This module has a corresponding action plugin.
Parameters¶
See Also¶
See also
- cisco.dnac.plugins.module_utils.definitions.tag
The official documentation on the cisco.dnac.plugins.module_utils.definitions.tag module.
- Tag reference
Complete reference of the Tag object model.
- Tag reference
SDK reference.
Examples¶
- name: get_tag
cisco.dnac.tag:
state: query # required
additional_info_attributes: SomeValue # string
additional_info_name_space: SomeValue # string
field: SomeValue # string
level: SomeValue # string
limit: SomeValue # string
name: SomeValue # string
offset: SomeValue # string
order: SomeValue # string
size: SomeValue # string
sort_by: SomeValue # string
system_tag: SomeValue # string
register: nm_get_tag
- name: create_tag
cisco.dnac.tag:
state: present # required
description: SomeValue # string
dynamicRules:
- memberType: SomeValue # string
rules:
values:
- SomeValue # string
items: None
operation: SomeValue # string
name: SomeValue # string
value: SomeValue # string
id: SomeValue # string
instanceTenantId: SomeValue # string
name: SomeValue # string
systemTag: True # boolean
- name: update_tag
cisco.dnac.tag:
state: present # required
description: SomeValue # string
dynamicRules:
- memberType: SomeValue # string
rules:
values:
- SomeValue # string
items: None
operation: SomeValue # string
name: SomeValue # string
value: SomeValue # string
id: SomeValue # string
instanceTenantId: SomeValue # string
name: SomeValue # string
systemTag: True # boolean
- name: delete_tag
cisco.dnac.tag:
state: absent # required
id: SomeValue # string, required
- name: get_tag_by_id
cisco.dnac.tag:
state: query # required
id: SomeValue # string, required
register: nm_get_tag_by_id
- name: get_tag_count
cisco.dnac.tag:
state: query # required
count: True # boolean, required
attribute_name: SomeValue # string
level: SomeValue # string
name: SomeValue # string
name_space: SomeValue # string
size: SomeValue # string
system_tag: SomeValue # string
register: nm_get_tag_count
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Authors¶
Rafael Campos (@racampos)