From: Michael Friedrich Date: Tue, 6 Feb 2018 17:03:36 +0000 (+0100) Subject: Document the 'ignore_on_error' attribute for object creation X-Git-Tag: v2.8.3~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=579ec50b572dc7ab7f93e1bf705e437f4ffc28f9;p=icinga2 Document the 'ignore_on_error' attribute for object creation fixes #5797 refs #6080 --- diff --git a/doc/12-icinga2-api.md b/doc/12-icinga2-api.md index 0588b8646..9c3f2bd0e 100644 --- a/doc/12-icinga2-api.md +++ b/doc/12-icinga2-api.md @@ -603,10 +603,11 @@ method: New objects must be created by sending a PUT request. The following parameters need to be passed inside the JSON body: - Parameters | Type | Description - -----------|--------------|-------------------------- - templates | Array | **Optional.** Import existing configuration templates for this object type. Note: These templates must either be statically configured or provided in [config packages](12-icinga2-api.md#icinga2-api-config-management)- - attrs | Dictionary | **Required.** Set specific object attributes for this [object type](09-object-types.md#object-types). + Parameters | Type | Description + ------------------|--------------|-------------------------- + templates | Array | **Optional.** Import existing configuration templates for this object type. Note: These templates must either be statically configured or provided in [config packages](12-icinga2-api.md#icinga2-api-config-management)- + attrs | Dictionary | **Required.** Set specific object attributes for this [object type](09-object-types.md#object-types). + ignore\_on\_error | Boolean | **Optional.** Ignore object creation errors and return an HTTP 200 status instead. The object name must be specified as part of the URL path. For objects with composite names (e.g. services) the full name (e.g. `example.localdomain!http`) must be specified.