Get a context

get/contexts/{contextId}

Returns the specified 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}

Path Parameters

NameTypeRequiredDescription
contextId
string
true

The ID of the context.

Responses

StatusMeaningDescription
200OK

The request succeeded.

HeadersSchema
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