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

    Canot read C__CMDB__SUBCAT__STORAGE__DEVICE

    Scheduled Pinned Locked Moved Operating
    1 Posts 1 Posters 1.2k Views 1 Watching
    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.
    • C Offline
      cbergmann
      last edited by

      Hi There,

      i am not able to read a value of type Storage Device:

      The Request is the following:

      Array
      (
          [method] => cmdb.category.read
          [params] => Array
              (
                  [apikey] => jcmcidaut
                  [objID] => 635
                  [category] => C__CMDB__SUBCAT__STORAGE__DEVICE
                  [language] => en
              )
      
          [id] => 14
          [version] => 2.0
      )
      

      Response is

      Array
      (
          [jsonrpc] => 2.0
          [error] => Array
              (
                  [code] => -32602
                  [message] => Invalid parameters
                  [data] => Array
                      (
                          [error] => Unable to find desired category with ID "43". Please check the delivered category ID and try again
                      )
      
              )
      
          [id] => 0
      )[/code]
      
      If I dig a little deeper i find that it fails in function prepare in file src/classes/api/model/cmdb/isys_api_model_cmdb_category.class.php because the value of $p_params[customID] is somehow set. This is not correct because C__CMDB__SUBCAT__STORAGE__DEVICE is no custom Class.
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post