Obtaining the DevServer Job List
Function
This API is used to obtain the DevServer job list. The jobs can be filtered by status, ID, or other fields.
Debugging
You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.
URI
GET /v1/{project_id}/dev-servers/jobs
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Definition: Project ID. For details, see Obtaining a Project ID and Name. Constraints: The value can contain 1 to 64 characters. Letters, digits, and hyphens (-) are allowed. Range: N/A Default Value: N/A |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
id |
No |
String |
Definition: DevServer job ID. Constraints: None Range: 1 to 64 characters. Default Value: N/A |
|
name |
No |
String |
Definition: DevServer job name. Constraints: None Range: N/A Default Value: N/A |
|
type |
No |
String |
Definition: DevServer job type. Constraints: None Range: N/A Default Value: N/A |
|
status |
No |
String |
Definition: DevServer job status. Constraints: None Range: N/A Default Value: N/A |
|
visible |
No |
Boolean |
Definition: Visible or not. Constraints: bool Range: N/A Default Value: N/A |
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
current |
Integer |
Definition: Current page number. Range: N/A |
|
data |
Array of DevServerJobListResponse objects |
Definition: Job instance list. |
|
pages |
Integer |
Definition: Total number of pages. Range: N/A |
|
size |
Integer |
Definition: Number of records on each page. Range: N/A |
|
total |
Long |
Definition: Total number of records. Range: N/A |
|
Parameter |
Type |
Description |
|---|---|---|
|
id |
String |
Task ID. |
|
name |
String |
Task name. |
|
user_name |
String |
Username. |
|
description |
String |
Task description. |
|
type |
String |
Task type. |
|
status |
String |
Task status. |
|
abnormal_count |
Integer |
Number of nodes where the task fails. |
|
create_at |
String |
Creation time. |
|
update_at |
String |
Update time. |
Example Requests
GET https://{endpoint}/v1/{project_id}/dev-servers/jobs
{ }
Example Responses
Status code: 200
OK
{
"current" : 1,
"data" : [ {
"create_at" : 1749536420547,
"update_at" : 1749536603947,
"id" : "03af7361-5cba-44d4-b29b-4dcc5d9dff51",
"name" : "software-upgrade-792a",
"user_name" : "modelarts_user",
"type" : "ASCEND_SOFTWARE_UPGRADE",
"status" : "FINISHED",
"abnormal_count" : 0
}, {
"create_at" : 1749523685137,
"update_at" : 1749523899848,
"id" : "62c89f77-fc81-45a8-9647-d6e457e73954",
"name" : "diagnosis-81ef",
"user_name" : "modelarts_user",
"description" : "POC",
"type" : "ASCEND_DIAGNOSIS",
"status" : "FINISHED",
"abnormal_count" : 0
} ],
"pages" : 1,
"size" : 2,
"total" : 2
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
OK |
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