This API is used to add a tag to a DB instance.
PATH: /v1/{project_id}/rds/{instanceId}/tags
Method: POST
Name |
Mandatory |
Description |
---|---|---|
project_id |
Yes |
Specifies the project ID of a tenant in a region. |
instanceId |
Yes |
Specifies the primary node ID of the DB instance. |
Name |
Mandatory |
Type |
Description |
---|---|---|---|
tag |
Yes |
Dictionary data structure. For details, see Table 3. |
Specifies the tag information. |
Name |
Mandatory |
Type |
Description |
---|---|---|---|
key |
Yes |
String |
Specifies the tag key. Its value cannot be empty and must be 1 to 36 Unicode characters in length. It cannot contain nonprintable ASCII characters (0–31) and the following special characters: *<>\= |
value |
Yes |
String |
Specifies the tag value. Its value can be empty or 1 to 43 Unicode characters in length. It cannot contain nonprintable ASCII characters (0–31) and the following special characters: *<>\= |
{ "tag": { "key": "ENV", "value":"DEV" } }
{}
For details, see Abnormal Request Results.