Enables or disables an anti-ransomware policy.
Debugging
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:
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. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=ModifyBackupPolicyStatus
&Id=30490
&Status=enabled
&PolicyVersion=2.0.0
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<ModifyBackupPolicyStatusResponse>
<RequestId>E342452B-4401-5F74-9A1B-D24479851173</RequestId>
</ModifyBackupPolicyStatusResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "E342452B-4401-5F74-9A1B-D24479851173"
}
Error codes
For a list of error codes, visit the API Error Center.