Users¶
Overview¶
User requests can be used to set and retrieve information for one or many Users.
User 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.
Request and Responses¶
List of possible requests for Users.
Get User Names¶
Gets all the User names.
URL: |
http://hostname:portnumber/api/users?NamesOnly=true |
Request Type: |
GET |
Message Body: |
N/A |
Response: |
JSON object containing all the User names. |
Possible Errors: |
500 Internal Server Error: An exception occurred within the Deadline code. |
Get Users¶
Gets all the User information for the provided User names.
URL: |
http://hostname:portnumber/api/users?Name=oneOrMoreValidUserNames |
Request Type: |
GET |
Message Body: |
N/A |
Response: |
JSON object containing all the User information for the Users provided. |
Possible Errors: |
500 Internal Server Error: An exception occurred within the Deadline code. |
Get All Users¶
Gets all the Users.
URL: |
http://hostname:portnumber/api/users |
Request Type: |
GET |
Message Body: |
N/A |
Response: |
JSON object containing all the User information for the Users provided. |
Possible Errors: |
500 Internal Server Error: An exception occurred within the Deadline code. |
Save User¶
Saves the User Information provided.
URL: |
http://hostname:portnumber/api/users |
Request Type: |
PUT/POST |
Message Body: |
JSON object containing all the User Information to save. |
Response: |
“Success” for PUT, the User name and ID for POST. |
Possible Errors: |
|
Delete User¶
Deletes the Users corresponding to the User names provided.
URL: |
http://hostname:portnumber/api/users?Name=oneOrMoreValidUserNames |
Request Type: |
DELETE |
Message Body: |
N/A |
Response: |
“Success” |
Possible Errors: |
|
Get User Group Names¶
Gets all the User Group names.
URL: |
http://hostname:portnumber/api/usergroups |
Request Type: |
GET |
Message Body: |
N/A |
Response: |
JSON object containing all the User Group names. |
Possible Errors: |
500 Internal Server Error: An exception occurred within the Deadline code. |
Get Users Names For User Group¶
Gets all the User names for the User Group that corresponds to the provided User Group name.
URL: |
http://hostname:portnumber/api/usergroups?Name=oneValidUserGroupName |
Request Type: |
GET |
Message Body: |
N/A |
Response: |
JSON object containing all the User names in the User Group. |
Possible Errors: |
500 Internal Server Error: An exception occurred within the Deadline code. |
Get User Group Names For User¶
Gets all the User Group names for the User corresponding to the provided User name.
URL: |
http://hostname:portnumber/api/usergroups?User=onValidUserName |
Request Type: |
GET |
Message Body: |
N/A |
Response: |
JSON object containing all the User Group names for the User. |
Possible Errors: |
500 Internal Server Error: An exception occurred within the Deadline code. |
Add Users To User Groups¶
Adds the Users corresponding to the User names provided to the User Groups corresponding with the User Group names provided.
URL: |
http://hostname:portnumber/api/usergroups |
Request Type: |
PUT |
Message Body: |
|
Response: |
“Success” |
Possible Errors: |
|
Remove Users From User Groups¶
Removes the Users corresponding to the User names provided from the User Groups corresponding with the User Group names provided.
URL: |
http://hostname:portnumber/api/usergroups |
Request Type: |
PUT |
Message Body: |
|
Response: |
“Success” |
Possible Errors: |
|
Set Users For User Groups¶
Sets the Users corresponding to the User names provided for the User Groups corresponding with the User Group names provided.
URL: |
http://hostname:portnumber/api/usergroups |
Request Type: |
PUT |
Message Body: |
|
Response: |
“Success” |
Possible Errors: |
|
Create New User Groups¶
Creates and saves new user groups with the given names.
URL: |
http://hostname:portnumber/api/usergroups |
Request Type: |
POST |
Message Body: |
|
Response: |
“Success” |
Possible Errors: |
|
Delete User Groups¶
Deletes a user groups with the given name.
URL: |
http://hostname:portnumber/api/usergroups?Name=user+group+name+to+delete |
Request Type: |
DELETE |
Message Body: |
N/A |
Response: |
“Success” |
Possible Errors: |
|