cisco.dnac.tag_member – Manage TagMember 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_member
.
New in version 1.0.0: of cisco.dnac
Synopsis¶
Returns tag members specified by id.
Adds members to the tag specified by id.
Removes Tag member from the tag specified by id.
Returns the number of members in a given tag.
Updates tag membership. As part of the request payload through this API, only the specified members are added / retained to the given input tags. Possible values of memberType attribute in the request payload can be queried by using the /tag/member/type API.
Returns list of supported resource types.
Note
This module has a corresponding action plugin.
Parameters¶
See Also¶
See also
- cisco.dnac.plugins.module_utils.definitions.tag_member
The official documentation on the cisco.dnac.plugins.module_utils.definitions.tag_member module.
- TagMember reference
Complete reference of the TagMember object model.
- TagMember reference
SDK reference.
Examples¶
- name: get_tag_members_by_id
cisco.dnac.tag_member:
state: query # required
id: SomeValue # string, required
member_type: SomeValue # string, required
level: SomeValue # string
limit: SomeValue # string
member_association_type: SomeValue # string
offset: SomeValue # string
register: nm_get_tag_members_by_id
- name: add_members_to_the_tag
cisco.dnac.tag_member:
state: create # required
id: SomeValue # string, required
- name: remove_tag_member
cisco.dnac.tag_member:
state: delete # required
id: SomeValue # string, required
member_id: SomeValue # string, required
- name: get_tag_member_count
cisco.dnac.tag_member:
state: query # required
id: SomeValue # string, required
member_type: SomeValue # string, required
count: True # boolean, required
level: SomeValue # string
member_association_type: SomeValue # string
register: nm_get_tag_member_count
- name: updates_tag_membership
cisco.dnac.tag_member:
state: update # required
memberToTags:
key:
- SomeValue # string
memberType: SomeValue # string
- name: get_tag_resource_types
cisco.dnac.tag_member:
state: query # required
register: nm_get_tag_resource_types
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Authors¶
Rafael Campos (@racampos)