Deleting a Resource Tag
Function
This API is used to delete a tag from a resource.
Calling Method
For details, see Calling APIs.
URI
DELETE /v5/{project_id}/{resource_type}/{resource_id}/tags/{key}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
User ID Minimum: 1 Maximum: 256 |
resource_type |
Yes |
String |
Resource type. The value is hss. Minimum: 1 Maximum: 64 |
resource_id |
Yes |
String |
Resource ID Minimum: 0 Maximum: 128 |
key |
Yes |
String |
Key to be deleted Minimum: 1 Maximum: 256 |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
x-auth-token |
Yes |
String |
User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token. Minimum: 32 Maximum: 512 |
Response Parameters
None
Example Requests
Delete the tag whose key is abc, project_id is 94b5266c14ce489fa6549817f032dc61, resource_type is hss, and resource_id is 2acc46ee-34c2-40c2-8060-dc652e6c672a.
DELETE https://{endpoint}/v5/94b5266c14ce489fa6549817f032dc61/hss/2acc46ee-34c2-40c2-8060-dc652e6c672a/tags/abc
Example Responses
None
Status Codes
Status Code |
Description |
---|---|
200 |
success |
400 |
Invalid parameter. |
401 |
Authentication failed. |
403 |
Insufficient permission. |
404 |
Resources not found. |
500 |
System error. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.