Creates an anti-ransomware policy.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | CreateBackupPolicy |
The operation that you want to perform. Set the value to CreateBackupPolicy. |
Name | String | Yes | Server anti-ransomware policy 01 |
The name of the anti-ransomware policy. |
Policy | Map | Yes | "{"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}" |
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.
|
PolicyVersion | String | Yes | 2.0.0 |
The version of the anti-ransomware policy. Set the value to 2.0.0. |
PolicyRegionId | String | No | ch-hangzhou |
The region ID of the server that is not deployed on Alibaba Cloud. Note Specify the ID of the supported region that is the nearest to the region of the server.
You can call the DescribeSupportRegion operation to query the supported regions of the anti-ransomware feature.
|
UuidList.N | String | Yes | ["3bb30859-b3b5-4f28-868f-b0892c98****", "3bb30859-b3b5-4f28-868f-b0892c98****"] |
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.
|
All Alibaba Cloud API operations must include common request parameters. For more information about common request parameters, see Common parameters.
For more information about sample requests, see the "Examples" section of this topic.
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 24A20733-10A0-4AF6-BE6B-E3322413BB68 |
The ID of the request, which is used to locate and troubleshoot issues. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=CreateBackupPolicy
&Name=Server anti-ransomware policy 01
&PolicyVersion=2.0.0
&PolicyRegionId=ch-hangzhou
&UuidList=["[\"3bb30859-b3b5-4f28-868f-b0892c98****\", \"3bb30859-b3b5-4f28-868f-b0892c98****\"]"]
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<CreateBackupPolicyResponse>
<RequestId>24A20733-10A0-4AF6-BE6B-E3322413BB68</RequestId>
</CreateBackupPolicyResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "24A20733-10A0-4AF6-BE6B-E3322413BB68"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
500 | ServerError | ServerError | The error message returned because a server error occurred. |
For a list of error codes, visit the API Error Center.