Seitenverzeichnis:
shd.filter.create
Parameter
Parameter | Typ | Version |
---|---|---|
title | string | ab Version 1.0 |
obj_type_id | string | ab Version 1.0 |
display_rows | string | ab Version 1.0 |
page | string | ab Version 1.0 |
empty_values | string | ab Version 1.0 |
default | string | ab Version 1.0 |
display_relations | string | ab Version 1.0 |
locked_column | string | ab Version 1.0 |
columns | array | ab Version 1.0 |
condition | ab Version 1.0 | |
context | ab Version 1.0 |
Rückgabewert
Wert | Typ | Version |
---|---|---|
filter_id | string | ab Version 1.0 |
Beispiel
Beispielaufruf | Beispielantwort |
---|---|
{ "method":"shd.filter.create", "params":{ "apikey":"1ialbgclm9", "title":"Server KAtegorie", "obj_type_id":"5", "display_rows":"50", "page":"1", "default":"true", "empty_values":"0", "locked_column":"2", "display_relations":"0", "columns":[ { "id":"670", "width":"80", "sort":"" }, { "id":"682", "width":"80", "sort":"" }, { "id":"679", "width":"50", "sort":"" }, { "id":"676", "width":"50", "sort":"" }, { "id":"630", "width":"50", "sort":"" } ], "language":"en" }, "id":1, "version":"2.0" } | { "jsonrpc":"2.0", "result":{ "message":"filter.create.erfolg", "response":{ "filter_id":"5" }, "current_date":"2017-12-22" }, "id":1 } |
shd.filter.read
Parameter
Parameter | Typ | Beschreibung | Version |
---|---|---|---|
filter_id | string | ID des zu holenden Filters | ab Version 1.0 |
obj_type_id | string | Für den Default-Filer | ab Version 1.0 |
user_id | string | ID des Benutzers | ab Version 1.0 |
count_objects | ab Version 1.0 |
Rückgabewert
Wert | Typ | Version |
---|---|---|
id | string | ab Version 1.0 |
title | string | ab Version 1.0 |
obj_type_id | string | ab Version 1.0 |
display_rows | string | ab Version 1.0 |
page | string | ab Version 1.0 |
user_id | string | ab Version 1.0 |
empty_values | string | ab Version 1.0 |
default | string | ab Version 1.0 |
display_relations | string | ab Version 1.0 |
columns | array | ab Version 1.0 |
Beispiel
Beispielaufruf | Beispielantwort |
---|---|
{ "method": "shd.filter", "params": { "apikey": "20b61krclh", "filter_id": "3", "count_objects": true, "language": "en" }, "id": 1, "version": "2.0" } | { "jsonrpc":"2.0", "result":{ "shd_filter__id":"3", "shd_filter__title":"Layer 3-Net (1)", "shd_filter__obj_type_id":"31", "shd_filter__display_rows":"50", "shd_filter__page":"0", "shd_filter__user_id":"9", "shd_filter__default":"0", "shd_filter__display_relations":"0", "shd_filter__empty_values":"1", "shd_filter__columns":[ { "width":"240", "id":"C__CATG__GLOBAL-title", "sort":"" }, { "width":"100", "id":"C__CATG__GLOBAL-cmdb_status", "sort":"" }, { "width":"160", "id":"C__CATG__GLOBAL-created", "sort":"" }, { "width":"160", "id":"C__CATG__GLOBAL-changed", "sort":"" } ], "shd_filter__condition":[ ], "count":"2" }, "id":1 } |