All Products
Search
Document Center

Enterprise Distributed Application Service:ListTagResources

Last Updated:Mar 01, 2024

Queries the tags that are added to resources.

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 syntax

GET /pop/v5/tag/tags

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
TagResourcesobject []

The information about resource tags.

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