You need to enable JavaScript to run this app.
Torch Log Service

Torch Log Service

Copy page
Download PDF
Tag management API
RemoveTagsFromResource
Copy page
Download PDF
RemoveTagsFromResource
Call RemoveTagsFromResource interface to batch unbind tags for the specified project or topic.​
Usage notes​
This interface is used to unbind tags for the specified projects or topics, and supports batch operations.​
Request syntax​
  • Request Method: POST​
  • Request URL: https://{tls-endpoint}/RemoveTagsFromResource​
Request parameters​
The table below only lists the request parameters specific to this interface and some common parameters. For more information, please see Common parameters.​
Body​
​
Name​
Type​
Required​
Example​
Description​
ResourceType​
String​
True​
project​
The resource types, can be set to:​
  • project: Project​
  • topic: Topic​
ResourcesList​
Array of String​
True​
["0fdaa6b6-3c9f-424c-8664-fc0d222c****", "c7e0e442-19bf-4fb3-b547-5992fb8b****"]​
The resource list, that is, the ID list of projects or topics.​
​
Supports the input of multiple resource IDs at once, up to 50 resource IDs can be input at the same time.​
TagKeyList​
Array of String​
True​
["Key1", "Key2"]​
The list of resource tag keys to be unbound.​
Supports multiple tag keys to be entered at once, separated by English commas (,). Up to 20 tag keys can be entered at the same time.​
​
Responses​
There are no unique return parameters for this interface. For more information, please refer to the Response message.​
Sample Request​
​
POST https://{tls-endpoint}/RemoveTagsFromResource HTTP/1.1​
Content-Type: application/json​
{​
"ResourceType": "project",​
"ResourcesList": ["0fdaa6b6-3c9f-424c-8664-fc0d222c****","c7e0e442-19bf-4fb3-b547-5992fb8b****"],​
"TagKeyList": ["key1","key2"]​
}​
​
Sample Response​
​
HTTP/1.1 200 OK​
Content-Type: application/json; charset=utf-8​
{}​
​
Error code​
The following table lists the error codes related to the interface and business logic. For common error codes, please refer to the Common error codes.​
​
HTTP status code​
Error code​
Error message​
Description​
400​
InvalidArgument​
Invalid argument key %s, value %s, please check argument.​
The parameters are invalid, or the number of tags exceeds the threshold, or some of the resources do not exist.​
500​
InternalServerError​
We encountered an unexpected server error, please try again later.​
Internal server error.​
​
​
​
Last updated: 2025.10.28 18:42:00