Overview
You can call this API to modify the tags of an instance.
API details
Constraints
The caller must have an AccessKey for accessing APIs. For information about how to obtain the AccessKey ID and AccessKey secret, see Manage AccessKeys.
Request path
POST /api/v2/instances/{instanceId}/tagList
Request parameters
Path
| Parameter | Type | Required | Description | Example value |
|---|---|---|---|---|
| instanceId | String | Yes | The ID of the instance. | obxxx |
Body
| Parameter | Type | Required | Description | Example value |
|---|---|---|---|---|
| tagList | array | Yes | The list of tags. | [{"tagKey":"test1","tagValue":"test1"}] |
| tagKey | string | Yes | The key of the tag. | test1 |
| tagValue | string | Yes | The value of the tag. | test1 |
Response parameters
| Parameter | Type | Description | Example value |
|---|---|---|---|
| data | boolen | The result of the operation. | true |
Examples
Request example
curl --digest -u 'ak:sk' \
-X POST \
'https://api-cloud.oceanbase.com/api/v2/instances/{instanceId}/tagList' \
--data '{
"tagList" : [
{
"tagKey":"test1",
"tagValue":"test1"
}
]
}'
Response example
JSON format
{
"data":true,
"requestId": "4c437bbe-d404-4b7a-afcb-88749e4d47a2",
"success":true
}