Enables or disables an anti-ransomware policy.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ModifyBackupPolicyStatus

The operation that you want to perform. Set the value to ModifyBackupPolicyStatus.

Id Long Yes 30490

The ID of the anti-ransomware policy that you want to enable or disable.

Status String Yes enabled

Specifies whether to enable or disable the anti-ransomware policy. Valid values:

  • enabled: enables the anti-ransomware policy. After you enable the anti-ransomware policy, the anti-ransomware feature protects data on your servers. Data on your servers is backed up based on the policy.
  • disabled: disables the anti-ransomware policy. After you disable the anti-ransomware policy, the data backup task that is running based on the policy stops.
Note When the system runs data backup tasks, your network bandwidth is consumed. We recommend that you enable the anti-ransomware policy during peak-off hours to back up data.
PolicyVersion String Yes 2.0.0

The version of the anti-ransomware policy. Set the value to 2.0.0.

Response parameters

Parameter Type Example Description
RequestId String E342452B-4401-5F74-9A1B-D24479851173

The ID of the request, which is used to locate and troubleshoot issues.


Sample requests

&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK


JSON format

HTTP/1.1 200 OK

  "RequestId" : "E342452B-4401-5F74-9A1B-D24479851173"

Error codes

For a list of error codes, visit the API Error Center.