Get a context definition

get/contexts/{contextId}
Internal-Use Only

Returns the context definition that has the specified contextId.

Request Samples

1

Response Samples

1{
2 "description": "My Application Context",
3 "links": [
4 {
5 "method": "GET",
6 "rel": "self",
7 "href": "/compute/contexts/309b3f0b-cda8-4c2b-9089-82a07a4fff12",
8 "uri": "/compute/contexts/309b3f0b-cda8-4c2b-9089-82a07a4fff12",
9 "type": "application/vnd.sas.compute.context"
10 },
11 {
12 "method": "GET",
13 "rel": "alternate",
14 "href": "/compute/contexts/309b3f0b-cda8-4c2b-9089-82a07a4fff12",
15 "uri": "/compute/contexts/309b3f0b-cda8-4c2b-9089-82a07a4fff12",
16 "type": "application/vnd.sas.compute.context.summary"
17 },
18 {
19 "method": "PUT",
20 "rel": "update",
21 "href": "/compute/contexts/309b3f0b-cda8-4c2b-9089-82a07a4fff12",
22 "uri": "/compute/contexts/309b3f0b-cda8-4c2b-9089-82a07a4fff12",
23 "type": "application/vnd.sas.compute.context",
24 "responseType": "application/vnd.sas.compute.context"
25 },
26 {
27 "method": "PUT",
28 "rel": "updateWithRules",
29 "href": "/compute/contexts/309b3f0b-cda8-4c2b-9089-82a07a4fff12",
30 "uri": "/compute/contexts/309b3f0b-cda8-4c2b-9089-82a07a4fff12",
31 "type": "application/vnd.sas.compute.context.request",
32 "responseType": "application/vnd.sas.compute.context"
33 },
34 {
35 "method": "DELETE",
36 "rel": "delete",
37 "href": "/compute/contexts/309b3f0b-cda8-4c2b-9089-82a07a4fff12",
38 "uri": "/compute/contexts/309b3f0b-cda8-4c2b-9089-82a07a4fff12"
39 },
40 {
41 "method": "POST",
42 "rel": "createSession",
43 "href": "/compute/contexts/309b3f0b-cda8-4c2b-9089-82a07a4fff12/sessions",
44 "uri": "/compute/contexts/309b3f0b-cda8-4c2b-9089-82a07a4fff12/sessions",
45 "type": "application/vnd.sas.compute.session.request",
46 "responseType": "application/vnd.sas.compute.session"
47 },
48 {
49 "method": "GET",
50 "rel": "rules",
51 "href": "/authorization/rules?filter=eq(objectUri,'/compute/contexts/309b3f0b-cda8-4c2b-9089-82a07a4fff12/sessions')",
52 "uri": "/authorization/rules?filter=eq(objectUri,'/compute/contexts/309b3f0b-cda8-4c2b-9089-82a07a4fff12/sessions')",
53 "type": "application/vnd.sas.collection",
54 "responseType": "application/vnd.sas.authorization.rule"
55 }
56 ],
57 "launchType": "service",
58 "launchContext": {
59 "contextName": "compsrv"
60 },
61 "attributes": {
62 "sessionInactiveTimeout": 60
63 },
64 "mediaTypeMap": {
65 "csv": "application/vnd.ms-excel"
66 },
67 "createdBy": "myUserID",
68 "modifiedBy": "myUserID",
69 "modifiedTimeStamp": "2018-05-04T18:02:27.780000Z",
70 "creationTimeStamp": "2018-05-04T18:02:27.749000Z",
71 "id": "309b3f0b-cda8-4c2b-9089-82a07a4fff12",
72 "version": 4,
73 "name": "MyApp",
74 "queueName": "MyAppQueue",
75 "resources": [
76 {
77 "name": "file1",
78 "uri": "/files/files/ea0d3ee1-894f-4936-bc2b-f611a878a0dd",
79 "type": "application/vnd.sas.file",
80 "scope": "SESSION",
81 "options": {
82 "LRECL": 1024
83 }
84 }
85 ]
86}

Path Parameters

NameTypeRequiredDescription
contextId
string
true

Returns the context definition with the specified ID.

Responses

StatusMeaningDescription
200OKThe request succeeded.HeadersSchema
404Not FoundNo context definition exists at the requested path.Schema