Disable or Enable Multiple Jobs
Disables or enables multiple jobs.
Endpoint
https://<Director_IP_address>:4443/c/router
Request Example
curl
Copy
curl --request POST \
--url https://<Director_IP_address>:4443/c/router \
--header "content-type: application/json" \
--cookie @cookies.txt \
--data "{
"action": "JobManagement",
"method": "enable",
"data": [[1,2,3,4],true],
"type": "rpc",
"tid": 1}"
Request Fields
Field | Type | Value(s) |
---|---|---|
action
|
string | JobManagement
|
method
|
string | enable
|
data
|
array | Parameters |
type
|
string | rpc
|
tid
|
integer | 1
|
Data
Field | Type | Description |
---|---|---|
JobIDs
|
array | Job IDs |
doEnable
|
boolean | true to enable the job, false to disable |
Response Sample
curl
Copy
{
"action": "JobManagement",
"method": "enable",
"tid": "1",
"type": "rpc",
"message": null,
"where": null,
"cause": null,
"data": null
}
Response Fields
Field
|
Value
|
Description
|
---|---|---|
message
|
string | Message if the request failed |
where
|
string | Reference to the method where a problem occurred |
cause
|
string | Cause of failure |