Contexts
Create a context
Creates a context using the context request in the request body.
post/contexts
Request
- Base URL: https://example.com/batch
- URL: https://example.com/batch/contexts
- Auth: none declared
Request body
Example request
{
"description": "Context for High Priority Jobs",
"launcherContextId": "9087b3f5-aced-4aa0-a491-b9d33ce197c2",
"launcherContextName": "Batch Launcher Context for High Priority Jobs",
"name": "HighPriority",
"queueName": "High Priority",
"requiredResources": "gpuRequired",
"sasOptions": "-memsize 0"
}Response
The context was created.
Example response
{
"description": "Context for High Priority Jobs",
"id": "e086b29a-2d19-4b97-a912-ee15951e1549",
"isMultiServer": true,
"launcherContextId": "9087b3f5-aced-4aa0-a491-b9d33ce197c2",
"maxServers": 5,
"minServers": 2,
"name": "HighPriority",
"providerOptions": "option1=17",
"queueName": "High Priority",
"runServerAs": "serviceAcctUser",
"requiredResources": "gpuRequired",
"sasOptions": "-memsize 0",
"serverTimeout": 900
}Changes
No recorded changes to this operation across all 1 revision of this API.