All Products
Search
Document Center

Security Center:DescribeUniBackupPolicies

Last Updated:Nov 13, 2024

Queries the anti-ransomware policies that are created for databases.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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:DescribeUniBackupPoliciesget
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
PolicyNamestringNo

The name of the anti-ransomware policy.

auto_oracle_Hpm
PageSizeintegerNo

The number of entries to return on each page. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.

Note We recommend that you do not leave this parameter empty.
20
CurrentPageintegerNo

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

1

Response parameters

ParameterTypeDescriptionExample
object

The data returned.

RequestIdstring

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

ACF97412-FD09-4D1F-994F-34DF12BR****
PageInfoobject

The pagination information.

CurrentPageinteger

The page number of the returned page.

1
PageSizeinteger

The number of entries returned per page.

20
TotalCountinteger

The total number of entries returned.

100
Countinteger

The number of entries returned on the current page.

20
UniBackupPoliciesarray<object>

An array that consists of the anti-ransomware policies.

UniBackupPolicyDTOobject

The information about the anti-ransomware policy.

PolicyStatusstring

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

  • initiating
  • opening
  • closing
  • deleting
  • enabled
  • disabled
opening
ErrorMessagestring

The error message for the anti-ransomware policy.

AttachRamRoleError
LatestBackResultstring

The execution result of the last backup task.

completed
UniRegionIdstring

The region ID of the server that hosts the database.

cn-hangzhou
PlanStatusstring

The status of the backup task. Valid values:

  • init
  • running
  • completed
  • restoring
  • creating
  • created
creating
InstanceUuidstring

The UUID of the agent that is used to back up the data of the database.

cf1bcad4063f11ed800000163e0e****
PolicyNamestring

The name of the anti-ransomware policy.

auto_oracle_37f
AgentErrorMessagestring

The error message for the anti-ransomware agent.

INSTALL_TIMEOUT
InstanceIdstring

The ID of the server.

i-9dp7mubt5wit6g0h****
AgentStatusstring

The status of the agent. Valid values:

  • UNKNOWN
  • INSTALLED
  • INSTALL_FAILED
  • UNINSTALL_FAILED
INSTALLED
DatabaseTypestring

The type of the database. Valid values:

  • MYSQL
  • MSSQL
  • Oracle
MYSQL
ErrorCodestring

The error code returned when the backup task fails.

EXPIRED
DatabaseNamestring

The name of the database.

abc123
InstanceNamestring

The name of the server.

sql-test-001
LatestBackupTimestring

The time when the last backup task was executed.

2022-01-01 00:00:11
InstanceStatusstring

The status of the Elastic Compute Service (ECS) instance. Valid values:

  • Stopped
  • Running
Running
PolicyIdlong

The ID of the anti-ransomware policy.

123

Examples

Sample success responses

JSONformat

{
  "RequestId": "ACF97412-FD09-4D1F-994F-34DF12BR****",
  "PageInfo": {
    "CurrentPage": 1,
    "PageSize": 20,
    "TotalCount": 100,
    "Count": 20
  },
  "UniBackupPolicies": [
    {
      "PolicyStatus": "opening",
      "ErrorMessage": "AttachRamRoleError",
      "LatestBackResult": "completed",
      "UniRegionId": "cn-hangzhou",
      "PlanStatus": "creating",
      "InstanceUuid": "cf1bcad4063f11ed800000163e0e****",
      "PolicyName": "auto_oracle_37f",
      "AgentErrorMessage": "INSTALL_TIMEOUT",
      "InstanceId": "i-9dp7mubt5wit6g0h****",
      "AgentStatus": "INSTALLED",
      "DatabaseType": "MYSQL",
      "ErrorCode": "EXPIRED",
      "DatabaseName": "abc123",
      "InstanceName": "sql-test-001",
      "LatestBackupTime": "2022-01-01 00:00:11",
      "InstanceStatus": "Running",
      "PolicyId": 123
    }
  ]
}

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.

Change history

Change timeSummary of changesOperation
No change history