Queries the details of an anti-ransomware protection policy for servers.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:DescribeBackupPolicy |
get |
*BackupPolicy
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
integer |
Yes |
The ID of the anti-ransomware backup policy. Note
You can call the DescribeBackupPolicies operation to obtain this parameter. |
51880 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The policy details. |
||
| RequestId |
string |
The request ID. It is a unique identifier generated by Alibaba Cloud for the request and can be used for troubleshooting. |
A4EB8B1C-1DEC-5E18-BCD0-D1BBB3936FA7 |
| BackupPolicyDetail |
object |
The details of the policy. |
|
| Status |
string |
The status of the anti-ransomware protection policy. Valid values:
|
closed |
| PolicyVersion |
string |
The version of the protection policy. Valid values:
|
2.0.0 |
| Policy |
string |
The content of the anti-ransomware protection policy. This parameter is in JSON format. The following fields are included:
Note
The VSS feature is available only for Windows systems. After this feature is enabled, it effectively reduces the issue of individual file backup failures caused by process occupation. Enable this feature. After this feature is enabled, file backup for exFAT and FAT32 disk formats is not supported. |
{ "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.*" ], "ExcludeSystemPath": true, "Include": [], "IsDefault": 1, "Retention": 7, "Schedule": "I|1630689360|PT24H", "Source": [], "SpeedLimiter": "", "UseVss": true } |
| ClientStatus |
string |
The status of the anti-ransomware client. Valid values:
|
running |
| Name |
string |
The policy name. |
testBuckUp |
| Id |
integer |
The ID of the anti-ransomware backup policy. |
51880 |
| RegionId |
string |
The region ID of the backup service. |
cn-beijing |
| UuidList |
array |
The UUIDs of the servers for which the backup policy is enabled. |
|
|
string |
The UUID of the server for which the backup policy is enabled. |
inet-49611a6b-a98a-455d-a18a-92af9265**** |
Examples
Success response
JSON format
{
"RequestId": "A4EB8B1C-1DEC-5E18-BCD0-D1BBB3936FA7",
"BackupPolicyDetail": {
"Status": "closed",
"PolicyVersion": "2.0.0",
"Policy": "{\n \"Exclude\": [\n \"/bin/\",\n \"/usr/bin/\",\n \"/sbin/\",\n \"/boot/\",\n \"/proc/\",\n \"/sys/\",\n \"/srv/\",\n \"/lib/\",\n \"/selinux/\",\n \"/usr/sbin/\",\n \"/run/\",\n \"/lib32/\",\n \"/lib64/\",\n \"/lost+found/\",\n \"/var/lib/kubelet/\",\n \"/var/lib/ntp/proc\",\n \"/var/lib/container\",\n \"Windows\\\\\",\n \"Python27\\\\\",\n \"Program Files (x86)\\\\\",\n \"Program Files\\\\\",\n \"Boot\\\\\",\n \"$RECYCLE.BIN\",\n \"System Volume Information\\\\\",\n \"Users\\\\Administrator\\\\NTUSER.DAT*\",\n \"ProgramData\\\\\",\n \"pagefile.sys\",\n \"Users\\\\Default\\\\NTUSER.DAT*\",\n \"Users\\\\Administrator\\\\ntuser.*\"\n ],\n \"ExcludeSystemPath\": true,\n \"Include\": [],\n \"IsDefault\": 1,\n \"Retention\": 7,\n \"Schedule\": \"I|1630689360|PT24H\",\n \"Source\": [],\n \"SpeedLimiter\": \"\",\n \"UseVss\": true\n}",
"ClientStatus": "running",
"Name": "testBuckUp",
"Id": 51880,
"RegionId": "cn-beijing",
"UuidList": [
"inet-49611a6b-a98a-455d-a18a-92af9265****"
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.