Seitenverzeichnis:
Inhalt |
---|
maxLevel | 2 |
---|
indent | 10px |
---|
style | square |
---|
|
...
cmdb.category.read
Beschreibung
Ist eine Hilfsfunktion zum duplizieren von ObjektenAlle Wartungen eines Objektes auslesen.
Beispielaufruf
Codeblock |
---|
|
{
"jsonrpc": "2.0",
"version": "2.0",
"id": 1,
"method": "shdcmdb.objectcategory.duplicateread",
"params": {
"apikey": "1ialbgclm9dzr7u7tu",
"objID": 80593,
"category": "C__CATG__UKD_MAINTENANCE"
}
} |
Beispielantwort
Codeblock |
---|
|
{
"id": [1,
"jsonrpc": "2.0",
"736result",: [
{
"741", "id": "12722",
], "objID": "9",
"category": [ "title": {
"1", "89id": "5",
"145", "title": "System neugestartet",
"146", "const": "147SYSTEM",
"149", "title_lang": "System neugestartet"
"135"},
"136time": "18.03.2020 - 11:02",
], "export_specific_catguser": "on",{
"custom_category": [ "8"
"id": "9",
], "update_globalstitle": "1admin ",
"object_titlesysid": "new TitleSYSID_1280838787",
"duplicate_options": "0", "languagetype": "en"C__OBJTYPE__PERSON",
}, "id": 1, "versiontype_title": "2.0"
} |
Beispielantwort
Codeblock |
---|
|
{Persons"
"jsonrpc": "2.0", },
"result": { "successticket": true"1137509",
"responseinformation": {null
}
"imported": [
"5147",
"5148",
"5149"
]
},
"message": null
},
"id": 1
} |
Parameter
...
Parameter
Parameter | Typ | Beschreibung | Version |
---|
objID | int | Objekt-ID des betreffenden Objektes | ab Version 1.0 |
category | string | Konstante der entsprechenden Kategorie. Die Konstante der Wartungs-Kategorie lautet: "C__CATG__UKD_MAINTENANCE" | ab Version 1.0 |
Rückgabewert
Wert | Typ | Beschreibung | Version |
---|
id | int | ID des Kategorie-Eintrages | ab Version 1.0 |
objID | int | Objekt-ID des betreffenden Objektes | ab Version 1.0 |
title | object | Zugewiesene Titel-Referenz | ab Version 1.0 |
categorystringint | ab Version 1.0 | export_specific_catg | stringstring | Zeitpunkt, an dem der Eintrag angelegt wurde | ab Version 1.0 |
user |
custom_category | intobject | Referenz zum Nutzer, welcher den Eintrag angelegt hat | ab Version 1.0 |
ticket |
update_globals | string | Ticket-Nummer | ab Version 1.0 |
object_titleinformation | string | Weitere Informationen zur Wartung | ab Version 1.0 |
duplicate_options | bool | ab Version 1.0 |
Rückgabewert
...
cmdb.category.create
Beschreibung
Gibt alle Objekte zurück die in einer Beziehung zum angegebenen Objekt stehen.
Beispielaufruf
...
...
cmdb.category.create
Beschreibung
Legt eine neue Wartung an.
Beispielaufruf
Codeblock |
---|
|
{
"jsonrpc": "2.0",
"version": "2.0",
"id": 1,
"method":"cmdb.category.create",
"params": {
"apikey": "1ialbgclm9", "apikey": "dzr7u7tu",
"objID": 80593,
"category": "C__CATG__UKD_MAINTENANCE",
"data": {
"user": 8,
"ObjIdtitle": "583"5,
"down_lvl "time": "12020-03-19 22:44:00",
"up_lvlticket": "11137123",
}
}
} |
Beispielantwort
Codeblock |
---|
|
{
"columnsid": {1,
"jsonrpc": "2.0",
"C__OBJTYPE__ALL": [
"result": {
"id": 9,
"idmessage": "C__CATG__GLOBAL-title"
Category entry successfully created.",
"success": true
},
{
"id":
} |
Parameter
Parameter | Typ | Beschreibung | Version |
---|
objID | int | Objekt-ID des betreffenden Objektes | ab Version 1.0 |
category | string | Konstante der entsprechenden Kategorie. Die Konstante der Wartungs-Kategorie lautet: "C__CATG__ |
...
UKD_MAINTENANCE" | ab Version 1.0 |
title | int | ID der Titel-Referenz | ab Version 1.0 |
time | string | Zeitpunkt der Wartung | ab Version 1.0 |
user | int | ID des eintragenden Nutzers
| ab Version 1.0 |
ticket | array | Optional: Ticket-Nummer | ab Version 1.0 |
information | string | Optional: Weitere Informationen zur Wartung | ab Version 1.0 |
Rückgabewert
Wert | Typ | Beschreibung | Version |
---|
success | boolean | Gibt an, ob die Aktion erfolgreich ausgeführt wurde | ab Version 1.0 |
message | string | Entsprechende Rückgabemeldung | ab Version 1.0 |
...
cmdb.category.update
Beschreibung
Gibt alle Objekte zurück die in einer Beziehung zum angegebenen Objekt stehen.
Beispielaufruf
Codeblock |
---|
|
{
"jsonrpc": "2.0",
"version": "2.0",
"id": 1,
"method":"cmdb.category.update",
"params": {
"apikey": "dzr7u7tu",
"objID": 80593,
"category": "C__CATG__UKD_CPU-frequencyMAINTENANCE",
"data": {
"id": 6,
"user": 7,
"title": 5,
"time": "2020-03-19 22:22:00"
}
}
}} |
Beispielantwort
Codeblock |
---|
|
{
"id": 1,
"jsonrpc": "2.0",
], "result": {
"C__OBJTYPE__SERVERsuccess": [true,
"message": "Category entry successfully saved. [This method is {deprecated and will be removed in a feature release. Use "id": "C__CATG__CPU-frequency"'cmdb.category.save' instead.]"
}
]
},
"language": "en"
},
"id": 1,
"version": "2.0"
} |
Beispielantwort
Codeblock |
---|
|
{
"jsonrpc": "2.0",
"result": {
"33": {
"data": {
"isys_obj__id": "584",
"isys_obj__title": "ACME Headquarter (HQ) ist Standort von 1.11 Copy Room",
"isys_obj_type__id": "60",
"isys_obj_type__title": "Gebäude",
"isys_catg_relation_list__isys_obj__id__master": "33",
"isys_catg_relation_list__isys_obj__id__slave": "583",
"isys_catg_relation_list__isys_obj__id": "584",
"related": "33",
"related_title": "ACME Headquarter (HQ)",
"related_type_title": "Gebäude",
"related_type": "3",
"related_cmdb_status_id": null,
"related_cmdb_status_title": "In Betrieb",
"up_lvl": 1,
"category": {
"C__CATG__GLOBAL-title": "ACME Headquarter (HQ)",
"C__CATG__GLOBAL-description": "",
"C__CATG__GLOBAL-status": "Normal"
}
},
"children": false
},
"237": {
"data": {
"isys_obj__id": "586",
"isys_obj__title": "IT Operations wird benutzt von 1.11 Copy Room",
"isys_obj_type__id": "60",
"isys_obj_type__title": "Personengruppen",
"isys_catg_relation_list__isys_obj__id__master": "237",
"isys_catg_relation_list__isys_obj__id__slave": "583",
"isys_catg_relation_list__isys_obj__id": "586",
"related": "237",
"related_title": "IT Operations",
"related_type_title": "Personengruppen",
"related_type": "54",
"related_cmdb_status_id": null,
"related_cmdb_status_title": "In Betrieb",
"up_lvl": 1,
"category": {
"C__CATG__GLOBAL-title": "IT Operations",
"C__CATG__GLOBAL-description": "",
"C__CATG__GLOBAL-status": "Normal"
}
},
"children": false
},
[…]
},
"id": 1
} |
Parameter
...
Die Anzahl der Elemente des Views
...
Rückgabewert
...
cmdb.category.update
Beschreibung
Gibt alle Objekte zurück die in einer Beziehung zum angegebenen Objekt stehen.
Beispielaufruf
Codeblock |
---|
|
{
"method": "shd.object.relation",
"params": {
"apikey": "1ialbgclm9",
"ObjId": "583",
"down_lvl": "1",
"up_lvl": "1",
"columns": {
"C__OBJTYPE__ALL": [
{
"id": "C__CATG__GLOBAL-title"
},
{
"id": "C__CATG__GLOBAL-description"
},
{
"id": "C__CATG__GLOBAL-status"
},
{
"id": "C__CATG__CPU-frequency"
}
],
"C__OBJTYPE__SERVER": [
{
"id": "C__CATG__CPU-frequency"
}
]
},
"language": "en"
},
"id": 1,
"version": "2.0"
} |
Beispielantwort
Codeblock |
---|
|
{
"jsonrpc":"2.0",
"result":{
"583":{
"data":{
"related_title":"1.11 Copy Room",
"related_type_title":"Raum",
"isys_obj_type__title":"Raum",
"related_type":"26",
"related_cmdb_status_id":null,
"related_cmdb_status_title":"In Betrieb",
"related":"583",
"category":{
"C__CATG__GLOBAL-title":"1.11 Copy Room",
"C__CATG__GLOBAL-description":"",
"C__CATG__GLOBAL-status":"Normal"
}
},
"children":false
},
"33":{
"data":{
"isys_obj__id":"584",
"isys_obj__title":"ACME Headquarter (HQ) ist Standort von 1.11 Copy Room",
"isys_obj_type__id":"60",
"isys_obj_type__title":"Geb\u00e4ude",
"isys_catg_relation_list__isys_obj__id__master":"33",
"isys_catg_relation_list__isys_obj__id__slave":"583",
"isys_catg_relation_list__isys_obj__id":"584",
"related":"33",
"related_title":"ACME Headquarter (HQ)",
"related_type_title":"Geb\u00e4ude",
"related_type":"3",
"related_cmdb_status_id":null,
"related_cmdb_status_title":"In Betrieb",
"up_lvl":1,
"category":{
"C__CATG__GLOBAL-title":"ACME Headquarter (HQ)",
"C__CATG__GLOBAL-description":"",
"C__CATG__GLOBAL-status":"Normal"
}
},
"children":false
},
[…]
},
"id":1
} |
Parameter
...
Die Anzahl der Elemente des Views
...
Rückgabewert
...
cmdb.category.delete
Beschreibung
Gibt alle Beziehungen zurück die beim löschen, gelöscht werden.
Beispielaufruf
Codeblock |
---|
|
{
"method": "shd.object.check_delete",
"id": "1",
"params": {
"obj_id": "157",
"apikey": "1ialbgclm9",
"language": "de"
},
"jsonrpc": "2.0"
} |
Beispielantwort
Codeblock |
---|
|
{
"id": "1",
"jsonrpc": "2.0",
"result": {
"data": [
{
"title": "Staff hat Mitglied Adam Riese",
"obj_id": "157"
},
{
"title": "Staff hat Mitglied Anna Bolika",
"obj_id": "157"
},
{
"title": "Staff hat Mitglied Falk Narei",
"obj_id": "157"
},
{
"title": "Staff hat Mitglied Hans Olo",
"obj_id": "157"
},
{
"title": "Staff hat Mitglied Helga Inbrunst",
"obj_id": "157"
},
{
"title": "Staff hat Mitglied Klaus Diemaus",
"obj_id": "157"
},
{
"title": "Staff hat Mitglied Lukas Himmelsläufer",
"obj_id": "157"}
} |
Parameter
Parameter | Typ | Beschreibung | Version |
---|
objID | int | Objekt-ID des betreffenden Objektes | ab Version 1.0 |
category | string | Konstante der entsprechenden Kategorie. Die Konstante der Wartungs-Kategorie lautet: "C__CATG__UKD_MAINTENANCE" | ab Version 1.0 |
title | int | ID der Titel-Referenz | ab Version 1.0 |
time | string | Zeitpunkt der Wartung | ab Version 1.0 |
user | int | ID des eintragenden Nutzers | ab Version 1.0 |
ticket | string | Ticket-Nummer | ab Version 1.0 |
information | string | Weitere Informationen zur Wartung | ab Version 1.0 |
Rückgabewert
Wert | Typ | Beschreibung | Version |
---|
success | boolean | Gibt an, ob die Aktion erfolgreich ausgeführt wurde | ab Version 1.0 |
message | string | Entsprechende Rückgabemeldung | ab Version 1.0 |
...
cmdb.category.delete
Beschreibung
Gibt alle Beziehungen zurück die beim löschen, gelöscht werden.
Beispielaufruf
Codeblock |
---|
|
{
"jsonrpc": "2.0",
"version": "2.0",
"id": 1,
"method":"cmdb.category.create",
"params": {
"apikey": "dzr7u7tu",
},
"objID": 80593,
{ "title"category": "Staff hat Mitglied Lutz Sensemann",C__CATG__UKD_MAINTENANCE",
"id": 8
}
} |
Beispielantwort
Codeblock |
---|
|
{
"obj_id": 1,
"157jsonrpc": "2.0",
"result": {
}, "success": true,
[...]
]
}
} |
Parameter
...
"message": "Category entry '8' successfully deleted"
}
} |
Parameter
Parameter | Typ | Beschreibung | Version |
---|
objID | int | Objekt-ID des betreffenden Objektes | ab Version 1.0 |
category | string | Konstante der entsprechenden Kategorie. Die Konstante der Wartungs-Kategorie lautet: "C__CATG__UKD_MAINTENANCE" | ab Version 1.0 |
id | int | ID des Kategorie-Eintrages | ab Version 1. |
3Rückgabewert
Wert | Typ | Beschreibung | Version |
---|
- | array | Ein Array von Objektensuccess | boolean | Gibt an, ob die Aktion erfolgreich ausgeführt wurde | ab Version 1.0 |
message | string | Entsprechende Rückgabemeldung | ab Version 1. | 30 |