Designates one or more executors for a job.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The cluster ID. |
xxljob-b6ec1xxxx |
| AppName |
string |
Yes |
The application name. |
test-app |
| JobId |
integer |
Yes |
The job ID. |
74 |
| Transferable |
boolean |
No |
Specifies whether to enable failover. |
true |
| DesignateType |
integer |
Yes |
The designation type. Valid values:
|
1 |
| AddressList |
array |
Yes |
A list of machine addresses to designate. |
|
|
string |
No |
A machine address. |
http://192.168.***.5:9999/ |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| Code |
integer |
The response code. A value of |
200 |
| Message |
string |
The error message that is returned if the request fails. |
Parameter check error |
| RequestId |
string |
The unique ID generated for the request. Use this ID for troubleshooting. |
AFD5B166-4A7D-50DF-91BF-EFAFD41F7335 |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"Code": 200,
"Message": "Parameter check error",
"RequestId": "AFD5B166-4A7D-50DF-91BF-EFAFD41F7335",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | Parameter error: %s. | Parameter error: %s |
| 401 | IllegalRequest | IllegalRequest: %s. | Illegal request:%s |
| 500 | InternalError | InternalError: %s. | System Internal Error: %s |
| 403 | NoPermission | No permission to perform this operation: %s. | No permission to perform this operation: %s |
| 404 | NotFound | Not found: %s. | The resource does not exist: %s |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.