Community
    • Categories
    • Recent
    • Popular
    • Users
    • Search
    • Register
    • Login

    Get all items from field

    Scheduled Pinned Locked Moved Development
    2 Posts 1 Posters 703 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D Offline
      denniswoot
      last edited by

      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....

      1 Reply Last reply Reply Quote 0
      • D Offline
        denniswoot
        last edited by

        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"
        	
        }
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post