Disabling Ransomware Prevention
Function
This API is used to disable ransomware prevention.
URI
POST /v5/{project_id}/ransomware/protection/close
| 
         Parameter  | 
       
         Mandatory  | 
       
         Type  | 
       
         Description  | 
      
|---|---|---|---|
| 
         project_id  | 
       
         Yes  | 
       
         String  | 
       
         Project ID  | 
      
| 
         Parameter  | 
       
         Mandatory  | 
       
         Type  | 
       
         Description  | 
      
|---|---|---|---|
| 
         enterprise_project_id  | 
       
         No  | 
       
         String  | 
       
         Enterprise project ID. To query all enterprise projects, set this parameter to all_granted_eps.  | 
      
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.  | 
      
| 
         region  | 
       
         Yes  | 
       
         String  | 
       
         Region ID  | 
      
| 
         Parameter  | 
       
         Mandatory  | 
       
         Type  | 
       
         Description  | 
      
|---|---|---|---|
| 
         host_id_list  | 
       
         Yes  | 
       
         Array of strings  | 
       
         IDs of servers where ransomware protection needs to be disabled  | 
      
| 
         agent_id_list  | 
       
         Yes  | 
       
         Array of strings  | 
       
         IDs of agents where ransomware prevention needs to be disabled  | 
      
| 
         close_protection_type  | 
       
         Yes  | 
       
         String  | 
       
         Type of disabled protection. The options are as follows: 
  | 
      
Response Parameters
Status code: 200
Ransomware protection disabled.
None
Example Requests
Disable ransomware protection for the server. The target server ID is 71a15ecc-049f-4cca-bd28-5e90aca1817f, and the agent ID of the target server is c9bed5397db449ebdfba15e85fcfc36accee954daf5cab0528bab59bd8.
POST https://{endpoint}/v5/{project_id}/ransomware/protection/close
{
  "close_protection_type" : "close_anti",
  "host_id_list" : [ "71a15ecc-049f-4cca-bd28-5e90aca1817f" ],
  "agent_id_list" : [ "c9bed5397db449ebdfba15e85fcfc36accee954daf5cab0528bab59bd8" ]
}
  Example Responses
None
Status Codes
| 
         Status Code  | 
       
         Description  | 
      
|---|---|
| 
         200  | 
       
         Ransomware protection disabled.  | 
      
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.