Add a node
post/servers/{serverName}/nodes
Adds a worker node to a CAS server and returns the nodes information.
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}
Name | Type | Required | Description |
---|---|---|---|
serverName | string | true | Server name in which the node is to be created. |
Name | Type | Required | Description |
---|---|---|---|
superUserSessionId | string | false | Session ID being used to add a node. Has to be a superuser. |
Status | Meaning | Description | ||
---|---|---|---|---|
201 | Created | Information about the created node was returned. | Schema | |
400 | Bad Request | The request was invalid. | Schema | |
404 | Not Found | The requested CAS server does not exist. | ||
409 | Conflict | The request could not be completed due to a conflict with the current state of the resource. Details are included in the response body. |