You can add a maximum of 20 tags to a protected instance.
This API is idempotent.
If a to-be-created tag has the same key as an existing tag, the tag will be created and overwrite the existing one.
POST /v1/{project_id}/protected-instances/{protected_instance_id}/tags
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Specifies the project ID. |
protected_instance_id |
Yes |
String |
Specifies the ID of a protected instance. For details, see Querying Protected Instances. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
tag |
Yes |
Object |
Specifies the tag to be added. For details, see Table 1. |
Returned Value |
Description |
---|---|
204 |
No Content |
Returned Value |
Description |
---|---|
400 |
Invalid parameters. |
401 |
Authentication failed. |
403 |
Insufficient permission. |
404 |
The requested resource was not found. |
500 |
Internal service error. |