List All Node Chains

get

/v1/nodeChains/{nodeManagerId}

Returns a list of all the node chains in a Node Manager.

Request

Path Parameters

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

The node chains were listed successfully.
Body ()
Root Schema : schema
Type: array
Show Source
Nested Schema : NodeChainResponse
Type: object
The response schema that provides the list of node chains associated with a queried node manager.
Show Source
Nested Schema : nodeChains
Type: array
The list of node chains associated with the node manager.
Show Source
Nested Schema : nodeManagers
Type: array
The list of node managers associated with nodes in the chain.
Show Source
Nested Schema : NodeChainResponseChainItem
Type: object
The schema that defines information about a node chain included in the node chain response.
Show Source
Nested Schema : nodes
Type: array
The details of the nodes that are part of this node chain.
Show Source
Nested Schema : NodeChainResponseNodeItem
Type: object
The schema defining a node's information associated with a node chain which is part of list node chains response.
Show Source
Nested Schema : nodeType
Type: object
The node type details of the node.
Match All
The node type details of the node.
Show Source
Nested Schema : routes
Type: array
The details for outgoing routes from the node.
Show Source
Nested Schema : NodeChainResponseNodeTypeItem
Type: object
The schema defining node type information for a node associated with a node chain which is part of list node chains response.
Show Source
Nested Schema : NodeChainResponseRouteAttrs
Type: object
Schema defining a route's information associated with a node chain which is part of list node chains response
Show Source
Nested Schema : NodeChainResponseNMItem
Type: object
Schema defining node manager details associated with a node chain in the list node chains response.
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

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 could not 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 get a list of all node chains in a Node Manager by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL.

curl -X GET 'http://hostname:port/nodeChains/NMGR-31eoh3-16it-m8fkvbje' -d @sampleListAllNodeChains.json

Example of the Response Body

If successful, the response code 200 is returned with the following response body.

{
  "nodeChains": [
    {
      "nmId": "NMGR-31eoh3-16it-m8fkvbje",
      "nodes": [
        {
          "displayName": "cc1",
          "id": "31eoh3-16it-m8fn0qbj",
          "nodeType": {
            "context": "CartridgeKit#EI#FlatFileEINode",
            "inputType": "TEXT",
            "marketSegment": "CartridgeKit",
            "name": "ASCII Collection Cartridge",
            "outputType": "NAR",
            "type": "CC"
          },
          "routes": [
            {
              "destNmId": "NMGR-31eoh6-16it-m8fkvbjc",
              "destNodeId": "31eoh6-16it-m8fn2ear",
              "isRemote": true,
              "routingFn": "Multicast"
            }
          ],
          "startState": true,
          "testId": "T-c5b4f7b0-901d-4132-8882-e8735badc012"
        }
      ]
    },
    {
      "nmId": "NMGR-31eoh3-16it-m8fkvbje",
      "nodes": [
        {
          "displayName": "cc2",
          "id": "31eoh3-16it-m8fn193f",
          "nodeType": {
            "context": "CartridgeKit#EI#FlatFileEINode",
            "inputType": "TEXT",
            "marketSegment": "CartridgeKit",
            "name": "ASCII Collection Cartridge",
            "outputType": "NAR",
            "type": "CC"
          },
          "routes": [],
          "startState": false
        }
      ]
    },
    {
      "nmId": "NMGR-31eoh6-16it-m8fkvbjc",
      "nodes": [
        {
          "displayName": "dc",
          "id": "31eoh6-16it-m8fn2ear",
          "nodeType": {
            "context": "CartridgeKit#OI#FFOINode",
            "inputType": "NAR",
            "marketSegment": "CartridgeKit",
            "name": "ASCII Distribution Cartridge",
            "outputType": "TEXT",
            "type": "DC"
          },
          "routes": [],
          "startState": true,
          "testId": "T-c5b4f7b0-901d-4132-8882-e8735badc012"
        }
      ]
    }
  ],
  "nodeManagers": [
    {
      "nmHost": "nm-1-0",
      "nmId": "NMGR-31eoh3-16it-m8fkvbje",
      "nmName": "nm-1-0",
      "nmPort": 55109,
      "nodesCount": 2
    },
    {
      "nmHost": "nm-2-0",
      "nmId": "NMGR-31eoh6-16it-m8fkvbjc",
      "nmName": "nm-2-0",
      "nmPort": 55109,
      "nodesCount": 1
    }
  ],
  "queryNmId": "NMGR-31eoh3-16it-m8fkvbje"
}
Back to Top