Querying Execution Results of Diagnosis Tasks
Function
Query the execution result of a diagnosis task.
URI
GET /v2.0/servicerequest/diagnose/job
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
job_id |
No |
String |
Specifies the job ID. Minimum length: 0 Maximum length: 65535 |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
Specifies the user token. It can be obtained by calling the IAM API (value of X-Subject-Token in the response header). Minimum length: 1 Maximum length: 5000 |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
status |
Integer |
Specifies the task execution status. The options are 0 (preparing), 2 (executing), 3 (completed), 4 (failed), 7 (not executed), and 8 (unavailable). Options: |
|
error_code |
String |
Specifies the error code. Minimum length: 0 Maximum length: 32 |
|
error_msg |
String |
Describes the error. Minimum length: 0 Maximum length: 32 |
|
job_id |
Integer |
Specifies the job ID. Minimum value: 1 Maximum value: 2147483647 |
|
domain_id |
String |
Specifies the domain ID. Minimum length: 0 Maximum length: 64 |
|
items_result |
Array of ItemResultVo objects |
Specifies the check result of a task. Array length: 0 - 2147483647 |
|
create_time |
Long |
Specifies the task creation time. Minimum value: 0 Maximum value: 2147483647 |
|
Parameter |
Type |
Description |
|---|---|---|
|
status |
Integer |
Specifies the execution status. Minimum value: 0 Maximum value: 100 |
|
visible |
Integer |
Specifies whether the check result is visible. Options: |
|
resource_id |
String |
Specifies the resource ID of a check item. Minimum length: 0 Maximum length: 64 |
|
resource_name |
String |
Specifies the resource name of a check item. Minimum length: 0 Maximum length: 64 |
|
check_id |
String |
Specifies the ID of a check item. Minimum length: 0 Maximum length: 64 |
|
check_name |
String |
Specifies the execution status. Minimum length: 0 Maximum length: 64 |
|
problem_level |
Integer |
Specifies the problem level. The options are 0 (not executed), 3 (normal), and 4 (abnormal). This parameter can be used to check the execution result of a check item. Options: |
Request Example
GET https://{endpoint}/v2.0/servicerequest/diagnose/job?job_id=1
null
Response Example
Status code: 200
Code 200 is returned if the operation is successful.
{
"status" : 0,
"job_id" : 1,
"domain_id" : "Domain ID",
"items_result" : [ {
"status" : 1,
"visible" : 0,
"resource_id" : "Resource ID of a check item",
"resource_name" : "Resource name of a check item",
"check_id" : "ID of a check item",
"check_name" : "Name of a check item",
"problem_level" : 0
} ]
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Code 200 is returned if the operation is successful. |
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.