Deleting a Tag from an Associated Resource
Function
This API is used to delete a tag from an associated resource. The API is idempotent. When you delete a nonexistent tag, error code 404 will be returned. Tag keys cannot be empty or be empty character strings.
URI
DELETE /v3/{project_id}/vault/{vault_id}/tags/{key}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
key |
Yes |
String |
The key cannot be left blank or be an empty string. The key length and character set are not checked. Keys are checked and used after the spaces before and after them are deleted. Even invalid tags existing at the bottom layer can be deleted. |
|
project_id |
Yes |
String |
Project ID |
|
vault_id |
Yes |
String |
Resource ID |
Request Parameters
None
Response Parameters
Status code: 400
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
For details, see Error Codes. |
|
error_msg |
String |
Error message |
Example Requests
None
Example Responses
None
Status Codes
|
Status Code |
Description |
|---|---|
|
204 |
No Content |
|
400 |
Bad Request |
Error Codes
See Error Codes.
Last Article: Adding a Tag to an Associated Resource
Next Article: Querying Tags of an Associated Resource
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.