All Products
Search
Document Center

Security Center:DescribeBackupPolicies

Last Updated:Feb 20, 2024

Queries anti-ransomware policies.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

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.
OperationAccess levelResource typeCondition keyAssociated operation
yundun-sas:DescribeBackupPoliciesRead
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
NamestringNo

The name of the anti-ransomware policy that you want to query.

SecurityStrategy-20200303
MachineRemarkstringNo

The information that you want to use to identify the servers protected by the anti-ransomware policy. You can enter the IP address or ID of a server.

1.1.XX.XX
StatusstringNo

The status of the anti-ransomware policy. Valid values:

  • enabled: The anti-ransomware policy is manually enabled.
  • disabled: The anti-ransomware policy is manually disabled. After an anti-ransomware policy is disabled, the data backup task that is running based on the policy stops.
  • closed: The anti-ransomware policy automatically stops because the anti-ransomware capacity is insufficient.
enabled
PageSizeintegerYes

The number of entries to return on each page. Default value: 10.

10
CurrentPageintegerYes

The number of the page to return. Default value: 1.

1

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request, which is used to locate and troubleshoot issues.

BE120DAB-F4E7-4C53-ADC3-A97578ABF384
PageInfoobject

The pagination information.

CurrentPageinteger

The page number of the returned page.

1
PageSizeinteger

The number of entries returned per page. Default value: 10.

10
TotalCountinteger

The total number of anti-ransomware policies returned.

30
Countinteger

The number of entries returned on the current page.

3
Policiesobject []

An array that consists of the anti-ransomware policies returned.

ClientErrorCountinteger

The number of the servers on which the anti-ransomware agent is in an abnormal state.

2
Statusstring

The status of the anti-ransomware policy. Valid values:

  • enabled: The anti-ransomware policy is manually enabled.
  • disabled: The anti-ransomware policy is manually disabled. After an anti-ransomware policy is disabled, the data backup task that is running based on the policy stops.
  • closed: The anti-ransomware policy automatically stops because the anti-ransomware capacity is insufficient.
enabled
PolicyVersionstring

The version of the anti-ransomware policy. Valid values:

  • 1.0.0
  • 2.0.0
2.0.0
Policystring

The configurations of the anti-ransomware policy. The value of this parameter is in the JSON format and contains the following fields:

  • IsDefault: the type of the anti-ransomware policy. Valid values:

    • 1: recommended policy
    • 0: custom policy
  • Include: the format of the files that are protected. If the value of this field is [], all formats of files are protected.

  • Source: the directory that is protected. If the value of this field is [], all directories are protected.

  • ExcludeSystemPath: indicates whether a specified directory is excluded from the anti-ransomware policy. If the value of this field is true, the directory is excluded. If this field is left empty, no directories are excluded.

  • Exclude: the directory that is excluded from the anti-ransomware policy. If no directory is specified, the value of this field is [].

  • Schedule: the start time and interval of a data backup task. A start time that begins during off-peak hours but does not start on the hour is recommended. Examples:

    • If the value of this field is I|1583216092|P21D, the data backup task starts from 2020-03-03 14:14:52, and the task is run at an interval of three weeks.
    • If the value of this field is I|1583216092|PT24H, the data backup task starts from 2020-03-03 14:14:52, and the task is run at an interval of 24 hours.
  • Retention: the period during which backup data is retained. Unit: days. If the value of this field is 7, backup data is retained for a week. If the value of this field is 365, backup data is retained for a year. If the value of this field is -1, backup data is permanently retained.

  • SpeedLimiter: the limit on the network bandwidth for data backup tasks. If the value of this field is 0:24:30720, the maximum bandwidth for a data backup task is 30 MB/s from 00:00 to 24:00.

  • UseVss: indicates whether the VSS feature is enabled. The feature is available only for Windows servers. Valid values:

    • true: yes
    • false: no
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}
UpgradeStatusstring

The upgrade status of the anti-ransomware policy. Valid values:

  • NotUpgraded
  • Upgrading
  • UpgradeFailed
  • UpgradeSuccess
Upgrading
ServiceErrorCountinteger

The number of servers on which data backup is exceptional.

2
PolicyRegionIdstring

