Querying Details About a Microservice Engine Job
Function
This API is used to query details about a microservice engine job.
URI
GET /v2/{project_id}/enginemgr/engines/{engine_id}/jobs/{job_id}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Unique ID of a tenant's sub-project. The value contains 1 to 64 characters. |
engine_id |
Yes |
String |
ID of an exclusive microservice engine. |
job_id |
Yes |
String |
Job ID. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
User token. |
X-Enterprise-Project-ID |
No |
String |
Default enterprise project: default. Default ID: 0. |
Content-Type |
Yes |
String |
Enter application/json;charset=UTF-8. |
Accept |
Yes |
String |
Enter application/json. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
id |
Integer |
Job ID. |
engineId |
String |
ID of an exclusive microservice engine. |
type |
String |
Job type. Enumeration values:
|
description |
String |
Job description. |
status |
String |
Job status. Enumeration values:
|
scheduling |
Integer |
Whether a job is being executed. 0: no; 1: yes. |
createUser |
String |
Creator of a job. |
startTime |
Long |
Start time of a job. |
endTime |
Long |
End time of a job. |
context |
String |
Job execution context. |
tasks |
Array of TaskSteps objects |
Job phases. |
Parameter |
Type |
Description |
---|---|---|
taskName |
String |
Name of a phase. |
taskNames |
Array of strings |
List of procedures contained in the current phase. |
status |
String |
Status of a phase. Enumeration values:
|
startTime |
Long |
Start time of a phase. |
endTime |
Long |
End time of a phase. |
taskExecutorBrief |
TaskExecutorBrief object |
Job metadata. |
tasks |
Array of Task objects |
Procedure. |
Parameter |
Type |
Description |
---|---|---|
jobId |
Integer |
ID of the job to which the sub-job belongs. |
id |
Long |
Sub-job ID, which is in UUID format. |
type |
String |
Sub-job type. Enumeration values:
|
assigned |
String |
Executor of a sub-job. |
taskName |
String |
Sub-job name. |
engineName |
String |
Name of the engine to which the sub-job belongs. |
taskOrder |
Integer |
Sequence in which sub-jobs are executed, in ascending order. |
status |
String |
Sub-job status. Enumeration values:
|
startTime |
Long |
Start time of a sub-job. |
endTime |
Long |
End time of a sub-job. |
createTime |
Long |
Creation time of a sub-job. |
updateTime |
Long |
Update time of a sub-job. |
timeout |
Integer |
Whether a sub-job times out. |
log |
String |
Sub-job details, which are auxiliary information generated during the execution. |
output |
String |
Sub-job output information. Default: {} |
taskExecutorBrief |
TaskExecutorBrief object |
Job metadata. |
Parameter |
Type |
Description |
---|---|---|
duration |
Long |
Sub-job duration. |
description |
String |
Sub-job description. |
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code. |
error_msg |
String |
Error message. |
detail |
String |
Location details. |
Status code: 500
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code. |
error_msg |
String |
Error message. |
detail |
String |
Location details. |
Example Requests
GET https://{endpoint}/v2/{project_id}/enginemgr/engines/{engine_id}/jobs/{job_id}
Example Responses
Status code: 200
OK
{ "id" : 12339, "engineId" : "ad76972c-a743-4770-859c-c98a680f4d98", "type" : "Create", "description" : "", "status" : "Finished", "scheduling" : 0, "createUser" : "test", "startTime" : 1636540095901, "endTime" : 1636540460230, "context" : "string", "tasks" : [ { "taskName" : "resourcePrepare", "taskNames" : [ "TenantTaskExecutor" ], "status" : "Finished", "startTime" : 1636540100216, "endTime" : 1636540110215, "taskExecutorBrief" : { "duration" : 6000, "description" : "Resource preparation" }, "tasks" : [ { "jobId" : 12339, "id" : 89117, "type" : "Create", "assigned" : "string", "taskName" : "TenantTaskExecutor", "engineName" : "test", "taskOrder" : 0, "status" : "Init", "startTime" : 1636540100216, "endTime" : 1636540110215, "createTime" : 1636540095910, "updateTime" : 1636540110230, "timeout" : -1, "log" : "string", "output" : "{}", "taskExecutorBrief" : { "duration" : 6000, "description" : "Tenant processing" } } ] } ] }
Status Codes
Status Code |
Description |
---|---|
200 |
OK |
400 |
Bad Request |
500 |
Internal Server Error |
Error Codes
See CSE 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