Enables or disables an anti-ransomware policy.
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Id | long | Yes | The ID of the anti-ransomware policy. | 30490 |
Status | string | Yes | Specifies whether to enable or disable the anti-ransomware policy. Valid values:
NoteWhen 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. | enabled |
PolicyVersion | string | Yes | The version of the anti-ransomware policy. Set the value to 2.0.0. | 2.0.0 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "E342452B-4401-5F74-9A1B-D24479851173"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | AntiRansomwareCapacityUseUp | anti ransomware capacity use up | - |
403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
500 | ServerError | ServerError | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||
---|---|---|---|---|---|---|
2023-03-23 | The error codes of the API operation change. | |||||
|