All Products
Search
Document Center

Security Center:ModifyBackupPolicyStatus

Last Updated:May 22, 2023

Enables or disables an anti-ransomware policy.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
IdlongYes

The ID of the anti-ransomware policy.

30490
StatusstringYes

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.
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
PolicyVersionstringYes

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

2.0.0

Response parameters

ParameterTypeDescriptionExample
object

The data returned.

RequestIdstring

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

E342452B-4401-5F74-9A1B-D24479851173

Examples

Sample success responses

JSONformat

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

Error codes

HTTP status codeError codeError messageDescription
400AntiRansomwareCapacityUseUpanti ransomware capacity use up-
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-03-23The error codes of the API operation change.
Change itemChange content
Error CodesThe error codes of the API operation change.
    Added Error Codes: 400