All Products
Search
Document Center

Alibaba Cloud Service Mesh:TagResources

Last Updated:Mar 05, 2024

Adds or modifies user tags on a resource.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID of the Service Mesh (ASM) instance.

cn-hangzhou
ResourceTypestringYes

The resource type. Set the value to servicemesh.

servicemesh
ResourceIdarrayYes

The IDs of the ASM instances.

stringYes

The ID of the tagged ASM instance.

c418807cb4e5840eab018da7d8f5daa11
Tagobject []Yes

The tags.

KeystringYes

The tag keys.

The following limits apply:

  • The key of tag N cannot be an empty string.
  • Valid values of N: 1 to 20.
  • The tag key can be up to 128 characters in length.
  • The tag key cannot start with aliyun or acs:.
  • The tag key cannot contain http:// or https://.
test
ValuestringYes

The tag values.

The following limits apply:

  • The value of tag N cannot be an empty string.
  • Valid values of N: 1 to 20.
  • The tag value can be up to 128 characters in length.
  • The tag value cannot contain http:// or https://.
yahaha

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

BD65C0AD-D3C6-48D3-8D93-38D2015C****

Examples

Sample success responses

JSONformat

{
  "RequestId": "BD65C0AD-D3C6-48D3-8D93-38D2015C****"
}

Error codes

For a list of error codes, visit the Service error codes.