Queries added tags.

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.

ResourceType String Yes ZONE

The resource type. Valid value: ZONE.

Lang String No en

The language of the values of specific response parameters. Valid values: en, zh, and ja.

PageNumber Integer No 1

The number of the page to return. Default value: 1.

PageSize Integer No 20

The number of entries to return on each page. Valid values: [1,200]. Default value: 20.

Response parameters

Parameter Type Example Description
PageNumber Integer 1

The page number of the returned page. Default value: 1.

PageSize Integer 20

The number of entries returned per page. Valid values: [1,200]. Default value: 20.

RequestId String 9EA7F720-B7C0-45C1-9CF4-B6A5A1179B68

The ID of the request.

Tags Array of Tag

The tags returned.

Key String env

The key of the tag.

Values List ["daily"]
TotalCount Integer 200

The total number of entries returned.

Examples

Sample request

http(s)://pvtz.aliyuncs.com/?Action=DescribeTags
&ResourceType=ZONE
&<Common request parameters>

Sample success responses

XML format

<TotalCount>200</TotalCount>
<PageSize>20</PageSize>
<RequestId>9EA7F720-B7C0-45C1-9CF4-B6A5A1179B68</RequestId>
<PageNumber>1</PageNumber>
<Tags>
    <Key>env</Key>
    <Values>
        <Value>daily</Value>
    </Values>
</Tags>

JSON format

{
	"TotalCount": "200",
	"PageSize": "20",
	"RequestId": "9EA7F720-B7C0-45C1-9CF4-B6A5A1179B68",
	"PageNumber": "1",
	"Tags":[{
      "Key":"env",
      "Value":["daily"]
    }]
}

Error codes

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