Queries the anti-ransomware policies that are created for databases.
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
PolicyName | string | No | The name of the anti-ransomware policy. | auto_oracle_Hpm |
PageSize | integer | No | 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. NoteWe recommend that you do not leave this parameter empty. | 20 |
CurrentPage | integer | No | The number of the page to return. Default value: 1. | 1 |
Response parameters
Example
Normal return example
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 code | Error code | Error message | Description |
---|---|---|---|
403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
500 | ServerError | ServerError | - |
For a list of error codes, visit the API error center.