Zum Ende der Metadaten springen
Zum Anfang der Metadaten

Sie zeigen eine alte Version dieser Seite an. Zeigen Sie die aktuelle Version an.

Unterschiede anzeigen Seitenhistorie anzeigen

« Vorherige Version anzeigen Version 6 Nächste Version anzeigen »

Seitenverzeichnis: 



shd.query.read

Beschreibung

Auslesen einer selbst gebauten View.

Parameter

ParameterTypVersion
obj_type_idintab Version 1.0
display_rowsintab Version 1.0
pagestringab Version 1.0
columnsarray<Properties>ab Version 1.0
conditionComparisonab Version 1.0
status i-doit Statusab Version 1.0

Rückgabewert

WertTypVersion
numintab Version 1.0
contentgrid-viewab Version 1.0
headersarrayab Version 1.0
countintab Version 1.0
pagestringab Version 1.0
display_rowsstringab Version 1.0

Beispiel 

Beispielaufruf

Beispielantwort

 {
    "method": "shd.query.read",
    "params": {
        "apikey": "24174j3tqj",
        "obj_id": "80",
        "display_rows": "25",
        "page": "0",
        "columns": [
            {
                "id": "C__CATG__GLOBAL-title",
                "width": "50",
                "sort": ""
            },
            {
                "id": "C__CATG__GLOBAL-category",
                "width": "50",
                "sort": ""
            },
            {
                "id": "C__CATG__CPU-frequency",
                "width": "50",
                "sort": ""
            },
            {
                "id": "C__CATG__MEMORY-capacity",
                "width": "50",
                "sort": ""
            }
        ],
        "debug": true,
        "language": "en"
    },
    "id": 1,
    "version": "2.0"
}
{ 
    "jsonrpc":"2.0",
    "result":{ 
        "num":25,
        "content":{ 
            "63":{ 
                "__id__":"63",
                "LC__UNIVERSAL__TITLE":" AX-23784",
                "LC__CMDB__CATG__GLOBAL_CATEGORY":"",
                "LC__CMDB__CATG__FREQUENCY":[ 
                    { 
                        "__id__":null,
                        "value":""
                    }
                ],
                "LC__CMDB_CATG__MEMORY_CAPACITY":[ 
                    { 
                        "__id__":null,
                        "value":""
                    }
                ],
                "__index__":0
            },
            "369":{ 
                "__id__":"369",
                "LC__UNIVERSAL__TITLE":" HV-210-R2-SL2",
                "LC__CMDB__CATG__GLOBAL_CATEGORY":"",
                "LC__CMDB__CATG__FREQUENCY":[ 
                    { 
                        "__id__":null,
                        "value":""
                    }
                ],
                "LC__CMDB_CATG__MEMORY_CAPACITY":[ 
                    { 
                        "__id__":null,
                        "value":""
                    }
                ],
                "__index__":2
            },
            "538":{ 
                "__id__":"538",
                "LC__UNIVERSAL__TITLE":"110",
                "LC__CMDB__CATG__GLOBAL_CATEGORY":"",
                "LC__CMDB__CATG__FREQUENCY":[ 
                    { 
                        "__id__":null,
                        "value":""
                    }
                ],
                "LC__CMDB_CATG__MEMORY_CAPACITY":[ 
                    { 
                        "__id__":null,
                        "value":""
                    }
                ],
                "__index__":24
            }
        },
        "headers":[ 
            { 
                "const":"LC__UNIVERSAL__TITLE",
                "title":"Bezeichnung"
            },
            { 
                "const":"LC__CMDB__CATG__GLOBAL_CATEGORY",
                "title":"Kategorie"
            },
            { 
                "const":"LC__CMDB__CATG__FREQUENCY",
                "title":"CPU-Frequenz"
            },
            { 
                "const":"LC__CMDB_CATG__MEMORY_CAPACITY",
                "title":"Kapazit\u00e4t"
            }
        ],
        "count":596,
        "page":"0",
        "display_rows":"25"
    },
    "id":1
}

Beispiel mit einer Dialog-Antwort. Die Dialog-Antwort findet man im Header-Array

Beispielaufruf

Beispielantwort

 {
    "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"
}
        
 { 
    "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
            },
            "3483":{ 
                "__id__":"3483",
                "LC__UNIVERSAL__TITLE":"cache002",
                "LC__UNIVERSAL__CMDB_STATUS":"In Betrieb",
                "LC__CMDB__CATG__IP__IPV4_ADDRESS":[ 
                    { 
                        "__id__":null,
                        "value":"10.100.20.222"
                    },
                    { 
                        "__id__":null,
                        "value":"10.100.10.222"
                    }
                ],
                "LC__CATG__STORAGE_CONTROLLER_MANUFACTURER":[ 
                    { 
                        "__id__":null,
                        "value":"Intel"
                    },
                    { 
                        "__id__":null,
                        "value":"Intel"
                    }
                ],
                "__index__":4
            },
            "3411":{ 
                "__id__":"3411",
                "LC__UNIVERSAL__TITLE":"web009",
                "LC__UNIVERSAL__CMDB_STATUS":"In Betrieb",
                "LC__CMDB__CATG__IP__IPV4_ADDRESS":[ 
                    { 
                        "__id__":null,
                        "value":"10.100.20.109"
                    },
                    { 
                        "__id__":null,
                        "value":"10.100.10.109"
                    }
                ],
                "LC__CATG__STORAGE_CONTROLLER_MANUFACTURER":[ 
                    { 
                        "__id__":null,
                        "value":"Intel"
                    },
                    { 
                        "__id__":null,
                        "value":"Intel"
                    }
                ],
                "__index__":42
            }
        },
        "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"
                    },
                    { 
                        "id":"4",
                        "const":"C__CMDB_STATUS__ASSEMBLED",
                        "title":"Montiert"
                    },
                    { 
                        "id":"5",
                        "const":"C__CMDB_STATUS__TESTED",
                        "title":"Getestet"
                    },
                    { 
                        "id":"6",
                        "const":"C__CMDB_STATUS__IN_OPERATION",
                        "title":"In Betrieb"
                    },
                    { 
                        "id":"7",
                        "const":"C__CMDB_STATUS__DEFECT",
                        "title":"Defekt"
                    },
                    { 
                        "id":"8",
                        "const":"C__CMDB_STATUS__UNDER_REPAIR",
                        "title":"In Reparatur"
                    },
                    { 
                        "id":"9",
                        "const":"C__CMDB_STATUS__DELIVERED_FROM_REPAIR",
                        "title":"Aus Reparatur geliefert"
                    },
                    { 
                        "id":"10",
                        "const":"C__CMDB_STATUS__INOPERATIVE",
                        "title":"Au\u00dfer Betrieb"
                    },
                    { 
                        "id":"11",
                        "const":"C__CMDB_STATUS__STORED",
                        "title":"Gelagert"
                    },
                    { 
                        "id":"12",
                        "const":"C__CMDB_STATUS__SCRAPPED",
                        "title":"Verschrottet"
                    },
                    { 
                        "id":"15",
                        "const":"C__CMDB_STATUS__SWAPPED",
                        "title":"LC__CMDB_STATUS__SWAPPED"
                    }
                ]
            },
            { 
                "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
}
  • Keine Stichwörter