Adds tags to specified cloud desktops. This makes it easier to filter and manage cloud desktops by tag.
Operation description
If the specified TagKey already exists, the new TagValue overwrites the original TagValue.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. You can call the DescribeRegions operation to query the list of regions supported by Wuying Cloud Desktop. |
cn-hangzhou |
| ResourceType |
string |
Yes |
The resource type. Valid values:
|
ALIYUN::GWS::INSTANCE |
| ResourceId |
array |
Yes |
The list of resource IDs, that is, the list of cloud desktop IDs. You can specify 1 to 50 resource IDs. |
ecd-ia2zw38bi6cm7**** |
|
string |
No |
The resource ID, that is, the cloud desktop ID. |
ecd-ia2zw38bi6cm7**** |
|
| Tag |
array<object> |
Yes |
The list of tags. You can specify 1 to 20 tags. |
|
|
object |
No |
The tag. |
||
| Key |
string |
No |
The tag key. If you specify this parameter, the value cannot be an empty string. The value can be up to 128 characters in length and cannot start with |
department |
| Value |
string |
No |
The tag value. The value can be an empty string. The value can be up to 128 characters in length and cannot start with |
design |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned object. |
||
| RequestId |
string |
The request ID. |
1CBAFFAB-B697-4049-A9B1-67E1FC5F**** |
Examples
Success response
JSON format
{
"RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.