This API is used to batch delete tags from a specified resource. System tags cannot be deleted. If any tag to be deleted is not found, a successful result is returned.
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
project_id |
Yes |
String |
The project ID. |
resource_id |
Yes |
String |
The resource ID, which is the name of a general purpose file system. |
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
Content-type |
Yes |
String |
The MIME type of the request body. Example: application/json |
X-Auth-Token |
No |
String |
The user token. |
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
tags |
Yes |
List<resource_tag> |
The tag list. For details, see Table 3. |
None
Batch deleting tags from a general purpose file system whose name is bucketName with the project ID c80a2157ba1d46c0825265947342077c:
POST https://{endpoint}/v3/sfs/tms/c80a2157ba1d46c0825265947342077c/file-systems/bucketName/tags/delete
Request body example:
{
"tags":[
{
"key":"key1"
},
{
"key":"key2",
"value":"value2"
}
]
}
None
Status Code |
Description |
|---|---|
204 |
Resource tags are deleted. |
Status Code |
Description |
|---|---|
400 |
Invalid tag parameter. |
401 |
Certification failed. |
403 |
Authentication failed. |
404 |
Resource not found. |
500 |
System error. |