Details

      Description

      When creating host via API inventory_mode parameter is ignoring.

      $x='{
          "jsonrpc": "2.0",
          "method": "host.create",
          "params": {
              "host": "'.$cgi->param('hostname').'",
              "interfaces": [
                               {
                                "dns" : "",
                                "ip" : "'.$cgi->param('IP').'",
                                "port" : "10050",
                                "main" : 1,
                                "useip" : 1,
                                "type" : 1
      
                              },
                              {
                                "dns" : "",
                                "ip" : "'.$cgi->param('IP').'",
                                "port" : "161",
                                "main" : 1,
                                "useip" : 1,
                                "type" : 2
      
                              }
              ],
      
              "description":"'.$newdescr.'",
              "groups": [
              '.$groups_for_adding.'
      
              ],
              "templates": [
                  {
                      "templateid": "'.$cgi->param('template').'"
                  }
              ],
              "inventory_mode": 1
      
      
      
          },
          "id": 2,
          "auth": "xxxx"
      }';
      

      When i open created host via web inventory mode in "Disabled".

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              s.vekli@hitel.ru Vekli Sergey
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: