Suspends one or more jobs.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sae:SuspendJob |
*All Resource
|
None | None |
Request syntax
GET /pop/v1/sam/job/suspendJob HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AppId |
string |
Yes |
The ID of the job template. |
ee1a7a07-abcb-4652-a1d3-2d57f415**** |
| Suspend |
boolean |
Yes |
Start or suspend a job template.
|
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
67DD9A98-9CCC-5BE8-8C9E-B45E72F4**** |
| Message |
string |
The additional information that is returned. Valid values:
|
success |
| TraceId |
string |
The trace ID that is used to query the details of the request. |
0b87b7e716575071334387401e**** |
| Data |
string |
Whether the execution is successful. |
{success: true} |
| ErrorCode |
string |
The error code returned. Valid values:
|
Null |
| Code |
string |
The HTTP status code. Valid values:
|
200 |
| Success |
boolean |
Indicates whether the job was executed. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "67DD9A98-9CCC-5BE8-8C9E-B45E72F4****",
"Message": "success",
"TraceId": "0b87b7e716575071334387401e****",
"Data": "{success: true}",
"ErrorCode": "Null\n",
"Code": "200",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | InvalidAppId.NotFound | The specified AppId does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.