KillJobs
Stops running jobs.
Operation description
Error codes and troubleshooting
ILLEGAL_ARGUMENT (HTTP 400)
Cause The instanceId in the request failed the MaxQA job validation.
Solution If you receive an invalid MaxQA job error, use ListJobInfos to verify the instanceId and job status. Confirm that the job to be stopped is the target job and is still running before you retry.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
odps:KillJobs |
update |
*All Resource
|
None | None |
Request syntax
POST /api/v1/jobs/kill HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| tenantId |
string |
No |
The tenant ID. |
478403690625249 |
| region |
string |
No |
The region ID. |
cn-hangzhou |
| body |
string |
No |
The list of jobs to be stopped. The instanceId is obtained from the job instance ID returned by ListJobInfos, and the projectName is obtained from the project name returned by ListProjects. |
[ { "instanceId": "", "projectName": "" }, { "instanceId": "", "projectName": "" } ] |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
PopResult |
||
| requestId |
string |
The request ID. |
0abb7ede16814560741256732e91b6 |
| httpCode |
integer |
Indicates whether the operation was successful. If the value is not empty and is not 200, the operation failed. |
200 |
| data |
string |
The returned data. |
success |
Examples
Success response
JSON format
{
"requestId": "0abb7ede16814560741256732e91b6",
"httpCode": 200,
"data": "success"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.