Add a node

post/servers/{serverName}/nodes

Adds a worker node to a CAS server and returns the nodes information.

Request Samples

1

Response Samples

1{
2 "name": "worker1.grid.example.com",
3 "version": 1,
4 "role": "worker",
5 "ipAddress": "192.168.1.2",
6 "connected": true,
7 "links": [
8 {
9 "method": "GET",
10 "rel": "up",
11 "href": "/casManagement/servers/casServer/nodes",
12 "uri": "/casManagement/servers/casServer/nodes",
13 "type": "application/vnd.sas.collection",
14 "itemType": "application/vnd.sas.cas.server.node"
15 },
16 {
17 "method": "GET",
18 "rel": "self",
19 "href": "/casManagement/servers/cas-shared-default/nodes/worker1.grid.example.com",
20 "uri": "/casManagement/servers/cas-shared-default/nodes/worker1.grid.example.com",
21 "type": "application/vnd.sas.cas.server.node"
22 },
23 {
24 "method": "DELETE",
25 "rel": "delete",
26 "href": "/casManagement/servers/cas-shared-default/nodes/worker1.grid.example.com",
27 "uri": "/casManagement/servers/cas-shared-default/nodes/worker1.grid.example.com"
28 }
29 ]
30}

Path Parameters

NameTypeRequiredDescription
serverName
string
true

Server name in which the node is to be created.

Query Parameters

NameTypeRequiredDescription
superUserSessionId
string
false

Session ID being used to add a node. Has to be a superuser.

Request Body

Information about the definition of a CAS server node.

NameTypeRequiredDescription
name
string
true

The fully qualified domain name of the server node.

Responses

StatusMeaningDescription
201Created

Information about the created node was returned.

Schema
400Bad Request

The request was invalid.

Schema
404Not Found

The requested CAS server does not exist.

409Conflict

The request could not be completed due to a conflict with the current state of the resource. Details are included in the response body.