Get a collection of Servers
get/servers
Return a collection of server objects in the form of an application/vnd.sas.collection. It is based on the specified query parameters.
1{2 "version": 2,3 "accept": "application/vnd.sas.batch.server",4 "count": 1,5 "start": 0,6 "limit": 10,7 "name": "servers",8 "items": [9 {10 "creationTimeStamp": "2022-06-14T15:00:49.668113Z",11 "createdBy": "someuser",12 "modifiedTimeStamp": "2022-06-14T15:01:05.66361Z",13 "modifiedBy": "anonymous",14 "contextId": "6794ba8a-6aff-4989-ae77-93f67286aea2",15 "hostName": "10.254.3.12",16 "id": "dbbb00c3-e67c-408b-bd84-9b57a2d69472",17 "isPermanent": true,18 "links": [19 {20 "method": "GET",21 "rel": "self",22 "href": "/batch/servers/dbbb00c3-e67c-408b-bd84-9b57a2d69472",23 "uri": "/batch/servers/dbbb00c3-e67c-408b-bd84-9b57a2d69472",24 "type": "application/vnd.sas.batch.server"25 },26 {27 "method": "GET",28 "rel": "up",29 "href": "/batch/servers",30 "uri": "/batch/servers",31 "type": "application/vnd.sas.collection",32 "itemType": "application/vnd.sas.batch.server"33 }34 ],35 "processId": "b7e39cf9-eda7-400c-a752-301653e55e8e",36 "queueName": "High Priority",37 "ruleId": "16c332b2-4ac6-483b-85f6-7bb9d2d5a576",38 "runServerAs": "myUserName",39 "state": "available",40 "version": 141 }42 ],43 "links": [44 {45 "method": "GET",46 "rel": "collection",47 "href": "/batch/servers",48 "uri": "/batch/servers",49 "type": "application/vnd.sas.collection",50 "itemType": "application/vnd.sas.batch.server"51 },52 {53 "method": "GET",54 "rel": "self",55 "href": "/batch/servers?start=0&limit=10",56 "uri": "/batch/servers?start=0&limit=10",57 "type": "application/vnd.sas.collection",58 "itemType": "application/vnd.sas.batch.server"59 }60 ]61}
Name | Type | Required | Description |
---|---|---|---|
filter | string<filter-criteria> | false | Specifies the filter criteria for returned items. |
limit | integer | false | Limits the maximum number of resource items to return. The default value is "10". |
sortBy | string<sort-criteria> | false | Sorts returned items by the specified criteria. |
start | integer | false | Returns the offset of the first resource item to return. The default value is "0". |
Status | Meaning | Description | ||
---|---|---|---|---|
200 | OK | The request succeeded. | Schema | |
400 | Bad Request | The query server request is not valid due to one of the following reasons: <UL> <LI> The start or limit value is not a number. <LI> The start or limit value is less than 0. <LI> The filter parameter is not a valid value. <LI> The sortBy parameter is not a valid value. </UL> See the returned error response for more information. | Schema | |
406 | Not Acceptable | The requested response type is not acceptable. See the returned error response for more information and acceptable response types. | Schema |