Obtaining Job Details
Function
This API is used to obtain job details.
Authorization Information
Each account has all of the permissions required 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 and Supported Actions.
- If you are using identity policy-based authorization, the permission listed below is required.
Action
Access Level
Resource Type (*: required)
Condition Key
Alias
Dependencies
servicestage:app:listApplication
list
-
-
servicestage:app:list
-
URI
GET /v3/{project_id}/cas/jobs/{job_id}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Tenant's project ID. See Obtaining a Project ID. |
|
job_id |
Yes |
String |
Deployment job ID, which is job_id in the response parameter in Creating an Application Component, Importing a CCE Workload to an Application to Create a Component, Modifying Component Information Based on the Component ID, and Delivering a Component Task Based on the Component ID. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
limit |
No |
Integer |
Number of specified records. |
|
offset |
No |
Integer |
Offset. |
|
desc |
No |
String |
Whether query results are displayed in descending order. Value: true (descending order) or false (ascending order). |
Request
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
Content-Type |
Yes |
String |
Message body type (format). Default value: application/json;charset=utf8. |
|
X-Auth-Token |
Yes |
String |
API calling can be authenticated using a token or AK/SK. If you use a token, this parameter is mandatory and must be set to the token. For details about how to obtain the token, see Authentication. |
Response
|
Parameter |
Type |
Description |
|---|---|---|
|
task_count |
Integer |
Number of tasks. |
|
job |
Object |
Job parameters. See Table 5. |
|
tasks |
Array<Object> |
Task parameters. See Table 6. |
|
Parameter |
Type |
Description |
|---|---|---|
|
execution_status |
String |
Execution status.
|
|
job_id |
String |
Job ID. |
|
job_type |
String |
Type.
|
|
Parameter |
Type |
Description |
|---|---|---|
|
created_at |
String |
Creation time. |
|
messages |
String |
Message. |
|
task_id |
String |
Task ID. |
|
task_index |
Integer |
Task index. |
|
task_name |
String |
Task name. |
|
task_status |
String |
Task status.
|
|
update_at |
String |
Update time. |
Example Request
None
Example Response
{
"job": {
"execution_status": "SUCCEEDED",
"job_id": "JOB17cb1778-07b1-4c8f-a183-c86cffbe8f9e",
"job_type": "PROVISION"
},
"tasks": [
{
"task_id": "Task-af75dd60-0b04-4f4b-b669-0bad38fcdd97",
"task_index": 4,
"task_name": "VMAPP_CONTEXT_PREPARE_01",
"task_status": "SUCCEEDED",
"created_at": "2024-06-06T15:55:31.115Z",
"update_at": "2024-06-06T15:55:31.136Z",
"messages": "{}"
},
{
"task_id": "Task-50110d26-3973-49e1-95d3-d46755e865af",
"task_index": 5,
"task_name": "VMAPP_UPGRADE_002",
"task_status": "SUCCEEDED",
"created_at": "2024-06-06T15:55:31.136Z",
"update_at": "2024-06-06T15:55:31.36Z",
"messages": "{}"
}
],
"task_count": 2
}
Status Code
|
Status Code |
Description |
|---|---|
|
200 |
OK |
|
400 |
Bad Request |
|
404 |
Not Found |
|
500 |
Internal Server Error |
Error Code
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