Get active sessions for server
Gets a paginated list of sessions that are owned by the requested service instance. Standard paging, filtering, and sorting options are provided.
1{2 "links": [3 {4 "method": "GET",5 "rel": "collection",6 "href": "/compute/sessions",7 "uri": "/compute/sessions",8 "type": "application/vnd.sas.collection"9 },10 {11 "method": "GET",12 "rel": "self",13 "href": "/compute/sessions?start=0&limit=10",14 "uri": "/compute/sessions?start=0&limit=10",15 "type": "application/vnd.sas.collection"16 }17 ],18 "name": "items",19 "accept": "application/vnd.sas.compute.session.summary",20 "count": 1,21 "items": [22 {23 "id": "c1a108bb-6019-4876-807f-eeac467b9c08-ses0000",24 "links": [25 {26 "method": "GET",27 "rel": "self",28 "href": "/compute/sessions/c1a108bb-6019-4876-807f-eeac467b9c08-ses0000",29 "uri": "/compute/sessions/c1a108bb-6019-4876-807f-eeac467b9c08-ses0000",30 "type": "application/vnd.sas.compute.session"31 },32 {33 "method": "GET",34 "rel": "alternate",35 "href": "/compute/sessions/c1a108bb-6019-4876-807f-eeac467b9c08-ses0000",36 "uri": "/compute/sessions/c1a108bb-6019-4876-807f-eeac467b9c08-ses0000",37 "type": "application/vnd.sas.compute.session.summary"38 },39 {40 "method": "DELETE",41 "rel": "delete",42 "href": "/compute/sessions/c1a108bb-6019-4876-807f-eeac467b9c08-ses0000",43 "uri": "/compute/sessions/c1a108bb-6019-4876-807f-eeac467b9c08-ses0000"44 }45 ],46 "version": 1,47 "name": "MySession"48 }49 ],50 "version": 251}
Name | Type | Required | Description |
---|---|---|---|
serverId | string | true | Specifies the ID of the server definition. |
Name | Type | Required | Description |
---|---|---|---|
filter | string<filter-criteria> | false | Specifies the filter criteria for returned sessions. |
limit | integer | false | Specifies the maximum number of sessions to return. The default value is "10". |
sortBy | string<sort-criteria> | false | Sorts returned sessions. |
start | integer | false | Specifies the offset of first session to return. The default value is "0". |
Name | Type | Required | Description |
---|---|---|---|
Accept-Item | string | false | Returns the desired session representation. The Accept-Item options are: application/vnd.sas.compute.session+json application/vnd.sas.compute.session.summary+json blank If the application/vnd.sas.compute.session.summary+json type is specified or no Accept-Item header is specified, then the sessions are returned as summary representation session objects. Allowed values: application/vnd.sas.compute.session+jsonapplication/vnd.sas.compute.session.summary+json |
Status | Meaning | Description | ||
---|---|---|---|---|
200 | OK | The request succeeded. | Headers | Schema |