Get Metadata of a Node Type

get

/nodeTypes/{id}

Returns metadata specific to a node type.

Request

Path Parameters

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

The specified metadata has been fetched successfully.

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 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

422 Response

The entity cannot be processed due to semantic errors.
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 fetch the metadata of a specific node type by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL

curl -X GET 'http://host:port/nodeTypes/{id}

Example of the Response Body

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

{
  "tabs": [
    {
      "id": "nameAndType",
      "title": "Name and Type",
      "form": {
        "groups": [
          {
            "fields": [
              {
                "id": "nodeType",
                "label": "Node",
                "type": "nodeType"
              },
              {
                "id": "nodeName",
                "label": "Node Name",
                "type": "text",
                "required": "true"
              }
            ]
          }
        ]
      }
    },
    {
      "id": "basicSettings",
      "title": "Basic Settings",
      "form": {
        "groups": [
          {
            "title": "External clients",
            "fields": [
              {
                "type": "table",
                "fields": [
                  {
                    "id": "ipaddress",
                    "label": "IP Address",
                    "type": "text",
                    "required": "true"
                  },
                  {
                    "id": "sharedsecret",
                    "label": "Shared Secret",
                    "type": "password",
                    "required": "true"
                  }
                ],
                "buttonLabel": "Add Client"
              }
            ]
          }
        ]
      }
    }
  ]
}
}
Back to Top