Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-12533

zabbix3 api error 32500 No permission to referred object

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Major Major
    • 3.2.7
    • 3.2.6
    • API (A), Server (S)
    • None

      hello ,

      I 'am having a problem with the API in version 3.2.4

      I try to create a host throuht the API with this parameters :

      $params = array(
      'host'=>$name,
      'interfaces'=>array(
      array(
      'ip'=>$ip,
      'port'=>'10050',
      'type'=> 1,
      'main'=> 1,
      'useip'=> 1,
      'dns'=> ""
      )
      ),
      'groups'=>$groups,
      'templates'=>$id_templates,
      'inventory_mode'=>0,
      'inventory'=>array (
      'buzz'=>$user,
      'macaddress_b'=>' test Depuis zoogle'
      )
      );

      $api->hostcreate($params);
      $result=$api->getResponse();
      return array('result_zabbix'=>json_decode($result,true));

      But , it returns "error 32500 No permission to referred object"

      If i try this with a zabbix server 2.4.7, it return ok .

      I can't find what is the wrong parameter as the api doesn't seem to have change that much .

      any help ? please

      Thanks in advance ?

      Thierry

            Unassigned Unassigned
            tid008 thierry regis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: