Seitenverzeichnis:
...
shd.objects.create
Beschreibung
Funktion für das massenhafte Anlegen von Objekten.
Beispielaufruf
Codeblock | ||||
---|---|---|---|---|
| ||||
{ "method": "shd.objects.create", "params": { "apikey": "1ialbgclm9", "obj_type_id": "C__OBJTYPE__SERVER", "objects": [ { "C__CATG__GLOBAL-id": "?1", "C__CATG__GLOBAL-title": "DEMO Dingens 12", "C__CATG__GLOBAL-status": "2", "C__CATG__GLOBAL-cmdb_status": "4", "C__CATG__GLOBAL-description": "Ein Beschreibungstext", "C__CATG__GLOBAL-purpose": "3", "C__CATG__GLOBAL-category": "7", "C__CATG__FORMFACTOR-width": "75", "C__CATG__FORMFACTOR-height": "90", "C__CATG__FORMFACTOR-depth": "190", "C__CATG__CPU-cores": "9", "C__CATG__CPU-frequency": "4" }, { "C__CATG__GLOBAL-title": "DEMO Dingens 16", "C__CATG__GLOBAL-cmdb_status": "7", "C__CATG__GLOBAL-description": "Ein Beschreibungstext", "C__CATG__GLOBAL-purpose": "3", "C__CATG__GLOBAL-category": "7", "C__CATG__FORMFACTOR-width": "75", "C__CATG__FORMFACTOR-height": "90", "C__CATG__FORMFACTOR-depth": "190", "C__CATG__CPU-cores": "9", "C__CATG__GLOBAL-status": "2", "C__CATG__CPU-frequency": "4" } ], "debug": true, "language": "en" }, "id": 1, "version": "2.0" } |
...
shd.objects.update
Beschreibung
Funktion für das massenhafte Editieren von Objekten.
Beispielaufruf
Codeblock | ||||
---|---|---|---|---|
| ||||
{ "method": "shd.objects.createupdate", "params": { "apikey": "1ialbgclm9", "objects": [ { "C__CATG__GLOBAL-obj_id": "2741", "C__CATG__GLOBAL-title"objects":[ "DEMO Dingens 12", "C__CATG__GLOBAL-status": "2",{ "C__CATG__GLOBALCPU-cmdb_statusid": "455", "C__CATG__GLOBALCPU-descriptiontitle": "EinAMD Beschreibungstext",Athlon 64 "C__CATG__GLOBAL-purpose": "3", X2 7777+", "C__CATG__GLOBALCPU-categoryfrequency": "7", "C__CATG__FORMFACTOR-width": "75", "C__CATG__FORMFACTOR-height": "90", "C__CATG__FORMFACTOR-depth": "190", "2", "C__CATG__CPU-cores": "92", "C__CATG__CPU-frequencymanufacturer": "4AMD" }, { "C__CATG__GLOBAL-id": "2742", "C__CATG__GLOBALCPU-title": "DEMOAMD DingensAthlon 16",64 "C__CATG__GLOBAL-cmdb_status": "7", X2 3800+", "C__CATG__GLOBALCPU-descriptionfrequency": "Ein Beschreibungstext", "C__CATG__GLOBAL-purpose": "3", "C__CATG__GLOBAL-category": "7", "2", "C__CATG__FORMFACTOR-width": "75", "C__CATG__FORMFACTOR-height": "90", "C__CATG__FORMFACTOR-depth": "190", "C__CATG__CPU-cores": "9", "C__CATG__GLOBAL-status": "2", "C__CATG__CPU-frequencymanufacturer": "4AMD" } ], "debug": true, "language": "en" }, "id": 1, "version": "2.0" } |
Beispielantwort
Codeblock | ||||
---|---|---|---|---|
| ||||
{ "jsonrpc": "2.0", "result": true, "id": 1 } |
...