06-05-2023 11:21 PM
Hi,
I am trying to create a device tag through the vManage API. According to the API docs (SD-WAN vManage v20.9 - SD-WAN API - Document - Cisco Developer), the URI
POST /dataservice/tag
can be used for associating and creating tags. The sample payload given in the docs is only for associating tags. But how dow I actually create a tag if it doesn't exist yet?
Thanks!
Thorsten
Solved! Go to Solution.
06-06-2023 11:18 PM
Hi,
use below payload
{
"create": [
{
"name": "TAG_NAME",
"tagId": "",
"tagType": "device"
}
]
}
Example is given in 20.11 doc:
https://developer.cisco.com/docs/sdwan/#!sd-wan-vmanage-v20-11
06-06-2023 11:18 PM
Hi,
use below payload
{
"create": [
{
"name": "TAG_NAME",
"tagId": "",
"tagType": "device"
}
]
}
Example is given in 20.11 doc:
https://developer.cisco.com/docs/sdwan/#!sd-wan-vmanage-v20-11
06-07-2023 03:37 AM
Hi Kanan,
that works, thank you!
06-07-2023 04:13 AM
You are welcome.
By the way, tagID you can give your own (like 100 200) and then reference easily in other APIs.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: