Zum Inhalt

cmdb.location_tree

Work in Progress

cmdb.location_tree#

This method can be used to build the location tree. Always exactly one level is loaded down.

Request parameters#

Key JSON data type Required Description
id Integer Yes A location object, for example a City 31

WIP

Response parameters#

JSON key result contains an array of JSON objects. Each object contains a search result.

Key JSON data type Description
Placeholder Placeholder Placeholder
Placeholder Placeholder Placeholder

Example#

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
{
  "version": "2.0",
  "method": "cmdb.location_tree",
  "params": {
    "id": 31,
    "apikey": "h3md6u3y",
    "language": "en"
  },
  "id": 1
}
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
  "id": 1,
  "jsonrpc": "2.0",
  "result": [
    {
      "id": 33,
      "title": "Building 1",
      "sysid": "SYSID_1691739706",
      "type": 3,
      "type_title": "Building",
      "status": 2,
      "cmdb_status": 6,
      "cmdb_status_title": "in operation"
    },
    {
      "id": 35,
      "title": "Building 2",
      "sysid": "SYSID_1691739718",
      "type": 3,
      "type_title": "Building",
      "status": 2,
      "cmdb_status": 6,
      "cmdb_status_title": "in operation"
    }
  ]
}