Skip to content

I don't understand the add_members_to_the_tag function #218

@chaispaquichui

Description

@chaispaquichui

Prerequisites

  • [X ] Have you tested the operation in the API directly?
  • Do you have the latest SDK version?
  • Review the compatibility matrix before opening an issue.

Describe the bug

The documentation of this function is very confusing for me

https://dnacentersdk.readthedocs.io/en/latest/api/api.html#dnacentersdk.api.v3_1_3_0.tag.Tag.add_members_to_the_tag

Can you provide a example of how to use it ?

The DNA API only request a payload like this :

{"networkdevice" : ["6eea7bb4-4bb3-4c75-86a6-aa790d17f52d"]}

but the documentation of the function mention the memberType parameter wich is a list of string

I was able to use the function like this :

p = {"networkdevice" : ["6eea7bb4-4bb3-4c75-86a6-aa790d17f52d"]}
dna.tag.add_members_to_the_tag(id='3529f14c-7e95-49ec-a80a-22507b1113af', payload=p)

But I don't know if it's the right way to use it. Can you tell me what is the purpose of the memberType parameter ? Thanks

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationquestionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions