Werk #5141

KomponenteWATO
TitelWATO Web API: Introducing parameter request_format
Datum2017-09-06 16:18:49
Check_MK EditionCheck_MK Raw Edition (CRE)
Check_MK Version1.4.0p11
Level1 - Trivial Change
KlasseNew Feature
KompatibilitätKompatibel - benötigt keine manuelles eingreifen

Web-API calls which set/update specific elements in WATO had trouble interpreting the incoming data.

JSON encoded data is not fully capable to represent the python syntax - in detail tuples, it uses lists instead. WATO raises an error when a list is reported and a tuple is expected. For example, this error may happen when you set a SNMPv3 community for a specific host (the community is configured as tuple).

This werk introduces the request_format=python parameter. If set, the request is parsed as python instead of json code.