Get a context by name

get/contexts/@item

Returns the specifically named context's information.

Request Samples

1

Response Samples

1{
2 "createdBy": "sas.batch",
3 "creationTimeStamp": "2022-06-13T11:37:08.210222Z",
4 "description": "Default Batch Context",
5 "id": "6794ba8a-6aff-4989-ae77-93f67286aea2",
6 "isMultiServer": true,
7 "launcherContextId": "01a0ce1b-a704-4fd9-8475-11ec1e746a22",
8 "links": [
9 {
10 "method": "GET",
11 "rel": "self",
12 "href": "/batch/contexts/6794ba8a-6aff-4989-ae77-93f67286aea2",
13 "uri": "/batch/contexts/6794ba8a-6aff-4989-ae77-93f67286aea2",
14 "type": "application/vnd.sas.batch.context"
15 },
16 {
17 "method": "DELETE",
18 "rel": "delete",
19 "href": "/batch/contexts/6794ba8a-6aff-4989-ae77-93f67286aea2",
20 "uri": "/batch/contexts/6794ba8a-6aff-4989-ae77-93f67286aea2"
21 },
22 {
23 "method": "GET",
24 "rel": "up",
25 "href": "/batch/contexts",
26 "uri": "/batch/contexts",
27 "type": "application/vnd.sas.collection",
28 "itemType": "application/vnd.sas.batch.context"
29 }
30 ],
31 "maxServers": 0,
32 "minServers": 2,
33 "modifiedBy": "someuser",
34 "modifiedTimeStamp": "2022-06-13T12:30:39.113567Z",
35 "name": "default",
36 "providerOptions": "",
37 "queueName": "default",
38 "requiredResources": "gpuRequired",
39 "runServerAs": "myServiceAcct",
40 "sasOptions": "-memsize 2048",
41 "serverTimeout": 600,
42 "version": 3
43}

Query Parameters

NameTypeRequiredDescription
name
string
true

The name of the context.

Responses

StatusMeaningDescription
200OK

The request succeeded.

HeadersSchema
400Bad Request

The query file sets request is not valid due to one of the following reasons. The 'name' query parameter is not specified. The 'name' query parameter is missing a value. See the returned error response for more information.

Schema
404Not Found

The specified context is not found.

Schema
406Not Acceptable

The requested response type is not acceptable. See the returned error response for more information and acceptable response types.

Schema