Deleting DevServer Jobs in Batches
Function
Delete DevServer jobs in batches.
Debugging
You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.
URI
DELETE /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 |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
job_ids |
No |
Array of strings |
ID list of DevServer tasks to be deleted. |
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
DELETE https://{endpoint}/v1/{project_id}/dev-servers/jobs
{
"job_ids" : [ "03af7361-5cba-44d4-b29b-4dcc5d9dff51", "62c89f77-fc81-45a8-9647-d6e457e73954" ]
}
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