Adds tags to instances.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
POST /v2/openapi/tagresources HTTP/1.1
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
body | object | No | The request body. | |
ResourceType | string | Yes | The type of the resource. valid value: instance: instance | instance |
ResourceIds | array | Yes | The resource IDs, which are instance names. | |
string | Yes | The resource ID, which is the instance name. | c-74b774f34061e022 | |
Tags | array<object> | Yes | The tags. | |
object | Yes | The tag. | ||
Key | string | Yes | The tag key. | created |
Value | string | Yes | The tag value. | job-0007z8j1omiabo5i872l |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "44FDC379-4443-560E-B652-9F7476D8854F"
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history