Queries all the visible user 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 for different SDKs.

Request headers

This operation uses only common request headers. For more information, see Common request headers.

Request syntax

GET /openapi/tags/all-tags HTTP/1.1

Request parameters

Parameter Type Position Required Example Description
pageSize Integer Query No 20

The number of pages to return. Default value: 20. Minimum value: 1. Maximum value: 50.

resourceType String Query No INSTANCE

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

Response parameters

Parameter Type Example Description
RequestId String 5FFD9ED4-C2EC-4E89-B22B-1ACB6FE1D***

The ID of the request.

Result Array of Result

The return results.

TagValue String dev

The tag value of the ENI.

TagKey String env

The key of the tag.

Examples

Sample requests

GET /openapi/tags/all-tags?pageSize=20&resourceType=INSTANCE HTTP/1.1
Host:elasticsearch.aliyuncs.com
Content-Type:application/json

Sample success responses

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "Result" : [ {
    "TagKey" : "aa",
    "TagValue" : "ddd"
  }, {
    "TagKey" : "manager",
    "TagValue" : "all_persion"
  }, {
    "TagKey" : "dev",
    "TagValue" : "leizhang"
  }, {
    "TagKey" : "a",
    "TagValue" : "b"
  }, {
    "TagKey" : "zl",
    "TagValue" : "keept"
  }, {
    "TagKey" : "zl",
    "TagValue" : ""
  }, {
    "TagKey" : "c",
    "TagValue" : "d"
  }, {
    "TagKey" : "tt",
    "TagValue" : "tt"
  }, {
    "TagKey" : "acs:rm:rgId",
    "TagValue" : "rg-acfm2h5vbzd****"
  }, {
    "TagKey" : "acs:rm:rgId",
    "TagValue" : "rg-aek22gedcbf****"
  }, {
    "TagKey" : "estag",
    "TagValue" : "instance"
  } ],
  "RequestId" : "5ADCBB89-6596-4AF3-94A5-64E5393A****"
}

Error codes

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