Obtaining Daily Database Health Check Tasks
Function
This API is used to obtain daily database health check tasks.
Authorization Information
Each account has permissions to call all APIs, but IAM users must have the required permissions specifically assigned.
- If you are using role/policy-based authorization, see the required permissions in Permissions Policies and Supported Actions.
- If you are using identity policy-based authorization, the following identity policy-based permissions are required.
Action
Access Level
Resource Type (*: required)
Condition Key
Alias
Dependencies
das:clouddba:dailyReportsList
Read
Instance
-
-
-
URI
GET /v3/{project_id}/health-report/{instance_id}/get-instance-health-report-task-list
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Definition Project ID of a tenant in a region. To obtain this value, see Obtaining a Project ID. Constraints N/A Range The value can contain 32 characters. Only letters and digits are supported. Default Value N/A |
| instance_id | Yes | String | Definition Unique ID of an instance Constraints N/A Range The value can contain 32 characters. Only letters and digits are supported. Default Value N/A |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| start_at | Yes | Long | Definition Start time in the Unix timestamp format, in milliseconds Constraints N/A Range [0, 2^31 – 1]. The actual value depends on the query result. Default Value N/A |
| end_at | Yes | Long | Definition End time in the Unix timestamp format, in milliseconds Constraints N/A Range [0, 2^31 – 1]. The actual value depends on the query result. Default Value N/A |
| page_num | Yes | Integer | Definition Page number Constraints N/A Range [0, 2^31-1] Default Value N/A |
| page_size | Yes | Integer | Definition Number of records on each page Constraints N/A Range [0, 200]. The actual value depends on the query result. Default Value 10 |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| total | Long | Definition Number of diagnosis reports Range N/A |
| health_report_task_list | Array of Table 4 objects | Definition Diagnosis reports Range N/A |
| Parameter | Type | Description |
|---|---|---|
| task_id | String | Definition Report ID Range N/A |
| instance_id | String | Definition Instance ID Range N/A |
| create_at | Long | Definition Creation time in the Unix timestamp format, in milliseconds Range N/A |
| report_status | String | Definition Diagnosis status Range N/A |
| risk_count | Integer | Definition Number of risks Range N/A |
| origin | String | Definition Trigger source Range N/A |
| start_at | Long | Definition Diagnosis start time (in Unix timestamp format) in a daily report, in milliseconds Range N/A |
| end_at | Long | Definition Diagnosis end time (in Unix timestamp format) in a daily report, in milliseconds Range N/A |
Example Requests
GET https://das.cn-north-1.myhuaweicloud.com/v3/054e292c9880d4992f02c0196d3ea468/health-report/bcfa975193f1402fa11a6d4fd6baf5fbin01/get-instance-health-report-task-list?start_at=1764732060618&end_at=1764818460618&page_num=1&page_size=10
Example Responses
Status code: 200
Success.
{
"total": 1,
"health_report_task_list": [
{
"task_id": "f407d4c9-8915-4e08-86c1-ca569912ad20",
"instance_id": "bcfa975193f1402fa11a6d4fd6baf5fbin01",
"create_at": 1764784810802,
"report_status": "SUCCESS",
"risk_count": 1,
"origin": "SYSTEM",
"start_at": 1764648000141,
"end_at": 1764734400141
}
]
} Status Codes
| Status Code | Description |
|---|---|
| 200 | Success. |
| 400 | Client error. |
| 500 | Server error. |
Error Codes
See Error Codes.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot