Update Vm Tags
Update the list of tags for a specific VM. An empty list of tags means to delete all dags for the VM. If user has edit permission on the VM, user can edit its tags.
Request
URI
PUT
https://{api_host}/cloudapi/1.0.0/securityTags/vm/{id}
COPY
Path Parameters
string
id
Required
the URN of the VM to manage tags for.
Request Body
the list of tags to update.
EntitySecurityTags
of type(s)
application/json
Required
{
"tags": [
"string"
]
}
array of
string
tags
Optional
Constraints:
maxItems: 256
The list of tags. The value is case-agnostic and will be converted to lower-case.
Responses
200
OK
Returns
EntitySecurityTags
of type(s)
application/json;version=39.1
"EntitySecurityTags Object"
array of
string
tags
Optional
Constraints:
maxItems: 256
The list of tags. The value is case-agnostic and will be converted to lower-case.
Code Samples
COPY
curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/cloudapi/1.0.0/securityTags/vm/{id}
Availability
Added in 36.0
On This Page
Security Tags Operations
GET
Get Tag Values
PUT
Update Security Tag
GET
Get Security Tagged Entities
GET
Get Vm Tags
PUT
Update Vm Tags