<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[JSON-RPC: Kategorie anlegen]]></title><description><![CDATA[<p dir="auto">Hallo,</p>
<p dir="auto">wenn ich ein Objekt (Server) per JSON-Request anlege, klappt das. Auch eine Kategorie wie "CPU" ist kein Problem. Nur bei "Host address" wirft es einen Fehler.<br />
Auszug Log:<br />
–----------------------------------------------------------<br />
_[2014-09-08 16:37:19] INFO: JSON-RPC controller started for request: array (  'method' =&gt; 'cmdb.category.create',  'params' =&gt;  array (    'apikey' =&gt; 'XXXXXXX',    'catgID' =&gt; 'C__CATG__IP',    'objID' =&gt; '151',    'data' =&gt;    array (      'hostname' =&gt; 'serverhostname',    ),  ),  'id' =&gt; 2,  'version' =&gt; '2.0',)</p>
<p dir="auto">[2014-09-08 16:37:19] INFO: Using previous authorizaton from systemapi (Testsystem)</p>
<p dir="auto">[2014-09-08 16:37:19] INFO: Retrieving data from: category</p>
<p dir="auto">[2014-09-08 16:37:19] INFO: Data: array (<br />
)</p>
<p dir="auto">[2014-09-08 16:37:19] INFO: Transmitting response: {"jsonrpc":"2.0","result":{"success":false,"message":"Error while creating category entry"},"id":2}</p>
<p dir="auto">[2014-09-08 16:37:19] INFO: Request with id 2 transmitted._ –----------------------------------------------------------</p>
<p dir="auto">Hat jemand eine Idee?<br />
Danke.</p>
<p dir="auto">Gruß<br />
Dirk</p>
]]></description><link>https://community.i-doit.com/topic/2542/json-rpc-kategorie-anlegen</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Jul 2026 21:43:15 GMT</lastBuildDate><atom:link href="https://community.i-doit.com/topic/2542.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 08 Sep 2014 14:48:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to JSON-RPC: Kategorie anlegen on Tue, 09 Sep 2014 06:43:24 GMT]]></title><description><![CDATA[<p dir="auto">Du hast recht!<br />
Es funktioniert mit den ergänzten Attributen.<br />
Nach etwas Rumprobieren festgestellt, dass es dem System genügt, wenn man den "net_type", also IPv4 oder IPv6 zuweist. Das deckt sich auch damit, dass er sich beim manuellen Anlegen mit dem Hostnamen begnügt hat, da er standardmäßig als Netztyp IPv4 zuweist.<br />
Danke!</p>
<p dir="auto">Gruß<br />
Dirk</p>
]]></description><link>https://community.i-doit.com/post/11006</link><guid isPermaLink="true">https://community.i-doit.com/post/11006</guid><dc:creator><![CDATA[dirk74]]></dc:creator><pubDate>Tue, 09 Sep 2014 06:43:24 GMT</pubDate></item><item><title><![CDATA[Reply to JSON-RPC: Kategorie anlegen on Mon, 08 Sep 2014 15:31:15 GMT]]></title><description><![CDATA[<p dir="auto">Hallo Dirk,</p>
<p dir="auto">nur weil in der Doku "optional" steht, heisst es nicht, dass es auch so ist! Ich hatte versucht nur die IP einzutragen, musste allerdings auch net_type und/oder (?) ipv4_assignment zusaetzlich angeben, da es sonst nicht funktioniert hat.</p>
<p dir="auto">Hast Du es mit den zusaetzlichen Angaben denn ausprobiert?</p>
<p dir="auto">Gruss,<br />
jkondek</p>
]]></description><link>https://community.i-doit.com/post/11001</link><guid isPermaLink="true">https://community.i-doit.com/post/11001</guid><dc:creator><![CDATA[jkondek]]></dc:creator><pubDate>Mon, 08 Sep 2014 15:31:15 GMT</pubDate></item><item><title><![CDATA[Reply to JSON-RPC: Kategorie anlegen on Mon, 08 Sep 2014 15:09:30 GMT]]></title><description><![CDATA[<p dir="auto">Hallo jkondek,</p>
<p dir="auto">Du bist ja wieder superschnell!<br />
Die zusätzlichen Attribute habe ich weggelassen, da sie in der Doku als optional markiert sind.<br />
Hier nochmal angepasst:</p>
<p dir="auto"><em>request: array (  'method' =&gt; 'cmdb.category.create',  'params' =&gt;  array (    'apikey' =&gt; 'XXXXXXX',    'objID' =&gt; '157',    'catgID' =&gt; '47',    'data' =&gt;    array (      'hostname' =&gt; 'serverhostname',    ),  ),  'id' =&gt; 2,  'version' =&gt; '2.0',)</em><br />
Leider wieder ein Fehler.</p>
<p dir="auto">Gruß<br />
Dirk</p>
]]></description><link>https://community.i-doit.com/post/11000</link><guid isPermaLink="true">https://community.i-doit.com/post/11000</guid><dc:creator><![CDATA[dirk74]]></dc:creator><pubDate>Mon, 08 Sep 2014 15:09:30 GMT</pubDate></item><item><title><![CDATA[Reply to JSON-RPC: Kategorie anlegen on Mon, 08 Sep 2014 14:54:42 GMT]]></title><description><![CDATA[<p dir="auto">Hallo Dirk,</p>
<p dir="auto">bei mir funktioniert folgender Aufruf:<br />
wget -O- –no-check-certificate -o /dev/null $CMDB_API_URL --header 'Content-Type: application/json-rpc' --post-data "{"jsonrpc": "2.0", "method": "cmdb.category.create","params": {"apikey": "$CMDB_API_KEY", "objID": "$id", "catgID": "47", "data":{"net_type": "1", "ipv4_assignment": "2", "ipv4_address": "$ip"}}}"</p>
<p dir="auto">Eventuell musst Du noch net_type, ipv4_assignment und ipv4_address angeben?</p>
<p dir="auto">Gruss,<br />
jkondek</p>
]]></description><link>https://community.i-doit.com/post/10999</link><guid isPermaLink="true">https://community.i-doit.com/post/10999</guid><dc:creator><![CDATA[jkondek]]></dc:creator><pubDate>Mon, 08 Sep 2014 14:54:42 GMT</pubDate></item></channel></rss>