Get all items from field
-
Hi Guys,
I am trying to get all objects from "category": "C__CATG__OPERATING_SYSTEM". But i am not getting the correct information.I am trying to get the list of all objects in the category in the Operating system.
Adding data to the cmdb is not a problem, but getting the right information is.
This is the code that I am using :
{ "version": "2.0", "method": "cmdb.dialog.read", "params": { "apikey": "2i30sgvmvp", "category": "C__CATG__OPERATING_SYSTEM", "property": "application_type" }, "ID": "" }
This is the result.
{ "jsonrpc": "2.0", "result": [ { "id": "1", "const": "C__CATG__APPLICATION_TYPE__SOFTWARE", "title": "Software" }, { "id": "2", "const": "C__CATG__APPLICATION_TYPE__OPERATING_SYSTEM", "title": "Operating system" } ], "id": null }
The documentation is in German and is not written to well....
-
I found it how to get all times with the following code:
{ "version": "2.0", "method": "cmdb.objects.read", "params": { "filter": { "type_title": "LC__OBJTYPE__OPERATING_SYSTEM" }, "apikey": "2i30sgvmvl", "sort": "ASC" }, "id": "1" }