Creates an anti-ransomware policy for servers.
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Name | string | Yes | The name of the anti-ransomware policy. | ServerBackUpPolicy01 |
Policy | object | Yes |
NoteThe VSS feature is available only if you create the anti-ransomware policy for Windows servers. After you enable the feature, the number of backup failures due to running processes is significantly reduced. We recommend that you enable the VSS feature. After you enable the feature, the data of disks that are in the exFAT and FAT32 formats cannot be backed up. | |
PolicyVersion | string | Yes | The version of the anti-ransomware policy. Set the value to 2.0.0. | 2.0.0 |
PolicyRegionId | string | No | The region ID of the server that is not deployed on Alibaba Cloud. NoteWe recommend that you specify the ID of the supported region that is the nearest to the location of the server. You can call the DescribeSupportRegion operation to query the supported regions of the anti-ransomware feature. | ch-hangzhou |
UuidList | array | Yes | The UUIDs of the servers that you want to protect. | |
string | No | The UUIDs of the servers that you want to protect. Separate multiple UUIDs with commas (,). NoteYou can call the DescribeCloudCenterInstances operation to query the UUIDs of servers. | 3bb30859-b3b5-4f28-868f-b0892c98**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "24A20733-10A0-4AF6-BE6B-E3322413BB68",
"BackupPolicy": {
"Id": "1301575",
"Status": "enabled"
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | AgentNotOnline | The agent not online. | The error message returned because the Security Center agent is offline. Make sure that the Security Center agent is online and try again. |
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 | ||
---|---|---|---|---|
2022-08-01 | The internal configurations of the API operation change but you can still call the operation. | |||
| ||||
2022-08-01 | The internal configurations of the API operation change but you can still call the operation. | |||
|