Creates an anti-ransomware policy for servers.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
yundun-sas:CreateBackupPolicy | create |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Name | string | Yes | The name of the anti-ransomware policy. | ServerBackUpPolicy01 |
Policy | object | Yes |
Note
The 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.
| "{"IsDefault":1,"Include":[],"Source":[],"Schedule":"I|1648061040|PT24H","Retention":7,"SpeedLimiter":"","ExcludeSystemPath":true,"Exclude":["/bin/","/usr/bin/","/sbin/","/boot/","/proc/","/sys/","/srv/","/lib/","/selinux/","/usr/sbin/","/run/","/lib32/","/lib64/","/lost+found/","/var/lib/kubelet/","/var/lib/ntp/proc","/var/lib/container","Windows","Python27","Program Files (x86)","Program Files","Boot","$RECYCLE.BIN","System Volume Information","Users\Administrator\NTUSER.DAT*","ProgramData","pagefile.sys","Users\Default\NTUSER.DAT*","Users\Administrator\ntuser.*"],"UseVss":true}" |
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. Note
We 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 | Yes | The UUIDs of the servers that you want to protect. Separate multiple UUIDs with commas (,). Note
You 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. |
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 |
---|---|---|
2024-09-25 | The Error code has changed | View Change Details |
2023-03-23 | The Error code has changed | View Change Details |
2022-08-01 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2022-08-01 | The internal configuration of the API is changed, but the call is not affected | View Change Details |