All Products
Search
Document Center

Enterprise Distributed Application Service:ListTagResources

Last Updated:Sep 08, 2025

Queries the tags that are added to resources.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
edas:ListTagResourceslist
*All Resources
*
    none
none

Request syntax

GET /pop/v5/tag/tags HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
ResourceTypestringYes

The type of the resource. Valid values:

  • application: Enterprise Distributed Application Service (EDAS) application
  • cluster: EDAS cluster
application
ResourceIdsstringNo

The IDs of the resources. You can specify up to 20 IDs. Set this parameter to a JSON array.

["000e5836-xxxx-xxxx-xxxx-0d6ab2ac4877"]
TagsstringNo

The key-value pairs that specify the tags.

  • You can add up to 20 tags to a resource.
  • The key cannot start with aliyun or acs: and cannot contain http:// or https://.
  • The tag key or tag value can be up to 128 characters in length, and can contain letters, digits, hyphens (-), commas (,), asterisks (*), forward slashes (/), question marks (?), and colons (:).
  • Set this parameter to a JSON array.
[{"key":"key1","value":"v1"},{"key":"key2","value":"v2"}]
ResourceRegionIdstringYes

The region in which the resource resides.

cn-hangzhou

Response parameters

ParameterTypeDescriptionExample
object
Codeinteger

The HTTP status code that is returned.

200
Messagestring

The message that is returned.

success
RequestIdstring

The ID of the request.

xxxxE654-xxxx-xxxx-xxxx-98F45996xxxx
TagResourcesarray<object>

The information about resource tags.

TagResourceobject
TagValuestring

The tag value of the resource.

value1
ResourceTypestring

The type of the resource.

ALIYUN::EDAS::APPLICATION
ResourceIdstring

The ID of the resource.

000e5836-xxxx-xxxx-xxxx-0d6ab2ac4877
TagKeystring

The tag key of the resource.

key1

Examples

Sample success responses

JSONformat

{
  "Code": 200,
  "Message": "success",
  "RequestId": "xxxxE654-xxxx-xxxx-xxxx-98F45996xxxx",
  "TagResources": {
    "TagResource": [
      {
        "TagValue": "value1",
        "ResourceType": "ALIYUN::EDAS::APPLICATION",
        "ResourceId": "000e5836-xxxx-xxxx-xxxx-0d6ab2ac4877",
        "TagKey": "key1"
      }
    ]
  }
}

Error codes

HTTP status codeError codeError messageDescription
500Edas.errorcode.InstanceNotExist.Instance.messageThe instance does not exist.The instance does not exist.

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

Change history

Change timeSummary of changesOperation
No change history