All Products
Search
Document Center

OpenSearch:ListTagResources

Last Updated:Dec 05, 2023

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.

debugging

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

GET /v4/openapi/resource-tags

Request parameters

ParameterTypeRequiredDescriptionExample
resourceTypestringYes

The resource type.

BIGDATA
resourceIdarrayNo

The resource IDs. You can specify a maximum number of 50 resource IDs.

stringNo

The IDs of the resources that you want to query. You must configure at least one of the resourceId and tag parameters.

i-bp185wwblwfvh1a1y1me
tagobject []No

The tags. You can specify a maximum number of 20 tags.

keystringNo

The key of the tag.

bm
valuestringNo

The value of the tag.

Uefi
nextTokenstringNo

The token that is used to retrieve the next page.

60

Response parameters

ParameterTypeDescriptionExample
object
requestIdstring

The ID of the request.

D77D0DAF-790D-F5F5-A9C0-133738165014
nextTokenstring

The token that is used to retrieve the next page.

20
resultobject []

The resources.

tagKeystring

The key of the tag.

GENIE_FUNCTION
tagValuestring

The value of the tag.

ALLOW
resourceIdstring

The ID of the resource.

54041
resourceTypestring

The resource type.

hostGroup

Examples

Sample success responses

JSONformat

{
  "requestId": "D77D0DAF-790D-F5F5-A9C0-133738165014",
  "nextToken": "20",
  "result": [
    {
      "tagKey": "GENIE_FUNCTION",
      "tagValue": "ALLOW",
      "resourceId": "54041",
      "resourceType": "hostGroup"
    }
  ]
}

Error codes

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