Update Vm Tags

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.

Authentication
This operation uses the following authentication methods.
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}