Get active servers
Returns a list of active servers. Standard paging, filtering, and sorting options are provided. This method is restricted to users with ADMIN permission on this URL for monitoring purposes. By default, this endpoint returns a summary of the available information about the active servers. Specify an Accept-Item header with the value application/vnd.sas.compute.server+json to get all available information for each server.
1{2 "links": [3 {4 "method": "GET",5 "rel": "collection",6 "href": "/compute/servers",7 "uri": "/compute/servers",8 "type": "application/vnd.sas.collection"9 },10 {11 "method": "GET",12 "rel": "self",13 "href": "/compute/servers?start=0&limit=10",14 "uri": "/compute/servers?start=0&limit=10",15 "type": "application/vnd.sas.collection"16 }17 ],18 "name": "items",19 "accept": "application/vnd.sas.compute.server.summary",20 "items": [21 {22 "links": [23 {24 "method": "GET",25 "rel": "self",26 "href": "/compute/servers/71fc2eae-272c-45b4-aaf7-76f6cf259400",27 "uri": "/compute/servers/71fc2eae-272c-45b4-aaf7-76f6cf259400",28 "type": "application/vnd.sas.compute.server"29 },30 {31 "method": "GET",32 "rel": "alternate",33 "href": "/compute/servers/71fc2eae-272c-45b4-aaf7-76f6cf259400",34 "uri": "/compute/servers/71fc2eae-272c-45b4-aaf7-76f6cf259400",35 "type": "application/vnd.sas.compute.server.summary"36 },37 {38 "method": "DELETE",39 "rel": "delete",40 "href": "/compute/servers/71fc2eae-272c-45b4-aaf7-76f6cf259400",41 "uri": "/compute/servers/71fc2eae-272c-45b4-aaf7-76f6cf259400"42 }43 ],44 "id": "71fc2eae-272c-45b4-aaf7-76f6cf259400"45 }46 ],47 "version": 248}
Name | Type | Required | Description |
---|---|---|---|
contextName | string | false | Returns only active servers for the specified context definition. |
filter | string<filter-criteria> | false | Specifies the filter criteria for returned active server listings. |
limit | integer | false | Specifies the maximum number of active server listings to return. The default value is "10". |
serverId | string | false | Returns only the active server that matches the serverId. The serverId is a unique identifier for an active SAS Compute Server instance. |
sortBy | string<sort-criteria> | false | Sorts returned active server listings. |
start | integer | false | Specifies the offset of first active server listing to return. The default value is "0". |
Name | Type | Required | Description |
---|---|---|---|
Accept-Item | string | false | Specifies the desired server representation. The Accept-Item options are: application/vnd.sas.compute.server+json application/vnd.sas.compute.server.summary+json blank If the application/vnd.sas.compute.server.summary+json type is specified or no Accept-Item header is specified, then the servers are returned as summary representation server objects. Allowed values: application/vnd.sas.compute.server+jsonapplication/vnd.sas.compute.server.summary+json |