Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.

Seitenverzeichnis: 

...

ParameterTypBeschreibungVersion

rack_id 

stringID des zu holenden Rackab Version 1.0

Rückgabewert

WertTypVersion
-Rack-Objektab Version 1.0

Beispiel 

Beispielaufruf

Beispielantwort


Codeblock
languagebash
themeRDark
{
    "method": "shd.rack.read",
    "params": {
        "apikey": "1ialbgclm9",
        "rack_id": "55",
        "language": "en"
    },
    "id": 1,
    "version": "2.0"
}



Codeblock
languagebash
themeRDark
{
    "jsonrpc": "2.0",
    "result": {
        "id": "55",
        "title": "Colo A001",
        "sysid": "RACK_00000055",
        "objecttype": "4",
        "type_title": "Schrank",
        "type_icon": "images/icons/silk/timeline_marker_rotated.png",
        "status": "2",
        "cmdb_status": "6",
        "cmdb_status_title": "In Betrieb",
        "created": "2015-02-20 16:39:36",
        "updated": "2017-03-21 11:26:20",
        "image": "http://192.168.97.41/i-doit/images/objecttypes/enclosure.png",
        "enclosure": {
            "id": "1",
            "objID": "55",
            "vertical_slots_front": "4",
            "vertical_slots_rear": "4",
            "slot_sorting": "desc",
            "description": ""
        },
        "formfactor": {
            "id": "1",
            "objID": "55",
            "formfactor": {
                "id": "1",
                "title": "19\"",
                "const": "C__FORMFACTOR_TYPE__19INCH",
                "title_lang": "19\""
            },
            "rackunits": "47",
            "unit": {
                "id": "1",
                "title": "mm",
                "const": "C__DEPTH_UNIT__MM",
                "title_lang": "LC__DEPTH_UNIT__MM"
            },
            "width": {
                "title": "800"
            },
            "height": {
                "title": "2200"
            },
            "depth": {
                "title": "1200"
            },
            "weight": [],
            "weight_unit": {
                "id": "1",
                "title": "g",
                "const": "C__WEIGHT_UNIT__G",
                "title_lang": "g"
            },
            "description": ""
        },
        "devices": {
            "2476": {
                "id": "2476",
                "title": "OpenStack Blade Enclosure A001 02",
                "type": "Blade Chassis",
                "type_id": "74",
                "formfactor": "19\"",
                "icon": "images/icons/silk/timeline_marker.png",
                "color": "#FFFFFF",
                "cmdb_color": "#EFAA43",
                "cmdb_status": "Geplant",
                "cmdb_status_id": "1",
                "height": "10",
                "option": "3",
                "insertion": "1",
                "image": "",
                "image_checksumme": "",
                "pos": "29"
            },
            "2619": {
                "id": "2619",
                "title": "OpenStack Blade Enclosure A001 01",
                "type": "Blade Chassis",
                "type_id": "74",
                "formfactor": "19\"",
                "icon": "images/icons/silk/timeline_marker.png",
                "color": "#FFFFFF",
                "cmdb_color": "#EFAA43",
                "cmdb_status": "Geplant",
                "cmdb_status_id": "1",
                "height": "10",
                "option": "3",
                "insertion": "1",
                "image": "",
                "image_checksumme": "",
                "pos": "39"
            },
          [..] 
        }
    },
    "id": 1
}


...