Groups¶
Overview¶
Group requests can be used to set and retrieve information for one or many Groups. Group requests support GET
, PUT
, POST
, and DELETE
request types.
For more about these request types and their uses see the Request Formats and Responses documentation.
Requests and Responses¶
List of possible requests for Groups
Get Group Names¶
Gets Group Names.
URL: |
http://hostname:portnumber/api/groups |
Request Type: |
GET |
Message Body: |
N/A |
Response: |
JSON object containing all the Group names. |
Possible Errors: |
500 Internal Server Error: An exception occurred within the Deadline code. |
Get Workers For Groups¶
Gets all the Worker names for the provided Group names.
URL: |
http://hostname:portnumber/api/groups?Group=oneOrMoreGroupNames |
Request Type: |
GET |
Message Body: |
N/A |
Response: |
JSON object containing all Worker names that are in the provided Groups. |
Possible Errors: |
500 Internal Server Error: An exception occurred within the Deadline code. |
Add Groups¶
Creates new Groups using the provided Group names.
URL: |
http://hostname:portnumber/api/groups |
Request Type: |
POST |
Message Body: |
|
Response: |
“Success” |
Possible Errors: |
500 Internal Server Error: An exception occurred within the Deadline code. |
Set Groups¶
Removes all groups not provided and creates any provided groups that did not exist.
URL: |
http://hostname:portnumber/api/groups |
Request Type: |
PUT |
Message Body: |
|
Response: |
“Success” |
Possible Errors: |
500 Internal Server Error: An exception occurred within the Deadline code. |
Add Groups to Workers¶
Adds the provided Groups to the assigned groups for each provided Worker. For both Groups and Workers, only the names are required.
URL: |
http://hostname:portnumber/api/groups |
Request Type: |
PUT |
Message Body: |
|
Response: |
“Success” |
Possible Errors: |
500 Internal Server Error: An exception occurred within the Deadline code. |
Set Groups for Workers¶
Sets provided Groups as the assigned groups for each provided Worker. For both Groups and Workers, only the names are required.
URL: |
http://hostname:portnumber/api/groups |
Request Type: |
PUT |
Message Body: |
|
Response: |
“Success” |
Possible Errors: |
500 Internal Server Error: An exception occurred within the Deadline code. |
Purge Groups¶
Purges all obsolete groups using the provided replacement group.
URL: |
http://hostname:portnumber/api/groups |
Request Type: |
PUT |
Message Body: |
|
Response: |
“Success” |
Possible Errors: |
|
Set and Purge Groups¶
Sets the list of groups to the provided list of group names, creating them if necessary. Purges all the obsolete groups using the provided replacement group.
URL: |
http://hostname:portnumber/api/groups |
Request Type: |
PUT |
Message Body: |
|
Response: |
“Success” |
Possible Errors: |
|
Add and Purge Groups¶
Adds the list of provided groups, creating them if necessary. Purges all the obsolete groups using the provided replacement group.
URL: |
http://hostname:portnumber/api/groups |
Request Type: |
PUT |
Message Body: |
|
Response: |
“Success” |
Possible Errors: |
|
Delete Groups¶
Deletes all Groups with the provided Group names.
URL: |
http://hostname:portnumber/api/groups?Group=oneOrMoreGroupNames |
Request Type: |
DELETE |
Message Body: |
N/A |
Response: |
“Success” |
Possible Errors: |
500 Internal Server Error: An exception occurred within the Deadline code. |
Delete Groups From Workers¶
Deletes all Groups from the Worker’s list of groups.
URL: |
http://hostname:portnumber/api/groups?Group=oneOrMoreGroupNames&Slaves=oneOrMoreSlaveNames |
Request Type: |
DELETE |
Message Body: |
N/A |
Response: |
“Success” |
Possible Errors: |
500 Internal Server Error: An exception occurred within the Deadline code. |