-
Notifications
You must be signed in to change notification settings - Fork 571
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API Call to revert modified attributes vs. editing modified-attributes.conf #8709
Comments
#8036 could probably also fix this. Or do you want a call to explicitly reset all attributes of a single object? |
It would be great to query for modified attributes. @julianbrost Thanks for the reference. There might be some inconsitencies with #8036
A call to explicitly reset attributes seems a controlled way.
All attributes passed would be reset to default values, irrespective of the passed value. Maybe not the most consistent ( you have to specify a value for a json variable ) approach but would work nice with filter and current implementation. or
|
Is your feature request related to a problem? Please describe.
It is not possible (to my current knowledge) to reset attributes like custom varibles, notification flag etc. after modification via Icinga2 API (or Icingaweb2 for "Feature Commands")
After modifying the value of an attribute, it is persisted in modified-attributes.conf and will override values provided in configuration files.
e.g.
While this is greatly desired for some scenarios (disable notifications will survive an icinga2 service restart / director deployment), it causes problems in others: it is not possibe to give the value from configuration precedence again (unless you stop icinga2 and remove the corresponding entry from modified-attributes.conf).
Please provide a possibilty to revert modified attributes to default (configuration) value.
Describe the solution you'd like
API Call (maybe specific endpoint) to clear / revert modified attributes.
It would be great to implement this in icingaweb2 for host/service "Feature Commands" - revert to config.
Describe alternatives you've considered
stop Icinga2, manually remove entry from modified-attributes.conf, start icinga2
The text was updated successfully, but these errors were encountered: