Querying the Job Execution Status
Function
This API is used to query the information about jobs of a specified resource. COMPLETED indicates that the job has been successfully completed. RUNNING indicates that the job is being executed. FAILED indicates that the job fails to be executed.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the following required identity policy-based permissions. For details about the required permissions, see Permissions Policies and Supported Actions.
|
Action |
Access Level |
Resource Type (*: required) |
Condition Key |
Alias |
Dependencies |
|---|---|---|---|---|---|
|
esw:job:listResourceRelatedJobs |
List |
- |
- |
- |
- |
URI
GET /v3/{project_id}/l2cg/resources/{resource_id}/jobs
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
|
|
resource_id |
Yes |
String |
|
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
limit |
No |
Integer |
|
|
marker |
No |
String |
|
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
jobs |
Array of Job objects |
|
|
page_info |
PageInfo object |
|
|
request_id |
String |
|
|
Parameter |
Type |
Description |
|---|---|---|
|
id |
String |
|
|
name |
String |
|
|
status |
String |
|
|
begin_time |
String |
|
|
end_time |
String |
|
|
process |
String |
|
|
fail_reason |
String |
|
|
resource_id |
String |
|
|
resource_name |
String |
|
|
resource_type |
String |
|
|
project_id |
String |
|
|
Parameter |
Type |
Description |
|---|---|---|
|
next_marker |
String |
|
|
previous_marker |
String |
|
|
current_count |
Integer |
|
Example Requests
GET https://{{endpoint}}/v3/88104fcc62a640bfa0a0bf687607621c/l2cg/resources/3bbe7af1-1355-4e41-9fee-721bd80de2ab/jobs
Example Responses
Status code: 200
The GET operation is successful. For more status codes, see Status Codes.
{
"request_id" : "f8ef8704d8eb6a13988a01f4e37307fc",
"jobs" : [ {
"name" : "DeleteHAInstance",
"id" : "25578d6b-7394-48fd-b647-3308c476cb6d",
"status" : "COMPLETED",
"resource_id" : "3bbe7af1-1355-4e41-9fee-721bd80de2ab",
"resource_name" : "esw-fee1",
"resource_type" : "instance",
"project_id" : "88104fcc62a640bfa0a0bf687607621c",
"begin_time" : "2025-10-22T03:25:41",
"end_time" : "2025-10-22T03:25:43"
}, {
"name" : "CreateHAInstance",
"id" : "71c1c3fc-c2ab-4d78-8964-b38b270dcde8",
"status" : "FAILED",
"resource_id" : "3bbe7af1-1355-4e41-9fee-721bd80de2ab",
"resource_name" : "esw-fee1",
"resource_type" : "instance",
"project_id" : "88104fcc62a640bfa0a0bf687607621c",
"begin_time" : "2025-10-22T03:23:13",
"end_time" : "2025-10-22T03:25:01",
"fail_reason" : "WaitCreateServerJobTask Failed"
} ],
"page_info" : {
"previous_marker" : "25578d6b-7394-48fd-b647-3308c476cb6d",
"current_count" : 2
}
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
The GET operation is successful. For more status codes, see Status Codes. |
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