The ID of the region that you specified for data backup when you installed the anti-ransomware agent for the server not deployed on Alibaba Cloud.

ch-hangzhou
ClientStatusstring

The status of the anti-ransomware agent. Valid values:

  • running: normal
  • exception: abnormal
running
Namestring

The name of the anti-ransomware policy.

SecurityStrategy-20200303
HealthClientCountinteger

The number of the servers on which the anti-ransomware agent is in a normal state.

2
Idlong

The ID of the anti-ransomware policy.

11
ClientErrorUuidListarray

The UUIDs of the servers on which the anti-ransomware agent is in an abnormal state.

string

The UUIDs of the servers on which the anti-ransomware agent is in an abnormal state.

["3bb30859-b3b5-4f28-868f-b0892c98****","3bb30859-b3b5-4f28-868f-b0892c98****"]
RemarkedUuidListarray

The UUIDs that are returned based on the value of the MachineRemark request parameter.

string

The UUIDs that are returned based on the value of the MachineRemark request parameter.

["3bb30859-b3b5-4f28-868f-b0892c98****","3bb30859-b3b5-4f28-868f-b0892c98****"]
UuidListarray

The UUIDs of the servers to which the anti-ransomware policy is applied.

string

The UUIDs of the servers to which the anti-ransomware policy is applied.

["3bb30859-b3b5-4f28-868f-b0892c98****","3bb30859-b3b5-4f28-868f-b0892c98****"]
ServiceErrorUuidListarray

The UUIDs of the servers on which data backup is exceptional.

string

The UUIDs of the servers on which data backup is exceptional.

["3bb30859-b3b5-4f28-868f-b0892c98****","3bb30859-b3b5-4f28-868f-b0892c98****"]
HealthClientUuidListarray

The UUIDs of the servers on which the anti-ransomware agent is in a normal state.

string

The UUIDs of the servers on which the anti-ransomware agent is in a normal state.

["3bb30859-b3b5-4f28-868f-b0892c98****","3bb30859-b3b5-4f28-868f-b0892c98****"]
ServerTypestring

The type of the server. Valid values:

  • OUT_CLOUD: server not deployed on Alibaba Cloud
  • ALIYUN: Elastic Compute Service (ECS) instance
  • TRIPARTITE: simple application server
OUT_CLOUD

Examples

Sample success responses

JSONformat

{
  "RequestId": "BE120DAB-F4E7-4C53-ADC3-A97578ABF384",
  "PageInfo": {
    "CurrentPage": 1,
    "PageSize": 10,
    "TotalCount": 30,
    "Count": 3
  },
  "Policies": [
    {
      "ClientErrorCount": 2,
      "Status": "enabled",
      "PolicyVersion": "2.0.0",
      "Policy": "{\"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}",
      "UpgradeStatus": "Upgrading",
      "ServiceErrorCount": 2,
      "PolicyRegionId": "ch-hangzhou",
      "ClientStatus": "running",
      "Name": "SecurityStrategy-20200303",
      "HealthClientCount": 2,
      "Id": 11,
      "ClientErrorUuidList": [
        "[\"3bb30859-b3b5-4f28-868f-b0892c98****\",\"3bb30859-b3b5-4f28-868f-b0892c98****\"]"
      ],
      "RemarkedUuidList": [
        "[\"3bb30859-b3b5-4f28-868f-b0892c98****\",\"3bb30859-b3b5-4f28-868f-b0892c98****\"]"
      ],
      "UuidList": [
        "[\"3bb30859-b3b5-4f28-868f-b0892c98****\",\"3bb30859-b3b5-4f28-868f-b0892c98****\"]"
      ],
      "ServiceErrorUuidList": [
        "[\"3bb30859-b3b5-4f28-868f-b0892c98****\",\"3bb30859-b3b5-4f28-868f-b0892c98****\"]"
      ],
      "HealthClientUuidList": [
        "[\"3bb30859-b3b5-4f28-868f-b0892c98****\",\"3bb30859-b3b5-4f28-868f-b0892c98****\"]"
      ],
      "ServerType": "OUT_CLOUD"
    }
  ]
}

Error codes

HTTP status codeError codeError messageDescription
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

For a list of error codes, visit the Service error codes.