Queries user tags on a Service Mesh (ASM) instance.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID of the ASM instance. | cn-hangzhou |
ResourceType | string | Yes | The resource type. Set the value to | servicemesh |
ResourceId | array | No | The IDs of the ASM instances. | |
string | No | 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 | |
Tag | object [] | No | The tags. A maximum of 20 tags are supported. | |
Key | string | No | The tag key. A tag key can be up to 128 characters in length. The tag key cannot contain | test |
Value | string | No | 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 |
NextToken | string | No | 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
Examples
Sample success responses
JSON
format
{
"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.