Get a list of nodes

get/servers/{serverName}/nodes
Internal-Use Only

Returns a collection of nodes on the CAS server. Supports SAS standard paging query parameters. Supports SAS standard paging query parameters, sorting, and filtering. Schema of items returned in the response collection is included below, and are of type application/vnd.sas.cas.server.node+json.

Request Samples

1

Response Samples

1{
2 "name": "string",
3 "start": 0,
4 "limit": 0,
5 "count": 0,
6 "accept": "string",
7 "links": [
8 {
9 "method": "string",
10 "rel": "string",
11 "uri": "string",
12 "href": "string",
13 "title": "string",
14 "type": "string",
15 "itemType": "string",
16 "responseType": "string",
17 "responseItemType": "string"
18 }
19 ],
20 "version": 0,
21 "items": [
22 {
23 "name": "string",
24 "role": "string",
25 "ipAddress": "string",
26 "connected": true,
27 "links": [
28 {
29 "method": "string",
30 "rel": "string",
31 "uri": "string",
32 "href": "string",
33 "title": "string",
34 "type": "string",
35 "itemType": "string",
36 "responseType": "string",
37 "responseItemType": "string"
38 }
39 ],
40 "version": 0
41 }
42 ]
43}

Path Parameters

NameTypeRequiredDescription
serverName
string
true

Server name for which nodes are being requested.

Query Parameters

NameTypeRequiredDescription
filter
string<filter-criteria>
false

Filter criteria for returned items. The valid filter fields are the first-level fields in each item. The supported functions are and, or, not, eq, lt, le, gt, ge, contains, startsWith, endsWith, and isNull. A sample query to return only the worker node: filter=eq(role,controller)

limit
integer
false

Maximum number of items to return in this page of results. The actual number of returned items can be less if the collection has been exhausted. Defaults to 10.

sessionId
string
false

Session ID to use when connecting to retrieve the list of nodes. If not specified, a temporary session will be used.

sortBy
string<sort-criteria>
false

Sort returned items. The sort criteria supports the first-level fields in each item. An example sort: sortBy=ipAddress:descending. The default sort is by name in ascending order.

start
integer
false

The starting index of the first item in a page. Defaults to 0.

Responses

StatusMeaningDescription
200OKThe list of nodes for the requested CAS server was returned.Schema
400Bad RequestThe request was invalid.Schema
404Not FoundThe requested CAS server does not exist.
409ConflictThe request could not be completed due to a conflict with the current state of the resource. Details are included in the response body.