Queries the notifications of an ApsaraDB RDS instance.
Operation Description
Supported database engines
- MySQL
- PostgreSQL
- SQL Server
- MariaDB
Feature description
The notifications are highlighted at the top of the ApsaraDB RDS console. The notifications include renewal reminders and reminders of instance creation failures.
After you call this operation to query notifications, you can call the ConfirmNotify operation to mark the notifications as confirmed, which means that you understand the content of the notifications.
debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
WithConfirmed | boolean | Yes | Specifies whether the query results contain confirmed notifications. Valid values:
Note
A confirmed notification is a notification that has been marked as confirmed by calling the ConfirmNotify operation.
| false |
From | string | Yes | The beginning of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. | 2022-05-02T08:38:37Z |
To | string | Yes | The end of the time range to query. The end time must be later than the start time. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. | 2022-05-09T08:38:37Z |
PageSize | integer | No | The number of entries to return on each page. Valid values:
Default value: 30. | 30 |
PageNumber | integer | No | The number of the page to return. Valid values: any non-zero positive integer. Default value: 1. | 1 |
Response parameters
Examples
Sample success responses
JSON
format
{
"Data": {
"NotifyItemList": [
{
"Id": 103499,
"GmtCreated": "2022-04-21T02:04:04Z",
"GmtModified": "2022-04-21T02:10:47Z",
"AliUid": 0,
"IdempotentId": "ETnLKlblzczshOTUbOCzxxxxxxxxxx",
"IdempotentCount": "0",
"Type": "Sell",
"Level": "error",
"TemplateName": "InstanceCreateFailed",
"NotifyElement": "{\\\"orderId\\\":21466**********}",
"ConfirmFlag": true,
"Confirmor": 0
}
],
"PageSize": 25,
"PageNumber": 1,
"TotalRecordCount": 1
},
"RequestId": "94CB8D93-017A-5AE7-A118-6E0F89D93C0A"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | Param.Invalid | Param invalid | A request parameter error occurred. |
400 | Param.Invalid.TimeEndBeforeStart | Param invalid. End time before start time | The end time cannot be earlier than the start time. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|