Create a Node Manager

post

/v1/nodeManagers

Creates and adds a Node Manager in the Administration Server.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json;charset=utf-8 ()
Root Schema : schema
Type: object
Show Source
Back to Top

Response

Supported Media Types

201 Response

The Node Manager was added successfully to the admin server.
Body ()
Root Schema : NodeManagerResponse
Type: object
The response schema for getting details of a Node Manager.
Show Source
Nested Schema : nodes
Type: array
The list of nodes managed by the Node Manager.
Show Source
Nested Schema : NodeReference
Type: object
The schema defining reference to get a node's information.
Show Source

400 Response

The server cannot process the request due to a client error.
Body ()
Root Schema : Error
Type: object
Used when an API encounters an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

401 Response

The client does not have the correct privileges.
Body ()
Root Schema : Error
Type: object
Used when an API encounters an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

403 Response

The request was not authorized.
Body ()
Root Schema : Error
Type: object
Used when an API encounters an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

404 Response

This method is not allowed.
Body ()
Root Schema : Error
Type: object
Used when an API encounters an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

405 Response

This method is not allowed.
Body ()
Root Schema : Error
Type: object
Used when an API encounters an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

409 Response

The request cannot be processed due to a conflict with the existing state of the resource.
Body ()
Root Schema : Error
Type: object
Used when an API encounters an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

500 Response

The system has encountered an internal server error.
Body ()
Root Schema : Error
Type: object
Used when an API encounters an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source
Back to Top

Examples

The following example shows how to create a new Node Manager by submitting a POST request on the REST resource using cURL. For more information about cURL, see Use cURL.

The -d option specifies the file to attach as the request body.

curl -X POST 'http://host:port/nodeManagers' -d @sampleAddaNodeManagertoAdminServer.json

Example of Request Body

The following is an example of the contents of the sampleAddaNodeManagertoAdminServer.json file sent as the request body.

{
  "host": "cagbu-phx-671.snphxprshared1.gbucdsint02phx.oraclevcn.com",
  "name": "Nodemgr",
  "port": 32170
}

Example of Response Body

If successful, the response code 200 is displayed.

Back to Top