Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 29 Current »


Example - nodeList:

List of all nodes that the user has the user right to see. Keep in mind that a TOKEN may be issued to a guest user who does not see all the elements.

Query:

query {
  nodeList {
      parent_node_id
      node_id
      type
      name
  }
}
API Explorer will be opened

Response:

{
  "data": {
    "nodeList": [
      {
        "parent_node_id": null,
        "node_id": 138170,
        "type": "folder",
        "name": "rootfolder"
      },
      {
        "parent_node_id": 138170,
        "node_id": 138170,
        "type": "folder",
        "name": "San Diego"
      },
...
    ]
  }
}

The tree structure is defined by references called parent_node_id. There is exactly one node in the tree which has parent_node_id equal to null. It is the so called basec level - the most top node in the tree.

In Postman example - Get list items in tree / getNodeList

Example - camera type in nodeList:

If we want to get only objects of type "camera", we use the optional parameter type.

Query:

query {
  nodeList(type:camera) {
    parent_node_id
    type
    name
    node_id
  }
}
API Explorer will be opened

Response:

{
  "data": {
    "nodeList": [
      {
        "parent_node_id": 138170,
        "type": "camera",
        "name": "ACCC8EE8A9CA",
        "node_id": 140094
      }
    ]
  }
}

In Postman example - Get list items in tree / getNodeListCamera

  • No labels