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 | User token. It can be obtained by calling the IAM API used to obtain a user 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
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 | Request succeeded. |
Error Codes
See Error Codes.
- URI