Querying Instance Diagnosis Reports
Function
This API is used to query instance diagnosis reports.
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:listDailyReports
List
Instance
-
das:clouddba:dailyReportsList
-
URI
GET /v3/{project_id}/instances/{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, including only letters and digits. Default Value N/A |
|
instance_id |
Yes |
String |
Definition Unique ID of an instance Constraints N/A Range The value can contain 32 characters, including only letters and digits. Default Value N/A |
|
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 |
|
offset |
No |
Integer |
Definition Index offset. The query starts from the next piece of data indexed by this parameter. If this parameter is set to 1 and limit is set to 10, only the second to eleventh records are displayed. Constraints N/A Range [0, 2^31-1] Default Value 0: The query starts from the first data record. |
|
limit |
No |
Integer |
Definition Records on each page Constraints N/A Range [0, 200]. The actual value depends on the query result. Default Value 10 |
Request Parameters
None
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
|
|
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
Querying instance diagnosis reports
GET https://das.cn-north-7.myhuaweicloud.com/v3/052041494800d57c2f02c00275b4c247/instances/bcfa975193f1402fa11a6d4fd6baf5fbin01/get-instance-health-report-task-list?start_at=1727177896507&end_at=1728871794805
Example Responses
Status code: 200
Successful response
{
"health_report_task_list" : [ {
"instance_id" : "bcfa975193f1402fa11a6d4fd6baf5fbin01",
"task_id" : "8aa02bb1-ca4a-4724-ad3b-00993d6e08e0",
"create_at" : 1727200803179,
"report_status" : "SUCCESS",
"risk_count" : 1,
"origin" : "SYSTEM",
"start_at" : 1727064000211,
"end_at" : 1727150400211
} ],
"total" : 22
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Successful response |
|
400 |
Client error |
|
500 |
Server error |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank 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