Seitenhierarchie
Zum Ende der Metadaten springen
Zum Anfang der Metadaten

URL: https://123.123.123.123/hosttemplates/edit/$HOSTTEMPLATE_ID.json

Methode: POST

Response: HTML


JSON zum Editieren eines Hosttemplates via REST API
{
    "Hosttemplate":{
        "container_id":1,
        "id" : $HOSTTEMPLATE_ID,
        "name":"api hosttemplate modified",
        "description":"api hosttemplate description modified",
        "Hostgroup":[1],
        "notes":"api hosttemplate notes modified",
        "host_url":"http://api-hosttemplate.url/modified",
        "priority":1,
        "tags":"api hosttemplate tags modified",
        "notify_period_id":1,
        "notification_interval":7200,
        "notify_on_recovery":1,
        "notify_on_down":1,
        "notify_on_unreachable":1,
        "notify_on_flapping":1,
        "notify_on_downtime":1,
        "active_checks_enabled":1,
        "Contact":[2,3],
        "Contactgroup":[],
        "command_id":4,
        "check_period_id":1,
        "max_check_attempts":3,
        "check_interval":600,
        "retry_interval":60,
        "flap_detection_enabled":0,
        "flap_detection_on_up":0,
        "flap_detection_on_down":0,
        "flap_detection_on_unreachable":0
    },
    "Hosttemplatecommandargumentvalue":{
	        "3":{
	            "value":"123modified",
	            "commandargument_id":3
	        },
	        "4":{
	            "value":"456modified",
	            "commandargument_id":4
	        }
	    },
    "Customvariable":{
        "1":{
            "name":"NAME1modified",
            "value":"value1 modified",
            "objecttype_id":512
        }
    }
}
  • Keine Stichwörter