Seitenhierarchie
Zum Ende der Metadaten springen
Zum Anfang der Metadaten

URL: https://123.123.123.123/hosts/edit/$HOST_ID.json

Method: POST

Response: HTML


JSON zum Editieren eines Hosts via REST API
{
    "Host" : {
        "name":"api host modified",
        "address":"127.0.0.1",
        "id" : $HOST_ID,
        "satellite_id":0,
        "own_contacts":null,
        "own_contactgroups":null,
        "own_customvariables":null,
        "container_id":1,
        "shared_container":[],
        "hosttemplate_id":1,
        "description":"",
        "Hostgroup":[],
        "Parenthost":null,
        "notes":"",
        "host_url":"",
        "priority":null,
        "tags":"",
        "notify_period_id":1,
        "notification_interval":null,
        "notify_on_recovery":null,
        "notify_on_down":null,
        "notify_on_unreachable":null,
        "notify_on_flapping":null,
        "notify_on_downtime":null,
        "active_checks_enabled":null,
        "Contact":["1"],
        "Contactgroup":[],
        "command_id":null,
        "check_period_id":null,
        "max_check_attempts":null,
        "check_interval":null,
        "retry_interval":null,
        "flap_detection_enabled":null,
        "flap_detection_on_up":null,
        "flap_detection_on_down":null,
        "flap_detection_on_unreachable":null
    },
    "Hostcommandargumentvalue":[],
    "Customvariable":[]
}
Minimales JSON
{
    "Host" : {
        "name":"api host modified",
        "address":"127.0.0.1",
        "id" : $HOST_ID,
        "container_id":1,
        "hosttemplate_id":1,
        "Hostgroup":[],
        "Parenthost" : null
    }
}



  • Keine Stichwörter