查询待处理事件的详情。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
Region | string | 是 | 待处理事件所在地域的地域 ID,您可以调用 DescribeRegions 接口查看 PolarDB 支持的地域和可用区。 说明
Region 设置为 all 时,TaskType 也必须设置为 all。 | all |
TaskType | string | 是 | 待处理事件的任务类型,取值范围如下:
说明
当 Region 设置为 all 时,TaskType 也必须设置为 all。
| all |
IsHistory | integer | 否 | 是否返回历史任务,取值范围如下:
默认取值为 0。 | 0 |
PageSize | integer | 否 | 每页记录数,取值为 30、50 或 100。 默认值为 30。 | 30 |
PageNumber | integer | 否 | 页码,取值为大于 0 且不超过 Integer 数据类型的最大值,默认值为 1。 | 1 |
ResourceGroupId | string | 否 | 资源组 ID。 | rg-************ |
返回参数
示例
正常返回示例
JSON
格式
{
"TotalRecordCount": 1,
"RequestId": "2F029645-FED9-4FE8-A6D3-488954******",
"PageSize": 30,
"PageNumber": 1,
"Items": [
{
"Status": 3,
"PrepareInterval": "04:00:00",
"Deadline": "2020-06-11T15:59:59Z",
"DBType": "MySQL",
"TaskType": "DatabaseSoftwareUpgrading",
"StartTime": "2020-06-09T18:00:00Z",
"DBVersion": "8.0",
"ModifiedTime": "2020-06-09T22:00:42Z",
"DBClusterId": "pc-************",
"Region": "cn-hangzhou",
"ResultInfo": "manualCancel",
"CreatedTime": "2020-06-09T22:00:42Z",
"Id": 111111,
"SwitchTime": "2020-06-09T22:00:00Z"
}
]
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | RequiredParam.NotFound | Required input param is not found. | 所需的输入参数不存在。 |
访问错误中心查看更多错误码。