Seitenhierarchie
Zum Ende der Metadaten springen
Zum Anfang der Metadaten

URL: https:/123.123.123.123/services/edit/$SERVICE_ID.json

Methode: POST

Response: HTML


JSON zum Editieren eines Services via REST API
{
    "Service" :{
        "name":"api service",
        "notes":"",
        "service_url":"",
        "own_contacts":null,
        "own_contactgroups":null,
        "own_customvariables":null,
        "id":"$SERVICE_ID",
        "host_id":"$HOST_ID",
        "servicetemplate_id":1,
        "description":null,
        "Servicegroup":[],
        "priority":null,
        "notify_period_id":null,
        "notification_interval":null,
        "notify_on_recovery":null,
        "notify_on_warning":null,
        "notify_on_unknown":null,
        "notify_on_critical":null,
        "notify_on_flapping":null,
        "notify_on_downtime":null,
        "process_performance_data":null,
        "active_checks_enabled":null,
        "command_id":null,
        "check_period_id":null,
        "max_check_attempts":null,
        "check_interval":null,
        "retry_interval":null,
        "tags":null,
        "flap_detection_enabled":null,
        "flap_detection_on_ok":null,
        "flap_detection_on_warning":null,
        "flap_detection_on_unknown":null,
        "flap_detection_on_critical":null,
        "is_volatile":null,
        "freshness_checks_enabled":null,
        "freshness_threshold":null,
        "eventhandler_command_id":null,
        "Contact":[],
        "Contactgroup":[]
    },
    "Servicegroup":{
        "Servicegroup":[]
    },
    "Servicecommandargumentvalue": [
        {
            "commandargument_id": "1",
            "value": "100.0,20%"
        },
        {
            "commandargument_id": "2",
            "value": "100.0,20%"
            
        }
    ],
    "Customvariable":{
		"1":{
			"name":"NAME1",
			"value":"$VALUE",
			"objecttype_id":2048
		}
	}
}
Minimales JSON
{
    "Service" :{
        "name":"api service",
        "id":"$SERVICE_ID",
        "host_id":"$HOST_ID",
        "Servicegroup" : [],
        "servicetemplate_id":"1"
    },
    "Servicegroup":{
        "Servicegroup":[]
    }
}




  • Keine Stichwörter