Seitenhierarchie
Zum Ende der Metadaten springen
Zum Anfang der Metadaten

URL: https://123.123.123.123/commands/edit/$COMMAND_ID.json

Methode: POST

Response: JSON


JSON for editing commands via REST API
{
    "Command":{
        "id":"$COMMAND_ID",
        "command_type":"1",
        "name":"API Example Command with arguments",
        "command_line":"$USER1$\/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5",
        "description":"api description"
    },
    "Commandargument":[
        {
            "id":"$COMMANDARGUMENT_ID",
            "command_id":"$COMMAND_ID",
            "name":"$ARG1$",
            "human_name":"Warning"
        },
        {
            "id":"$COMMANDARGUMENT_ID",
            "command_id":"$COMMAND_ID",
            "name":"$ARG2$",
            "human_name":"Critical"
        }
    ]
}
  • Keine Stichwörter