diff --git a/doc/12-icinga2-api.md b/doc/12-icinga2-api.md index c35b02fb2..481ae809b 100644 --- a/doc/12-icinga2-api.md +++ b/doc/12-icinga2-api.md @@ -623,12 +623,16 @@ parameters need to be passed inside the JSON body: In addition to these parameters a [filter](12-icinga2-api.md#icinga2-api-filters) should be provided. -**Note**: Modified attributes do not trigger a re-evaluation of existing -static [apply rules](3-monitoring-basics.md#using-apply) and [group assignments](3-monitoring-basics.md#group-assign-intro). -Delete and re-create the objects if you require such changes. -Furthermore you cannot modify templates which have already been resolved -during [object creation](12-icinga2-api.md#icinga2-api-config-objects-create). - +> **Note**: +> +> Modified attributes do not trigger a re-evaluation of existing +> static [apply rules](3-monitoring-basics.md#using-apply) and [group assignments](3-monitoring-basics.md#group-assign-intro). +> Delete and re-create the objects if you require such changes. +> +> Furthermore you cannot modify templates which have already been resolved +> during [object creation](12-icinga2-api.md#icinga2-api-config-objects-create). +> There are attributes which can only be set for [PUT requests](12-icinga2-api.md#icinga2-api-config-objects-create) such as `groups` +> or `zone`. A complete list of `no_user_modify` attributes can be fetched from the [types](12-icinga2-api.md#icinga2-api-types) URL endpoint. If attributes are of the Dictionary type, you can also use the indexer format: diff --git a/lib/base/configobject.ti b/lib/base/configobject.ti index 950dcdef2..a9892417f 100644 --- a/lib/base/configobject.ti +++ b/lib/base/configobject.ti @@ -82,7 +82,7 @@ abstract class ConfigObject : ConfigObjectBase < ConfigType return m_ShortName; }}} }; - [config] name(Zone) zone (ZoneName); + [config, no_user_modify] name(Zone) zone (ZoneName); [config, no_user_modify] String package; [config, get_protected, no_user_modify] Array::Ptr templates; [get_protected, no_user_modify] bool active;