Create a Node

post

/nodes

Creates a node in the node manager.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json;charset=utf-8 ()
Root Schema : schema
Type: object
Payload schema to create add a node to a node manager
Show Source
Nested Schema : dcNodeConfigData
Match All
Show Source
Nested Schema : DCNodeConfigDataRSM
Type: object
Schema defining node configuration data for a node.
Show Source
Nested Schema : configRules
Type: array
Secondary configuration data of the node.
Show Source
Nested Schema : nodeConfigVariables
Type: array
General configuration data of the node.
Show Source
Nested Schema : SecondaryConfigData
Type: object
Schema defining secondary configuration data for a node
Show Source
Nested Schema : fileConfigVariables
Type: array
List secondary configuration variables for the node
Show Source
Nested Schema : NodeConfigVariable
Type: object
Schema defining configuration variable for a node
Show Source
Back to Top

Response

Supported Media Types

201 Response

The node has been added successfully.
Body ()
Root Schema : NodeResponse
Type: object
Response schema for getting a node's information.
Show Source
Nested Schema : dcNodeConfigData
Match All
Show Source
Nested Schema : dcNodeType
Match All
Show Source
Nested Schema : destinationNode
Type: array
Details of destination nodes for routes originating from the node.
Show Source
Nested Schema : DCNodeConfigDataRSM
Type: object
Schema defining node configuration data for a node.
Show Source
Nested Schema : configRules
Type: array
Secondary configuration data of the node.
Show Source
Nested Schema : nodeConfigVariables
Type: array
General configuration data of the node.
Show Source
Nested Schema : SecondaryConfigData
Type: object
Schema defining secondary configuration data for a node
Show Source
Nested Schema : fileConfigVariables
Type: array
List secondary configuration variables for the node
Show Source
Nested Schema : NodeConfigVariable
Type: object
Schema defining configuration variable for a node
Show Source
Nested Schema : DCNodeTypeRSM
Type: object
Schema defining node type information for a node
Show Source
Nested Schema : DestinationNodeConfig
Type: object
Schema defining destination node's reference for a route
Show Source

400 Response

The request cannot be processed 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

The requested resource cannot be found.
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 in 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 add a new node to the 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/nodes' -d @sampleAddaNodetoNodeManager.json

Example of Request Body

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

{
  "dcNodeConfigData": {
    "nodeConfigVariables": [
      {
        "name": "fileLocation",
        "value": "/"
      },
      {
        "name": "useFtp",
        "value": "false"
      },
      {
        "name": "pollingInterval",
        "value": "600000"
      },
      {
        "name": "intervalUnits",
        "value": "Minutes"
      },
      {
        "name": "filePatternMode",
        "value": "simple"
      },
      {
        "name": "processedFileSuffix",
        "value": ".done"
      },
      {
        "name": "unprocessedFileSuffix",
        "value": ".complete"
      },
      {
        "name": "deleteLocalFiles",
        "value": "false"
      },
      {
        "name": "mtCheck",
        "value": "false"
      },
      {
        "name": "fileleveltransaction",
        "value": "false"
      },
      {
        "name": "fdCheck",
        "value": "false"
      },
      {
        "name": "fsCheck",
        "value": "false"
      },
      {
        "name": "inputBackupDir",
        "value": ""
      }
    ],
    "configRules" : [
 
    ]
  },
  "displayName": "Node-abc",
  "nodeContext": "CartridgeKit#EI#FlexibleAsciiEINode",
  "nodeManagerID": "NMGR-31eoel-otm-lnij9v9p",
  "ruleFileDisplayName": "NewFile1",
  "ruleFileName": "NewFile1.npl"}

Example of Response Body

The following is an example of a response body.
{
  "dcNodeConfigData": {
    "configRules": [],
    "nodeConfigVariables": [
      {
        "name": "fileLocation",
        "value": "/"
      },
      {
        "name": "osarsperfile",
        "value": "2000"
      },
      {
        "name": "idleosarwritetime",
        "value": "60"
      },
      {
        "name": "debuglevel",
        "value": "OFF"
      },
      {
        "name": "backup",
        "value": "false"
      },
      {
        "name": "filePatternMode",
        "value": "simple"
      },
      {
        "name": "unprocessedFileSuffix",
        "value": ".complete"
      },
      {
        "name": "asCodebase",
        "value": "file:/home/ocomcuser/install/ocomc/config/31eoen-otm-lne95s3y"
      },
      {
        "name": "bulkio",
        "value": "false"
      },
      {
        "name": "mtCheck",
        "value": "false"
      },
      {
        "name": "useFtp",
        "value": "false"
      },
      {
        "name": "ftpcfgfile",
        "value": "/home/ocomcuser/install/ocomc/config/31eoen-otm-lne95s3y/ftp.cfg"
      },
      {
        "name": "pollingInterval",
        "value": "600000"
      },
      {
        "name": "intervalUnits",
        "value": "Minutes"
      },
      {
        "name": "secondaryConfigFile",
        "value": "secondary.cfg"
      },
      {
        "name": "monitorinput",
        "value": "false"
      },
      {
        "name": "checkforosarstimer",
        "value": "20"
      },
      {
        "name": "fdCheck",
        "value": "false"
      },
      {
        "name": "fileleveltransaction",
        "value": "false"
      },
      {
        "name": "maxlogfilesize",
        "value": "100000"
      },
      {
        "name": "processedFileSuffix",
        "value": ".done"
      },
      {
        "name": "fsCheck",
        "value": "false"
      },
      {
        "name": "deleteLocalFiles",
        "value": "false"
      },
      {
        "name": "monitorinputtime",
        "value": "1"
      },
      {
        "name": "rulesfile",
        "value": "file:/home/ocomcuser/install/ocomc/config/31eoen-otm-lne95s3y/?class=com.nt.udc.rules.EI.FileEI.NewFile1_npl"
      },
      {
        "name": "monitorinputtimeunit",
        "value": "Day"
      },
      {
        "name": "inputBackupDir",
        "value": ""
      }
    ],
    "ruleName": "file:/home/ocomcuser/install/ocomc/config/31eoen-otm-lne95s3y/?class=com.nt.udc.rules.EI.FileEI.NewFile1_npl"
  },
  "dcNodeType": {
    "configDataClass": "com.metasolv.nm.collector.file.FtpEIConfigData",
    "configDataGuiClass": "com.metasolv.nm.collector.file.FileEIConfigGUI",
    "displayString": "EI : FileEI",
    "majorType": "EI",
    "minorType": "FileEI",
    "nodeClass": "com.metasolv.nm.collector.file.FileEINode"
  },
  "destinationNode": [],
  "displayName": "Node-abc",
  "marketSegment": "CartridgeKit",
  "nodeContext": "CartridgeKit#EI#FlexibleAsciiEINode",
  "nodeId": "31eoen-otm-lne95s3y",
  "nodeLabel": "12",
  "ruleFileDisplayName": "NewFile1",
  "ruleFileName": "NewFile1.npl",
  "startState": false
}
Back to Top