All Products
Search
Document Center

Alibaba Cloud Service Mesh:ListTagResources

Last Updated:Mar 05, 2024

Queries user tags on a Service Mesh (ASM) instance.

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 ASM instance.

cn-hangzhou
ResourceTypestringYes

The resource type. Set the value to servicemesh.

servicemesh
ResourceIdarrayNo

The IDs of the ASM instances.

stringNo

The ID of the Nth resource. This parameter specifies the ID of the ASM instance. You can query the IDs of multiple resources. Specify the parameter name in the format of ResourceId.x, such as ResourceId.2 and ResourceId.3. N is a positive integer.

c418807cb4e5840eab018da7d8f5daa11
Tagobject []No

The tags. A maximum of 20 tags are supported.

KeystringNo

The tag key.

A tag key can be up to 128 characters in length. The tag key cannot contain http:// or https:// and cannot start with aliyun or acs:.

test
ValuestringNo

The tag value of the resource.

The tag value can be left empty or a string of up to 128 characters. The tag value cannot start with aliyun or acs:, and cannot contain http:// or https://.

Each tag key must have a unique tag value. You can specify at most 20 tag values in each call.

yahaha
NextTokenstringNo

A pagination token. It can be used in the next request to retrieve a new page of results. If NextToken is empty, no next page exists.

""

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

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

A pagination token. It can be used in the next request to retrieve a new page of results. If NextToken is empty, no next page exists.

""
TagResourcesobject []

The details of the queried clusters and tags.

ResourceIdstring

The ID of the ASM instance.

863c333b-9a8e-4b53-a13f-52a979362431
ResourceTypestring

The resource type. Set the value to servicemesh.

servicemesh
TagKeystring

The tag key.

k1
TagValuestring

The tag value.

yahaha

Examples

Sample success responses

JSONformat

{
  "RequestId": "BD65C0AD-D3C6-48D3-8D93-38D2015C****",
  "NextToken": "\"\"",
  "TagResources": [
    {
      "ResourceId": "863c333b-9a8e-4b53-a13f-52a979362431",
      "ResourceType": "servicemesh",
      "TagKey": "k1",
      "TagValue": "yahaha"
    }
  ]
}

Error codes

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