Get information about a job

get/sessions/{sessionId}/jobs/{jobId}
Internal-Use Only

Returns information about a specified job. This information includes the job's current state and links to other endpoints that are associated with the job, such as results, log, or output.

Request Samples

1

Response Samples

1{
2 "listingStatistics": {
3 "lineCount": 5,
4 "modifiedTimeStamp": "2017-02-20T19:17:33Z"
5 },
6 "logStatistics": {
7 "lineCount": 45,
8 "modifiedTimeStamp": "2017-02-20T19:17:33Z"
9 },
10 "completedTimeStamp": "2016-05-20T16:16:10Z",
11 "creationTimeStamp": "2016-05-20T16:16:10Z",
12 "id": "0",
13 "jobConditionCode": 0,
14 "links": [
15 {
16 "href": "/compute/sessions/4c6775e3-50f3-4c72-80a3-a7e1069876dc-ses0000/jobs/0",
17 "method": "GET",
18 "rel": "self",
19 "type": "application/vnd.sas.compute.job",
20 "uri": "/compute/sessions/4c6775e3-50f3-4c72-80a3-a7e1069876dc-ses0000/jobs/0"
21 },
22 {
23 "href": "/compute/sessions/4c6775e3-50f3-4c72-80a3-a7e1069876dc-ses0000/jobs/0/state",
24 "method": "GET",
25 "rel": "state",
26 "type": "text/plain",
27 "uri": "/compute/sessions/4c6775e3-50f3-4c72-80a3-a7e1069876dc-ses0000/jobs/0/state"
28 },
29 {
30 "href": "/compute/sessions/4c6775e3-50f3-4c72-80a3-a7e1069876dc-ses0000/jobs/0/state?value=canceled",
31 "method": "PUT",
32 "rel": "cancel",
33 "uri": "/compute/sessions/4c6775e3-50f3-4c72-80a3-a7e1069876dc-ses0000/jobs/0/state?value=canceled"
34 },
35 {
36 "href": "/compute/sessions/4c6775e3-50f3-4c72-80a3-a7e1069876dc-ses0000/jobs/0",
37 "method": "DELETE",
38 "rel": "delete",
39 "uri": "/compute/sessions/4c6775e3-50f3-4c72-80a3-a7e1069876dc-ses0000/jobs/0"
40 },
41 {
42 "href": "/compute/sessions/4c6775e3-50f3-4c72-80a3-a7e1069876dc-ses0000/jobs/0/log",
43 "itemType": "application/vnd.sas.compute.log.line",
44 "method": "GET",
45 "rel": "log",
46 "type": "application/vnd.sas.collection",
47 "uri": "/compute/sessions/4c6775e3-50f3-4c72-80a3-a7e1069876dc-ses0000/jobs/0/log"
48 },
49 {
50 "href": "/compute/sessions/4c6775e3-50f3-4c72-80a3-a7e1069876dc-ses0000/jobs/0/listing",
51 "itemType": "application/vnd.sas.compute.log.line",
52 "method": "GET",
53 "rel": "listing",
54 "type": "application/vnd.sas.collection",
55 "uri": "/compute/sessions/4c6775e3-50f3-4c72-80a3-a7e1069876dc-ses0000/jobs/0/listing"
56 },
57 {
58 "href": "/compute/sessions/4c6775e3-50f3-4c72-80a3-a7e1069876dc-ses0000/jobs/0/results",
59 "method": "GET",
60 "rel": "results",
61 "type": "application/vnd.sas.compute.result",
62 "uri": "/compute/sessions/4c6775e3-50f3-4c72-80a3-a7e1069876dc-ses0000/jobs/0/results"
63 },
64 {
65 "href": "/compute/sessions/4c6775e3-50f3-4c72-80a3-a7e1069876dc-ses0000",
66 "method": "GET",
67 "rel": "up",
68 "type": "application/vnd.sas.compute.session",
69 "uri": "/compute/sessions/4c6775e3-50f3-4c72-80a3-a7e1069876dc-ses0000"
70 }
71 ],
72 "sessionId": "4c6775e3-50f3-4c72-80a3-a7e1069876dc-ses0000",
73 "state": "completed",
74 "version": 1
75}

Path Parameters

NameTypeRequiredDescription
jobId
string
true

Specifies the ID of the job to return information for.

sessionId
string<object-id>
true

Specifies the ID of the session.

Responses

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