Community
    • Categories
    • Recent
    • Popular
    • Users
    • Search
    • Register
    • Login
    1. Home
    2. denniswoot
    3. Posts
    D
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 4
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Get all items from field

      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"
      	
      }
      
      posted in Development
      D
      denniswoot
    • 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....

      posted in Development
      D
      denniswoot
    • RE: Category from host

      @mike-vogel

      Thanks it works.! I was struggeling with cmdb.object.update, but this was not working ofc.

      Many thanks.

      One more question is there are English documentation in pdf?

      posted in Development
      D
      denniswoot
    • Category from host

      Hi,

      I am trying to update the host category from the host, but how can I managed that because we have multiple rows from the category?

      First I would like to read out all category which we have entered but this seems to be impossible?

      How I read out the object:

      "version": "2.0",
      "method": "cmdb.object.read",
      "params": { 
      	"apikey": "2i30sgvmvl",
      	"objID": "22275",
      	"type_title": "Server",
      	"category": "C__CATG__GLOBAL",
      	"title": "title"
      	
      },
      "id": "30369",
      "message": ""
      

      }

      Is there any English documentation?

      Another question I am trying to update to update the category from the object, but recieve a error. This is the code that i am using to test, but nothing works. And the IP is also not helping me at all..

      "version": "2.0",
      "method": "cmdb.object.update",
      "params": { 
      	"apikey": "2i30sgvmvl",
      	"objID": "30335",
      	"type": "C__CATG__GLOBAL",
          "objecttype": "89",
          "type_title": "Remote Management Controller"
      	
      },
      "message": "",
      "error":""
      

      }

      posted in Development
      D
      denniswoot