Seitenverzeichnis:
...
Beispielaufruf | Beispielantwort | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Beispiel mit einer Dialog-Antwort. Die Dialog-Antwort findet man im Header-Array
...
Beispielaufruf
...
Beispielantwort
...
language | bash |
---|---|
theme | RDark |
...
shd.query.relation
Beschreibung
Holt alle Elemente eines Parent-Objects.
Parameter
Parameter | Typ | Version |
---|---|---|
obj_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 | array | 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 |
Beispielaufruf
Codeblock | ||||
---|---|---|---|---|
| ||||
{ "method": "shd.query.relation", "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" } |
...
Beispielantwort
Codeblock | ||||
---|---|---|---|---|
|
...
{ |
...
"jsonrpc": "2.0", |
...
"result": { |
...
"num": |
...
25, "content": { |
...
"81": { |
...
"__id__": " |
...
81", |
...
"LC__UNIVERSAL__TITLE": " |
...
demo-smbox5", |
...
"LC__CMDB__ |
...
CATG__ |
...
GLOBAL_ |
...
CATEGORY": " |
...
",
|
...
"LC__CMDB__CATG__ |
...
FREQUENCY": [ |
...
|
...
{ "__id__": null, |
...
"value": |
...
"" } ], "LC__CMDB_CATG__MEMORY_CAPACITY": [ { "__id__": null, |
...
"value": " |
...
"
|
...
} ], "__index__": |
...
1 }, "87": { "__id__": " |
...
87", |
...
"LC__UNIVERSAL__TITLE": |
...
"HV-210-R1-PF-A", |
...
"LC__CMDB__ |
...
CATG__ |
...
GLOBAL_ |
...
CATEGORY": " |
...
",
|
...
"LC__CMDB__CATG__ |
...
FREQUENCY": [ |
...
{ "__id__": null, |
...
|
...
shd.query.relation
Beschreibung
Holt alle Elemente eines Parent-Objects.
Parameter
...
Rückgabewert
...
Beispielaufruf
Codeblock | ||||
---|---|---|---|---|
| ||||
{ "method": "shd.query.relation", "params": { "apikey": "24174j3tqj" "value": "" } ], "LC__CMDB_CATG__MEMORY_CAPACITY": [ { "__id__": null, "value": "" } ], "__index__": 8 }, [...] }, "headers": [ { "const": "LC__UNIVERSAL__TITLE", "title": "Bezeichnung" }, { "const": "LC__CMDB__CATG__GLOBAL_CATEGORY", "title": "Kategorie" } [...] ], "count": 27, "obj_idpage": "800", "display_rows": "25",null "page": "0"}, "columnsid": [1 { "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" } |
Beispielantwort
Codeblock | ||||
---|---|---|---|---|
| ||||
{ "jsonrpc": "2.0", "result": { "num": 25, "content": { "81": { "__id__": "81", "LC__UNIVERSAL__TITLE": "demo-smbox5", "LC__CMDB__CATG__GLOBAL_CATEGORY": "", "LC__CMDB__CATG__FREQUENCY": [ { "__id__": null, "value": "" } ], "LC__CMDB_CATG__MEMORY_CAPACITY": [ { "__id__": null, "value": "" } ], "__index__": 1 }, "87": { "__id__": "87", "LC__UNIVERSAL__TITLE": "HV-210-R1-PF-A", "LC__CMDB__CATG__GLOBAL_CATEGORY": "", "LC__CMDB__CATG__FREQUENCY": [ { "__id__": null, "value": "" } ], "LC__CMDB_CATG__MEMORY_CAPACITY": [ } } |
shd.query.category
Beschreibung
Abfragen der Eigenschaften von Kategorien.
Parameter
Parameter | Typ | Version |
---|---|---|
columns | array | ab Version 1.0 |
condition | array | ab Version 1.0 |
Rückgabewert
Wert | Typ | Version |
---|---|---|
display_rows | string | ab Version 1.0 |
content | array | ab Version 1.0 |
time | double | ab Version 1.0 |
count | int | ab Version 1.0 |
headers | array | ab Version 1.0 |
total | int | ab Version 1.0 |
page | string | ab Version 1.0 |
Beispielaufruf
Codeblock | ||||
---|---|---|---|---|
| ||||
{ "id" : "1", "version" : "2.0", "params" : { "columns" : [ { "sort" : "", "id" : "C__idCATG__": null,MEMORY-title" }, { "valuesort" : "", "id" : "C__CATG__MEMORY-unit" }, } { "sort" : ]"", "id" : "C__indexCATG__MEMORY-total_capacity": 8 } ], }, "apikey" : "1ialbgclm9", "condition" : [...] },{ "headersvalue" : ["2731", "comparison" : "=", { "property" : "C__CATG__GLOBAL-id", "constcategory" : "LCC__UNIVERSALCATG__TITLEGLOBAL", } ], "titlepage" : "Bezeichnung0" }, "method" }, : "shd.query.category" } |
Codeblock | ||||
---|---|---|---|---|
| ||||
{ "method": "shd.query.category", { "id": "1", "params": { "constdebug": "LC__CMDB__CATG__GLOBAL_CATEGORY"true", "display_rows": "50", "titlecondition": "Kategorie"[ } { [...] ], "comparison": "=", "count": 27, "pageproperty": "0map_id", "display_rows": null }"category": "C__CATG__MAP", "id": 1 } } |
shd.query.category
Beschreibung
Abfragen der Eigenschaften einer bestimmten Kategorie.
Parameter
...
Rückgabewert
...
Beispielaufruf
Codeblock | ||||
---|---|---|---|---|
| ||||
{ "idvalue" : "1",6" } ], "versionapikey" : "2.0365478025", "params" : { "columns" : [ { "sort" : "", "width": "140", "id" : "C__CATG__MEMORYLIVESTATUS-titlecheck_command", }, { "sort" : "", "id" : "C__CATG__MEMORY-unit" }, }, { "sort" : "", "idwidth" : "C__CATG__MEMORY-total_capacity"140", } ], "apikeyid" : "1ialbgclm9", "condition" : [ "C__CATG__LIVESTATUS-check_interval", { "valuesort" : "2731", "comparison" : "=", } "property" : "C__CATG__GLOBAL-id" ], "categorylanguage" : "C__CATG__GLOBAL" }de", ], "page" : "0" }, "methodjsonrpc" : "shd2.query.category0" } |
Beispielantwort
Codeblock | ||||
---|---|---|---|---|
| ||||
{ "jsonrpc": "2.0", "result": { "display_rows": "0", "content": { "355": { "C__CATG__MEMORY-unit": { "3": { "value": "GB", "__id__": "3" } }, "__id__": "355", "__index__": "0", "C__CATG__MEMORY-total_capacity": "0", "C__CATG__MEMORY-title": { "6": { "value": "LRDIMM", "__id__": "6" } } }, "356": { "C__CATG__MEMORY-unit": { "3": { "value": "GB", "__id__": "3" } }, "__id__": "356", "__index__": "0", "C__CATG__MEMORY-total_capacity": "0", "C__CATG__MEMORY-title": { "6": { "value": "LRDIMM", "__id__": "6" } } }, "357": { "C__CATG__MEMORY-unit": { "3": { "value": "GB", "__id__": "3" } }, "__id__": "357", "__index__": "0", "C__CATG__MEMORY-total_capacity": "0", "C__CATG__MEMORY-title": { "6": { "value": "LRDIMM", "__id__": "6" } } } [...] }, "time": 0.16799998283386, "count": 16, "headers": [ { "const": "C__CATG__MEMORY-title", "title": "Title" }, { "const": "C__CATG__MEMORY-unit", "title": "Memory unit" }, { "const": "C__CATG__MEMORY-total_capacity", "title": "Total capacity" } ], "total": 16, "page": "0" }, "id": "1" } |
...