Queries the tags of the resources of Data Lake Analytics (DLA) CU Edition.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeTags

The operation that you want to perform. Set the value to DescribeTags.

RegionId String Yes cn-hangzhou

The region ID of the resource. You can call the DescribeRegions operation to query the most recent region list.

ResourceType String Yes instance

The type of the resource. Set the value to instance.

Response parameters

Parameter Type Example Description
RequestId String 84F76E32-2536-4A70-8B65-937EDC68CCA3

The ID of the request.

Tags Array of Tag

The collection of details about resources and tags, such as resource IDs, resource types, and tag key-value pairs.

TagKey String k1

The tag key.

TagValue String v1

The tag value.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DescribeTags
&RegionId=cn-hangzhou
&ResourceType=instance
&<Common request parameters>

Sample success responses

XML format

<RequestId>E9D99ABD-01D2-42CE-AD74-E2BDC12E8E77</RequestId>
<Tags>
    <TagKey>k2</TagKey>
    <TagValue>v2</TagValue>
</Tags>
<Tags>
    <TagKey>k1</TagKey>
    <TagValue>v1</TagValue>
</Tags>

JSON format

{
  "RequestId": "E9D99ABD-01D2-42CE-AD74-E2BDC12E8E77",
  "Tags": [
    {
      "TagKey": "k2",
      "TagValue": "v2"
    },
    {
      "TagKey": "k1",
      "TagValue": "v1"
    }
  ]
}

Error codes

HTTP status code Error code Error message Description
600 Openanalytics.Internal.Exception An internal error occurred. The error message returned because an internal error has occurred.

For a list of error codes, visit the API Error Center.