Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Move content to another article

...

To facilitate handling of the application programming interface (API) of i-doit, we put together a few typical examples.

Method: idoit.search

...

Body:

Code Block
languagejs
themeRDark
{
    "version": "2.0",
    "method": "idoit.search",
    "params": {
        "q": "ESXi1",
        "apikey": "xxx",
        "language": "en"
    },
    "id": 1
}

...

Body:

Code Block
languagejs
themeRDark
{
    "jsonrpc": "2.0",
    "result": [
        {
            "documentId": "1000",
            "key": "Virtual Host > Global > Title",
            "value": "ESXi1",
            "type": "cmdb",
            "link": "\/?objID=1000&catgID=1&cateID=1029&highlight=ESXi1",
            "score": 0
        }
    ],
    "id": 1
}

Login and Logout

Methods: idoit.login, idoit.version (as example for requests), idoit.logout

...