Get the current jobs for a session
get/sessions/{sessionId}/jobs
Returns a collection of all the current jobs for a session. Standard paging, filtering, and sorting options are provided.
1{2 "accept": "application/vnd.sas.compute.job",3 "count": 1,4 "items": [5 {6 "completedTimeStamp": "2016-05-20T16:16:10Z",7 "creationTimeStamp": "2016-05-20T16:16:10Z",8 "id": "0",9 "jobConditionCode": 0,10 "links": [11 {12 "href": "/compute/sessions/4c6775e3-50f3-4c72-80a3-a7e1069876dc-ses0000/jobs/0",13 "method": "GET",14 "rel": "self",15 "type": "application/vnd.sas.compute.job",16 "uri": "/compute/sessions/4c6775e3-50f3-4c72-80a3-a7e1069876dc-ses0000/jobs/0"17 },18 {19 "href": "/compute/sessions/4c6775e3-50f3-4c72-80a3-a7e1069876dc-ses0000/jobs/0/state",20 "method": "GET",21 "rel": "state",22 "type": "text/plain",23 "uri": "/compute/sessions/4c6775e3-50f3-4c72-80a3-a7e1069876dc-ses0000/jobs/0/state"24 },25 {26 "href": "/compute/sessions/4c6775e3-50f3-4c72-80a3-a7e1069876dc-ses0000/jobs/0/state?value=canceled",27 "method": "PUT",28 "rel": "cancel",29 "uri": "/compute/sessions/4c6775e3-50f3-4c72-80a3-a7e1069876dc-ses0000/jobs/0/state?value=canceled"30 },31 {32 "href": "/compute/sessions/4c6775e3-50f3-4c72-80a3-a7e1069876dc-ses0000/jobs/0",33 "method": "DELETE",34 "rel": "delete",35 "uri": "/compute/sessions/4c6775e3-50f3-4c72-80a3-a7e1069876dc-ses0000/jobs/0"36 },37 {38 "href": "/compute/sessions/4c6775e3-50f3-4c72-80a3-a7e1069876dc-ses0000/jobs/0/log",39 "itemType": "application/vnd.sas.compute.log.line",40 "method": "GET",41 "rel": "log",42 "type": "application/vnd.sas.collection",43 "uri": "/compute/sessions/4c6775e3-50f3-4c72-80a3-a7e1069876dc-ses0000/jobs/0/log"44 },45 {46 "href": "/compute/sessions/4c6775e3-50f3-4c72-80a3-a7e1069876dc-ses0000/jobs/0/listing",47 "itemType": "application/vnd.sas.compute.log.line",48 "method": "GET",49 "rel": "listing",50 "type": "application/vnd.sas.collection",51 "uri": "/compute/sessions/4c6775e3-50f3-4c72-80a3-a7e1069876dc-ses0000/jobs/0/listing"52 },53 {54 "href": "/compute/sessions/4c6775e3-50f3-4c72-80a3-a7e1069876dc-ses0000/jobs/0/results",55 "method": "GET",56 "rel": "results",57 "type": "application/vnd.sas.compute.result",58 "uri": "/compute/sessions/4c6775e3-50f3-4c72-80a3-a7e1069876dc-ses0000/jobs/0/results"59 },60 {61 "href": "/compute/sessions/4c6775e3-50f3-4c72-80a3-a7e1069876dc-ses0000",62 "method": "GET",63 "rel": "up",64 "type": "application/vnd.sas.compute.session",65 "uri": "/compute/sessions/4c6775e3-50f3-4c72-80a3-a7e1069876dc-ses0000"66 }67 ],68 "sessionId": "4c6775e3-50f3-4c72-80a3-a7e1069876dc-ses0000",69 "state": "completed"70 }71 ],72 "limit": 10,73 "links": [74 {75 "href": "/compute/sessions/4c6775e3-50f3-4c72-80a3-a7e1069876dc-ses0000/jobs?start=0&limit=10",76 "itemType": "application/vnd.sas.compute.job",77 "method": "GET",78 "rel": "self",79 "type": "application/vnd.sas.collection",80 "uri": "/compute/sessions/4c6775e3-50f3-4c72-80a3-a7e1069876dc-ses0000/jobs?start=0&limit=10"81 },82 {83 "href": "/compute/sessions/4c6775e3-50f3-4c72-80a3-a7e1069876dc-ses0000/jobs",84 "itemType": "application/vnd.sas.compute.job",85 "method": "GET",86 "rel": "collection",87 "type": "application/vnd.sas.collection",88 "uri": "/compute/sessions/4c6775e3-50f3-4c72-80a3-a7e1069876dc-ses0000/jobs"89 },90 {91 "href": "/compute/sessions/4c6775e3-50f3-4c72-80a3-a7e1069876dc-ses0000/jobs",92 "method": "POST",93 "rel": "create",94 "type": "application/vnd.sas.compute.job",95 "uri": "/compute/sessions/4c6775e3-50f3-4c72-80a3-a7e1069876dc-ses0000/jobs"96 }97 ],98 "name": "Current Jobs",99 "start": 0,100 "version": 2101}
Name | Type | Required | Description |
---|---|---|---|
filter | string<filter-criteria> | false | Specifies the filter criteria for returned jobs. |
jobId | string | false | Returns jobs that match the specified jobId. |
limit | integer | false | Specifies the maximum number of jobs to return. The default value is "10". |
sortBy | string<sort-criteria> | false | Sorts returned jobs. |
start | integer | false | Specifies the offset of the first job to return. The default value is "0". |