Versionen im Vergleich

Schlüssel

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

Seitenverzeichnis: 

...

shd.query.relation

Beschreibung

Holt alle Elemente eines Parent-Objects.

Parameter

ParameterTypVersion
obj_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

...

shd.query.category

Beschreibung

Abfragen der Eigenschaften von Kategorien.

Parameter

ParameterTypVersion
columnsarrayab Version 1.0
conditionarrayab Version 1.0

...

Codeblock
languagebash
themeRDark
{
  "id" : "1",
  "version" : "2.0",
  "params" : {
    "columns" : [
      {
        "sort" : "",
        "id" : "C__CATG__MEMORY-title"
      },
      {
        "sort" : "",
        "id" : "C__CATG__MEMORY-unit"
      },
      {
        "sort" : "",
        "id" : "C__CATG__MEMORY-total_capacity"
      }
    ],
    "apikey" : "1ialbgclm9",
    "condition" : [
      {
        "value" : "2731",
        "comparison" : "=",
        "property" : "C__CATG__GLOBAL-id",
        "category" : "C__CATG__GLOBAL"
      }
    ],
    "page" : "0"
  },
  "method" : "shd.query.category"
}


Codeblock
languagebash
themeRDark
{
    "method": "shd.query.category",
    "id": "1",
    "params": {
        "debug":"true",
        "display_rows": "50",
        "condition": [
            {
                "comparison": "=",
                "property": "map_id",
                "category": "C__CATG__MAP",
                "value": "6"
            }
        ],
        "apikey": "365478025",
        "columns": [
            {
                "width": "140",
                "id": "C__CATG__LIVESTATUS-check_command",
                "sort": ""
            },
            {
                "width": "140",
                "id": "C__CATG__LIVESTATUS-check_interval",
                "sort": ""
            }
        ],
        "language": "de",
        "page": "0"
    },
    "jsonrpc": "2.0"
}

Beispielantwort

Codeblock
languagebash
themeRDark
{
    "jsonrpc": "2.0",
    "result": {
        "display_rows": "0",
        "content": {
            "355": {
                "C__CATG__MEMORY-unit": {
                    "3": {
                        "value": "GB",
                        "__id__": "3"
                    }
                },
                "__id__": "355",
                "__index__": "0",
                "C__CATG__MEMORY-total_capacity": "0",
                "C__CATG__MEMORY-title": {
                    "6": {
                        "value": "LRDIMM",
                        "__id__": "6"
                    }
                }
            },
            "356": {
                "C__CATG__MEMORY-unit": {
                    "3": {
                        "value": "GB",
                        "__id__": "3"
                    }
                },
                "__id__": "356",
                "__index__": "0",
                "C__CATG__MEMORY-total_capacity": "0",
                "C__CATG__MEMORY-title": {
                    "6": {
                        "value": "LRDIMM",
                        "__id__": "6"
                    }
                }
            },
            "357": {
                "C__CATG__MEMORY-unit": {
                    "3": {
                        "value": "GB",
                        "__id__": "3"
                    }
                },
                "__id__": "357",
                "__index__": "0",
                "C__CATG__MEMORY-total_capacity": "0",
                "C__CATG__MEMORY-title": {
                    "6": {
                        "value": "LRDIMM",
                        "__id__": "6"
                    }
                }
            }
            [...]
        },
        "time": 0.16799998283386,
        "count": 16,
        "headers": [
            {
                "const": "C__CATG__MEMORY-title",
                "title": "Title"
            },
            {
                "const": "C__CATG__MEMORY-unit",
                "title": "Memory unit"
            },
            {
                "const": "C__CATG__MEMORY-total_capacity",
                "title": "Total capacity"
            }
        ],
        "total": 16,
        "page": "0"
    },
    "id": "1"
}

...