Deleting a Resource Tag
Function
When a tag is deleted, the tag character set is not verified. Before calling this API, perform the encodeURI operation. The server must perform decodeURI on the API URI. The tag key cannot be left blank or be an empty string. If the key of the tag to be deleted is not found, 404 will be returned.
Debugging
For details, see Calling APIs.
URI
DELETE /v3/{project_id}/{resource_type}/{resource_id}/tags/{key}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
key |
Yes |
String |
Specifies the tag key. |
project_id |
Yes |
String |
Specifies the project ID. |
resource_id |
Yes |
String |
Specifies the resource ID. |
resource_type |
Yes |
String |
Enumeration values:
|
Request Parameters
None
Response Parameters
None
Example Requests
Deleting a resource tag
DELETE https://{dc-endpoint}/v3/cfa563efb77d4b6d9960781d82530fd8/instance/3320166e-b937-40cc-a35c-02cd3f2b3ee2/tags/key1
Example Responses
None
Status Code
Status Code |
Description |
---|---|
204 |
No Content |
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.