Queries the information about databases for which anti-ransomware policies are created.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
InstanceName | string | No | The name of the Elastic Compute Service (ECS) instance. | test |
DatabaseType | string | No | The type of the database. Valid values:
| MYSQL |
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. Note
We recommend that you do not leave this parameter empty.
| 20 |
CurrentPage | integer | No | The number of the page to return. Default value: 1. | 1 |
QueryType | string | No | The condition that is used to query the database. Valid values:
| create |
UniRegionId | string | No | The region ID of the server that hosts the database. | cn-hongkong |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "09969D2C-4FAD-429E-BFBF-9A60DEF8****",
"PageInfo": {
"CurrentPage": 1,
"PageSize": 20,
"TotalCount": 25,
"Count": 20
},
"DatabaseList": [
{
"Status": "Running",
"DatabaseType": "MYSQL",
"DatabaseVersion": "12.0.4100.1",
"DatabaseName": "apns_tt180",
"InstanceName": "sql-test-001",
"InstanceUuid": "85878b284df911ec800000163e19****",
"CreatedByProduct": "AEGIS",
"InstanceId": "i-bp15aho9hhftvmhw****",
"PolicyId": 123,
"AgentStatus": "INSTALLED"
}
]
}
Error codes
HTTP status 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 Service error codes.