Deleting a Resource Tag
Function
This API is used to delete a tag from a resource.
URI
DELETE /v5/{project_id}/{resource_type}/{resource_id}/tags/{key}
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Project ID |
| resource_type | Yes | String | Resource type defined by TMS. When HSS calls the API, the resource type is HSS. |
| resource_id | Yes | String | Resource ID defined by TMS. When HSS calls the API, the resource ID is the quota ID. |
| key | Yes | String | Key to be deleted |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| X-Auth-Token | Yes | String | IAM token. It can be obtained by calling the IAM API used to obtain an IAM token. The value of X-Subject-Token in the response header is a token. |
Response Parameters
Status code: 200
success
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.