...
...
...
...
Untergeordnete Seiten (Anzeige untergeordneter Seiten) |
---|
Seitenverzeichnis:
Inhalt | ||||||
---|---|---|---|---|---|---|
|
...
shd.objects.create
Beschreibung
Diese Funktion ist 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
Diese Funktion ist für das massenhafte Editieren von Objekten.
Beispielaufruf
Codeblock | ||||
---|---|---|---|---|
| ||||
{ "method": "shd.objects.createupdate", "params": { "apikeyid": "1ialbgclm91", "objectsparams": [ { "C__CATG__GLOBAL-idapikey": "27411ialbgclm9", "C__CATG__GLOBAL-title"objects": "DEMO Dingens 12",[ { "C__CATG__GLOBAL-status": "2", "C__CATG__GLOBAL-cmdb_statustitle": "4", "C__CATG__GLOBAL-description": "Ein Beschreibungstext"Test-Server 015", "C__CATG__GLOBAL-purposecmdb_status": "3Geliefert", "C__CATG__GLOBAL-categoryid": "7", "C__CATG__FORMFACTOR-width": "75", 69" "C__CATG__FORMFACTOR-height": "90", "C__CATG__FORMFACTOR-depth": "190", "C__CATG__CPU-cores": "9", "C__CATG__CPU-frequency": "4" }, { "C__CATG__GLOBAL-idtitle": "2742", "C__CATG__GLOBAL-title": "DEMO Dingens 16Test-Server 016", "C__CATG__GLOBAL-cmdb_statusid": "770", "C__CATG__GLOBAL-description": "Ein Beschreibungstext",} "C__CATG__GLOBAL-purpose": "3", ], "C__CATG__GLOBAL-category"language": "7de", "C__CATG__FORMFACTOR-width": "75"}, "C__CATG__FORMFACTOR-height"jsonrpc": "902.0", } |
Beispielantwort
Codeblock | ||||
---|---|---|---|---|
| ||||
{ "C__CATG__FORMFACTOR-depth"id": "1901", "C__CATG__CPU-cores"jsonrpc": "92.0", "C__CATG__GLOBAL-statusresult": "2",{ "C__CATG__CPU-frequency"message": "4" } ]objects.update.success", "debugresponse": true, "languagecurrent_date": "en2020-02-14" }, "id": 1, "version": "2.0" } |
Beispielantwort
Codeblock | ||||
---|---|---|---|---|
| ||||
{
"jsonrpc": "2.0",
"result": true,
"id": 1
} |
Parameter
Parameter | Typ | Beschreibung | Version |
---|---|---|---|
objects | array | Array von Objekten, welche aktualisiert werden sollen | ab Version 1.0 |
...