Zum Inhalt

cmdb.workstation_components

Work in Progress

cmdb.workstation_components.read#

Fetches workplace components for a Person.

Request parameters#

Key JSON data type Required Description
filter Object Yes At least one of the following keys
filter.id Integer No Object identifier of a person
filter.ids Array No Object identifiers of persons (as integers)
filter.email String No E-mail address of a person
filter.emails Array No E-mail addresses of persons (as strings)

Response parameters#

JSON key result contains a JSON object. Keys are the object identifiers of the persons; each value is a JSON object with the keys data and children.

Key JSON data type Description
data.id String Object identifier of the person (as numeric string)
data.title String Object title of the person
data.sysid String SYSID (see category Global)
data.type String Object type identifier (as numeric string)
data.type_title String Translated name of object type; may be empty
data.status String Record status (as numeric string)
data.email String Primary e-mail address of the person
data.first_name String First name of the person
data.last_name String Last name of the person
children Object or Boolean Workplaces of the person

Keys: object identifiers of the workplaces

false if the person has no workplace

Each workplace in children again has the keys data (with id, title, sysid, type, type_title and status) and children (the components of the workplace, same structure). For components, children is false.

Example#

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
{
  "version": "2.0",
  "method": "cmdb.workstation_components.read",
  "params": {
    "filter": {
      "email": "moverkamp@i-doit.com"
    },
    "apikey": "xxx",
    "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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
  "id": 1,
  "jsonrpc": "2.0",
  "result": {
    "62": {
      "data": {
        "id": "62",
        "title": "Michael Overkamp",
        "sysid": "SYSID_1692080956",
        "type": "53",
        "type_title": "Persons",
        "status": "2",
        "email": "moverkamp@i-doit.com",
        "first_name": "Michael",
        "last_name": "Overkamp"
      },
      "children": {
        "60": {
          "data": {
            "id": "60",
            "title": "Workstation_1",
            "sysid": "SYSID_1692080944",
            "type": "71",
            "type_title": "Workplace",
            "status": "2"
          },
          "children": {
            "58": {
              "data": {
                "id": "58",
                "title": "MyLittleClient",
                "sysid": "SYSID_1692080907",
                "type": "10",
                "type_title": "Client",
                "status": "2"
              },
              "children": false
            }
          }
        }
      }
    }
  }
}
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
{
    "version": "2.0",
    "method": "cmdb.workstation_components.read",
    "params": {
    "filter": {
        "ids": [62,64]
    },
    "apikey": "xxx",
    "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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
  "id": 1,
  "jsonrpc": "2.0",
  "result": {
    "62": {
      "data": {
        "id": "62",
        "title": "Michael Overkamp",
        "sysid": "SYSID_1692080956",
        "type": "53",
        "type_title": "Persons",
        "status": "2",
        "email": "moverkamp@i-doit.com",
        "first_name": "Michael",
        "last_name": "Overkamp"
      },
      "children": {
        "60": {
          "data": {
            "id": "60",
            "title": "Workstation_1",
            "sysid": "SYSID_1692080944",
            "type": "71",
            "type_title": "Workplace",
            "status": "2"
          },
          "children": {
            "58": {
              "data": {
                "id": "58",
                "title": "MyLittleClient",
                "sysid": "SYSID_1692080907",
                "type": "10",
                "type_title": "Client",
                "status": "2"
              },
              "children": false
            }
          }
        }
      }
    },
    "64": {
      "data": {
        "id": "64",
        "title": "Michael Overkamp Again",
        "sysid": "SYSID_1692081388",
        "type": "53",
        "type_title": "Persons",
        "status": "2",
        "email": "2moverkamp@i-doit.com",
        "first_name": "Michael",
        "last_name": "Overkamp Again"
      },
      "children": {
        "65": {
          "data": {
            "id": "65",
            "title": "Workstation_2",
            "sysid": "SYSID_1692081488",
            "type": "71",
            "type_title": "Workplace",
            "status": "2"
          },
          "children": false
        }
      }
    }
  }
}

Siehe auch#