Deleting Resource Tags in Batches
Function
This API is used to delete tags from a specified instance in batches.
Calling Method
For details, see Calling APIs.
URI
POST /v5/{project_id}/{resource_type}/{resource_id}/tags/delete
| 
        Parameter  | 
      
        Type  | 
      
        Mandatory  | 
      
        Description  | 
     
|---|---|---|---|
| 
        project_id  | 
      
        String  | 
      
        Yes  | 
      
        Specifies a project ID. You can obtain the project ID by referring to Obtaining the Project ID.  | 
     
| 
        resource_type  | 
      
        String  | 
      
        Yes  | 
      
       
  | 
     
| 
        resource_id  | 
      
        String  | 
      
        Yes  | 
      
        Indicates a resource ID.  | 
     
Request
- Request parameters 
    
Table 2 Request parameters Parameter
Type
Mandatory
Description
tags
Array of ResourceTag objects
Yes
- Specifies a tag list.
 - A maximum of 20 tags can be specified.
 
Table 3 ResourceTag Parameter
Type
Mandatory
Description
key
String
Yes
- Specifies a tag key.
 - The value is a string of 1 to 128 characters that can contain digits, letters, Spanish characters, Portuguese characters, spaces, and special characters (_ . : = + - @).
 
value
String
No
- Specifies a tag value.
 - The value is a string of 0 to 255 characters that can contain digits, letters, Spanish characters, Portuguese characters, spaces, and special characters (_ . : = + - @).
 
 - Example request
    
DELETE https://{Endpoint}/v5/{project_id}/{resource_type}/{resource_id}/tags/delete { "tags": [{ "key": "key1", "value": "value1" }] } 
Status Codes
For details, see Status Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.