All Products
Search
Document Center

OpenSearch:TagResources

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

POST /v4/openapi/resource-tags

Request parameters

ParameterTypeRequiredDescriptionExample
bodyobjectNo

The request parameters.

resourceTypestringYes

The resource type.

ProductVersion
resourceIdarrayYes

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

stringNo

The ID of the resource.

68968
tagobject []Yes

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

keystringNo

The key of the tag.

cloud_manage
valuestringNo

The value of the tag.

31261301

Response parameters

ParameterTypeDescriptionExample
object

The response body.

requestIdstring

The ID of the request.

ABCDEFGH

Examples

Sample success responses

JSONformat

{
  "requestId": "ABCDEFGH"
}

Error codes

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