cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
412
Views
1
Helpful
3
Replies

vManage API: how to create a device tag

tbleise
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

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

HTH,
Please rate and mark as an accepted solution if you have found any of the information provided useful.

View solution in original post

3 Replies 3

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

HTH,
Please rate and mark as an accepted solution if you have found any of the information provided useful.

Hi Kanan,

that works, thank you!

You are welcome.

By the way, tagID you can give your own (like 100 200) and then reference easily in other APIs.

HTH,
Please rate and mark as an accepted solution if you have found any of the information provided useful.

Getting Started

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: