Queries the list of database anti-ransomware policies.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:DescribeUniBackupPolicies |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PolicyName |
string |
No |
The name of the database anti-ransomware backup policy. |
auto_oracle_Hpm |
| PageSize |
integer |
No |
The maximum number of entries to display per page for a paginated query. The default number of entries per page is 20. If the PageSize parameter is left empty, 20 entries are returned by default. Note
We recommend that you do not leave PageSize empty. |
20 |
| CurrentPage |
integer |
No |
The page number from which to start displaying query results. Default value: 1, which indicates that query results are displayed starting from page 1. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID, which is a unique identifier generated by Alibaba Cloud for the request. You can use the ID to troubleshoot issues. |
ACF97412-FD09-4D1F-994F-34DF12BR**** |
| PageInfo |
object |
The pagination information. |
|
| CurrentPage |
integer |
The page number of the current page in a paginated query. |
1 |
| PageSize |
integer |
The number of database anti-ransomware policies displayed per page in a paginated query. |
20 |
| TotalCount |
integer |
The total number of database anti-ransomware policies. |
100 |
| Count |
integer |
The number of database anti-ransomware policies displayed on the current page. |
20 |
| UniBackupPolicies |
array<object> |
The collection of database anti-ransomware backup policies. |
|
|
object |
The information about a database anti-ransomware backup policy. |
||
| PolicyStatus |
string |
The status of the database anti-ransomware backup policy. Valid values:
|
opening |
| ErrorMessage |
string |
The error message of the backup policy. |
AttachRamRoleError |
| LatestBackResult |
string |
The result of the latest backup plan execution. |
completed |
| UniRegionId |
string |
The region ID of the database server. |
cn-hangzhou |
| PlanStatus |
string |
The status of the backup plan. Valid values:
|
creating |
| InstanceUuid |
string |
The unique identifier of the server database backup client. |
cf1bcad4063f11ed800000163e0e**** |
| PolicyName |
string |
The name of the database anti-ransomware backup policy. |
auto_oracle_37f |
| AgentErrorMessage |
string |
The error message of the client exception. |
INSTALL_TIMEOUT |
| InstanceId |
string |
The instance ID of the server. |
i-9dp7mubt5wit6g0h**** |
| AgentStatus |
string |
The status of the database client agent. Valid values:
|
INSTALLED |
| DatabaseType |
string |
The type of the database. Valid values:
|
MYSQL |
| ErrorCode |
string |
The error code returned when the backup plan execution fails. |
EXPIRED |
| DatabaseName |
string |
The name of the database. |
abc123 |
| InstanceName |
string |
The name of the server instance. |
sql-test-001 |
| LatestBackupTime |
string |
The time when the latest backup plan was executed. |
2022-01-01 00:00:11 |
| InstanceStatus |
string |
The status of the ECS instance. Valid values:
|
Running |
| PolicyId |
integer |
The ID of the database anti-ransomware backup policy. |
123 |
Examples
Success response
JSON format
{
"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 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.