Versionen im Vergleich

Schlüssel

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

...

Beispielaufruf

Beispielantwort


Codeblock
languagebash
themeRDark
 {
    "method": "shd.query.read",
    "params": {
        "apikey": "1ialbgclm9",
        "obj_type_id": "5",
        "display_rows": "25",
        "page": "0",
        "columns": [
            {
                "id": "C__CATG__GLOBAL-title",
                "width": "50",
                "sort": ""
            },
            {
                "id": "C__CATG__GLOBAL-cmdb_status",
                "width": "50",
                "sort": ""
            },
            {
                "id": "C__CATG__IP-ipv4_address",
                "width": "50",
                "sort": ""
            },
            {
                "id": "C__CATG__CPU-manufacturer",
                "width": "50",
                "sort": ""
            }
        ],
        "language": "en"
    },
    "id": 1,
    "version": "2.0"
}
        



Codeblock
languagebash
themeRDark
 { 
    "jsonrpc":"2.0",
    "result":{ 
        "num":44,
        "content":{ 
            "3569":{ 
                "__id__":"3569",
                "LC__UNIVERSAL__TITLE":"backup001",
                "LC__UNIVERSAL__CMDB_STATUS":"In Betrieb",
                "LC__CMDB__CATG__IP__IPV4_ADDRESS":[ 
                    { 
                        "__id__":null,
                        "value":"10.100.20.241"
                    },
                    { 
                        "__id__":null,
                        "value":"10.100.10.241"
                    }
                ],
                "LC__CATG__STORAGE_CONTROLLER_MANUFACTURER":[ 
                    { 
                        "__id__":null,
                        "value":"Intel"
                    },
                    { 
                        "__id__":null,
                        "value":"Intel"
                    }
                ],
                "__index__":0
            },
            "3470":{ 
                "__id__":"3470",
                "LC__UNIVERSAL__TITLE":"cache001",
                "LC__UNIVERSAL__CMDB_STATUS":"In Betrieb",
                "LC__CMDB__CATG__IP__IPV4_ADDRESS":[ 
                    { 
                        "__id__":null,
                        "value":"10.100.20.221"
                    },
                    { 
                        "__id__":null,
                        "value":"10.100.10.221"
                    }
                ],
                "LC__CATG__STORAGE_CONTROLLER_MANUFACTURER":[ 
                    { 
                        "__id__":null,
                        "value":"Intel"
                    },
                    { 
                        "__id__":null,
                        "value":"Intel"
                    }
                ],
                "__index__":2
            },
            [...]
        },
        "headers":[ 
            { 
                "const":"LC__UNIVERSAL__TITLE",
                "title":"Name"
            },
            { 
                "const":"LC__UNIVERSAL__CMDB_STATUS",
                "title":"CMDB-Status",
                "dialog":[ 
                    { 
                        "id":"1",
                        "const":"C__CMDB_STATUS__PLANNED",
                        "title":"Geplant"
                    },
                    { 
                        "id":"2",
                        "const":"C__CMDB_STATUS__ORDERED",
                        "title":"Bestellt"
                    },
                    { 
                        "id":"3",
                        "const":"C__CMDB_STATUS__DELIVERED",
                        "title":"Geliefert"
                    },
                    [...]
                ]
            },
            { 
                "const":"LC__CMDB__CATG__IP__IPV4_ADDRESS",
                "title":"IPv4-Adresse"
            },
            { 
                "const":"LC__CATG__STORAGE_CONTROLLER_MANUFACTURER",
                "title":"Hersteller",
                "dialog":[ 
                    { 
                        "id":"1",
                        "const":"",
                        "title":"AMD"
                    },
                    { 
                        "id":"2",
                        "const":"",
                        "title":"Intel"
                    },
                    { 
                        "id":"3",
                        "const":"",
                        "title":"IBM"
                    },
                    { 
                        "id":"4",
                        "const":"",
                        "title":"Motorola"
                    }                   [...]
                ]
            }
        ],
        "count":26,
        "page":"0",
        "display_rows":"25"
    },
    "id":1
}


...