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" |
...
: |
...
shd.query.relation
Beschreibung
Holt alle Elemente eines Parent-Objects.
Parameter
...
Rückgabewert
...
Beispielaufruf
"HV-210-R1-PF-A",
"LC__CMDB__CATG__GLOBAL_CATEGORY": "",
"LC__CMDB__CATG__FREQUENCY": [
{
"__id__": null,
"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,
"page": "0",
"display_rows": null
},
"id": 1
}
} |
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__CATG__MEMORY-title"
},
{
"sort" : "",
"id" : "C__CATG__MEMORY-unit"
},
{
"sort" : "",
"id" : "C__CATG__MEMORY-total_capacity"
}
],
"apikey" : "1ialbgclm9",
"condition" : [
{
"value" : "2731",
"comparison" : "=",
"property" : "C__CATG__GLOBAL-id",
"category" : "C__CATG__GLOBAL"
}
],
"page" : "0"
},
"method" : "shd.query.category"
} |
Codeblock | ||||
---|---|---|---|---|
| ||||
{
"method": "shd.query.category",
"id": "1",
"params": {
"debug":"true",
"display_rows": "50",
"condition": [
{
"comparison": "=",
"property": "map_id",
"category": "C__CATG__MAP",
"value": "6"
}
],
"apikey": "365478025",
"columns": [
{
"width": "140",
"id": "C__CATG__LIVESTATUS-check_command",
"sort": ""
},
{
"width": "140",
"id": "C__CATG__LIVESTATUS-check_interval",
"sort": ""
}
],
"language": "de",
"page": "0"
},
"jsonrpc": "2.0"
} |
Beispielantwort
Codeblock | ||||
---|---|---|---|---|
| ||||
{ "methodjsonrpc": "shd2.query.relation0", "paramsresult": { "apikeydisplay_rows": "24174j3tqj0", "obj_idcontent": "80", { "display_rows355": "25",{ "page": "0", "columnsC__CATG__MEMORY-unit": [{ { "3": { "id": "C__CATG__GLOBAL-title", "widthvalue": "50GB", "sort": "" "__id__": "3" }, { } "id": "C__CATG__GLOBAL-category" }, "width__id__": "50355", "sort__index__": "0", } "C__CATG__MEMORY-total_capacity": "0", { "C__CATG__MEMORY-title": { "id": "C__CATG__CPU-frequency", "6": { "width": "50", "sortvalue": "LRDIMM", }, {"__id__": "6" "id": "C__CATG__MEMORY-capacity", } "width": "50", } }, "sort": "" "356": { } ], "debugC__CATG__MEMORY-unit": { true, "language": "en" }, "id3": 1,{ "version": "2.0" } |
Beispielantwort
Codeblock | ||||
---|---|---|---|---|
| ||||
{ "jsonrpc": "2.0", "result": { "numvalue": 25, "GB", "content": { "81__id__": "3" { "__id__": "81", } "LC__UNIVERSAL__TITLE": "demo-smbox5" }, "LC__CMDBid__CATG__GLOBAL_CATEGORY": "356", "LC__CMDB__CATG__FREQUENCY": [ index__": "0", { "C__CATG__MEMORY-total_capacity": "0", "C__idCATG__MEMORY-title": null,{ "value6": ""{ } "value": "LRDIMM", ], "LC__CMDBid_CATG__MEMORY_CAPACITY": ["6" } { } "__id__": null, }, "357": { "value": "" "C__CATG__MEMORY-unit": { } "3": { ], "__index__value": 1"GB", }, "87__id__": {"3" "__id__": "87", } "LC__UNIVERSAL__TITLE": "HV-210-R1-PF-A" }, "LC__CMDB__CATGid__GLOBAL_CATEGORY": "357", "LC__CMDBindex__CATG__FREQUENCY": ["0", { "C__CATG__MEMORY-total_capacity": "0", "C__idCATG__MEMORY-title": null,{ "value6": ""{ } "value": "LRDIMM", ], "LC__CMDB_CATGid__MEMORY_CAPACITY": [ "6" } { } } "__id__": null, [...] }, "valuetime": ""0.16799998283386, "count": 16, "headers": [ } { ], ""const": "C__indexCATG__": 8 }MEMORY-title", [...] "title": "Title" }, "headers": [ }, { "const": "LCC__UNIVERSALCATG__TITLEMEMORY-unit", "title": "BezeichnungMemory unit" }, { "const": "LCC__CMDB__CATG__GLOBALMEMORY-total_CATEGORYcapacity", "title": "KategorieTotal capacity" } [...] ], "counttotal": 2716, "page": "0", "display_rows": null }, "id": "1 }" } |