All Products
Search
Document Center

Resource Management:ListTagResources

Last Updated:Jun 25, 2024

Queries the tags that are added to the members in a resource directory.

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
NextTokenstringNo

The token that is used to start the next query.

caeba0bbb2be03f84eb48b699f0a****
MaxResultsintegerNo

The number of entries to return on each page.

Valid values: 1 to 100. Default value: 10.

10
Tagobject []No

The tags. This parameter specifies a filter condition for the query.

You can specify a maximum of 20 tags.

KeystringNo

The key of the tag.

k1
ValuestringNo

The value of the tag.

v1
ResourceIdarrayNo

The Alibaba Cloud account IDs of the members. This parameter specifies a filter condition for the query.

Note If you want to query the tags that are added to the members in a resource directory, you must configure both the ResourceId and ResourceType parameters and set the ResourceType parameter to Account in your request.
stringNo

The Alibaba Cloud account ID of a member. This parameter specifies a filter condition for the query.

Note If you want to query the tags that are added to the members in a resource directory, you must configure both the ResourceId and ResourceType parameters and set the ResourceType parameter to Account in your request.
1098***
ResourceTypestringYes

The type of the objects whose tags you want to query. This parameter specifies a filter condition for the query. Valid values:

  • Account: member
Account

Response parameters

ParameterTypeDescriptionExample
object

The returned result.

NextTokenstring

Indicates whether the next query is required.```` Valid values:

  • If the value of this parameter is empty ("NextToken": ""), all results are returned, and the next query is not required.
  • If the value of this parameter is not empty, the next query is required, and the value is the token used to start the next query.````
caeba0bbb2be03f84eb48b699f0a****
RequestIdstring

The ID of the request.

8054B059-6B36-53BF-AA45-B8C9A0ED05AB
TagResourcesobject []

The tags.

TagValuestring

The value of the tag.

k1
ResourceIdstring

The Alibaba Cloud account ID of the member.

1098***
TagKeystring

The key of the tag.

k1
ResourceTypestring

The type of the object whose tags are queried. Valid values:

  • Account: member
Account

Examples

Sample success responses

JSONformat

{
  "NextToken": "caeba0bbb2be03f84eb48b699f0a****",
  "RequestId": "8054B059-6B36-53BF-AA45-B8C9A0ED05AB",
  "TagResources": [
    {
      "TagValue": "k1",
      "ResourceId": "1098***",
      "TagKey": "k1",
      "ResourceType": "Account"
    }
  ]
}

Error codes

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

Change history

Change timeSummary of changesOperation
No change history