Retrieves the details of an anti-ransomware 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 policy. Note
You can call the DescribeBackupPolicies operation to query the IDs of anti-ransomware policies. |
51880 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The data returned. |
||
| RequestId |
string |
The ID of the request, which is used to locate and troubleshoot issues. |
A4EB8B1C-1DEC-5E18-BCD0-D1BBB3936FA7 |
| BackupPolicyDetail |
object |
The details of the anti-ransomware policy. |
|
| Status |
string |
The status of the anti-ransomware policy. Valid values:
|
closed |
| PolicyVersion |
string |
The version of the anti-ransomware policy.
|
2.0.0 |
| Policy |
string |
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. |
{ "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 agent. Valid values:
|
running |
| Name |
string |
The name of the anti-ransomware policy. |
testBuckUp |
| Id |
integer |
The ID of the anti-ransomware policy. |
51880 |
| RegionId |
string |
The ID of the region in which backup data is stored. |
cn-beijing |
| UuidList |
array |
An array consisting of the UUIDs of the servers to which the anti-ransomware policy is applied. |
|
|
string |
The UUID of the server to which the anti-ransomware policy is applied. |
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 | You are not authorized to do this operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.