Seitenverzeichnis:
shd.query.read
Beschreibung
Auslesen einer selbst gebauten View.
Parameter
Parameter | Typ | Version |
---|---|---|
obj_type_id | int | ab Version 1.0 |
display_rows | int | ab Version 1.0 |
page | string | ab Version 1.0 |
columns | array<Properties> | ab Version 1.0 |
condition | Comparison | ab Version 1.0 |
status | i-doit Status | ab Version 1.0 |
Rückgabewert
Wert | Typ | Version |
---|---|---|
num | int | ab Version 1.0 |
content | grid-view | ab Version 1.0 |
headers | array | ab Version 1.0 |
count | int | ab Version 1.0 |
page | string | ab Version 1.0 |
display_rows | string | ab Version 1.0 |
Beispiel
Beispielaufruf | Beispielantwort |
---|---|
{ "method": "shd.query.read", "params": { "apikey": "24174j3tqj", "obj_id": "80", "display_rows": "25", "page": "0", "columns": [ { "id": "C__CATG__GLOBAL-title", "width": "50", "sort": "" }, { "id": "C__CATG__GLOBAL-category", "width": "50", "sort": "" }, { "id": "C__CATG__CPU-frequency", "width": "50", "sort": "" }, { "id": "C__CATG__MEMORY-capacity", "width": "50", "sort": "" } ], "debug": true, "language": "en" }, "id": 1, "version": "2.0" } | { "jsonrpc":"2.0", "result":{ "num":25, "content":{ "63":{ "__id__":"63", "LC__UNIVERSAL__TITLE":" AX-23784", "LC__CMDB__CATG__GLOBAL_CATEGORY":"", "LC__CMDB__CATG__FREQUENCY":[ { "__id__":null, "value":"" } ], "LC__CMDB_CATG__MEMORY_CAPACITY":[ { "__id__":null, "value":"" } ], "__index__":0 }, "369":{ "__id__":"369", "LC__UNIVERSAL__TITLE":" HV-210-R2-SL2", "LC__CMDB__CATG__GLOBAL_CATEGORY":"", "LC__CMDB__CATG__FREQUENCY":[ { "__id__":null, "value":"" } ], "LC__CMDB_CATG__MEMORY_CAPACITY":[ { "__id__":null, "value":"" } ], "__index__":2 }, [...] }, "headers":[ { "const":"LC__UNIVERSAL__TITLE", "title":"Bezeichnung" }, { "const":"LC__CMDB__CATG__GLOBAL_CATEGORY", "title":"Kategorie" }, { "const":"LC__CMDB__CATG__FREQUENCY", "title":"CPU-Frequenz" }, { "const":"LC__CMDB_CATG__MEMORY_CAPACITY", "title":"Kapazit\u00e4t" } ], "count":596, "page":"0", "display_rows":"25" }, "id":1 } |
Beispiel mit einer Dialog-Antwort. Die Dialog-Antwort findet man im Header-Array
Beispielaufruf | Beispielantwort |
---|---|
{ "method": "shd.query.read", "params": { "apikey": "1ialbgclm9", "obj_type_id": "5", "display_rows": "25", "page": "0", "columns": [ { "id": "C__CATG__GLOBAL-title", "width": "50", "sort": "" }, { "id": "C__CATG__GLOBAL-cmdb_status", "width": "50", "sort": "" }, { "id": "C__CATG__IP-ipv4_address", "width": "50", "sort": "" }, { "id": "C__CATG__CPU-manufacturer", "width": "50", "sort": "" } ], "language": "en" }, "id": 1, "version": "2.0" } | { "jsonrpc":"2.0", "result":{ "num":44, "content":{ "3569":{ "__id__":"3569", "LC__UNIVERSAL__TITLE":"backup001", "LC__UNIVERSAL__CMDB_STATUS":"In Betrieb", "LC__CMDB__CATG__IP__IPV4_ADDRESS":[ { "__id__":null, "value":"10.100.20.241" }, { "__id__":null, "value":"10.100.10.241" } ], "LC__CATG__STORAGE_CONTROLLER_MANUFACTURER":[ { "__id__":null, "value":"Intel" }, { "__id__":null, "value":"Intel" } ], "__index__":0 }, "3470":{ "__id__":"3470", "LC__UNIVERSAL__TITLE":"cache001", "LC__UNIVERSAL__CMDB_STATUS":"In Betrieb", "LC__CMDB__CATG__IP__IPV4_ADDRESS":[ { "__id__":null, "value":"10.100.20.221" }, { "__id__":null, "value":"10.100.10.221" } ], "LC__CATG__STORAGE_CONTROLLER_MANUFACTURER":[ { "__id__":null, "value":"Intel" }, { "__id__":null, "value":"Intel" } ], "__index__":2 }, [...] }, "headers":[ { "const":"LC__UNIVERSAL__TITLE", "title":"Name" }, { "const":"LC__UNIVERSAL__CMDB_STATUS", "title":"CMDB-Status", "dialog":[ { "id":"1", "const":"C__CMDB_STATUS__PLANNED", "title":"Geplant" }, { "id":"2", "const":"C__CMDB_STATUS__ORDERED", "title":"Bestellt" }, { "id":"3", "const":"C__CMDB_STATUS__DELIVERED", "title":"Geliefert" }, [...] ] }, { "const":"LC__CMDB__CATG__IP__IPV4_ADDRESS", "title":"IPv4-Adresse" }, { "const":"LC__CATG__STORAGE_CONTROLLER_MANUFACTURER", "title":"Hersteller", "dialog":[ { "id":"1", "const":"", "title":"AMD" }, { "id":"2", "const":"", "title":"Intel" }, [...] ] } ], "count":26, "page":"0", "display_rows":"25" }, "id":1 } |