configuration

CLI REST-API

rest-api

The submenu rest-api (rest-api) contains the following:

Menus: none

Objects:
enabled (enable rest-api support)
discovery (discovery)
write-cache (write a cache file instead of submitting the changes immediately)
loglevel (loglevel)
plimit (process limit)
write-cache-min-wtime (minimum time after an update before a change is automatically committed)
autocommit (enable or disable automatic commit of changes)
fastapid-periodic-restart (restart fastapid after this amount of counts. 0 to disable it.)

Commands: none



See also:
/configuration/rest-api/enabled: enable rest-api support
/configuration/rest-api/discovery: discovery
/configuration/rest-api/write-cache: write a cache file instead of submitting the changes immediately
/configuration/rest-api/loglevel: loglevel
/configuration/rest-api/plimit: process limit
/configuration/rest-api/write-cache-min-wtime: minimum time after an update before a change is automatically committed
/configuration/rest-api/autocommit: enable or disable automatic commit of changes
/configuration/rest-api/fastapid-periodic-restart: restart fastapid after this amount of counts. 0 to disable it.
/status/rest-api: rest-api

REST-API Support:


This menu is supported by the REST API:

Method: GET
URL: /api/configuration/rest-api


Example using curl:
curl /api/configuration/rest-api


Method: PATCH
URL: /api/configuration/rest-api
Body:
{
  \"objects\": \"new-values\"
}

Example using curl:
curl -X PATCH /api/configuration/rest-api
-d "{
  \"objects\": \"new-values\"
}"