TagResources

更新时间:
复制 MD 格式

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

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 :

    Cloud desktop

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 aliyun or acs:. It cannot contain http:// or https://.

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 acs:. It cannot contain http:// or https://.

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.