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 REST fastapid)
loglevel-api-socket (loglevel api socket)
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.)
fast-updates (enable or disable faster updates for a set of objects)
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 REST fastapid
/configuration/rest-api/loglevel-api-socket: loglevel api socket
/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.
/configuration/rest-api/fast-updates: enable or disable faster updates for a set of objects
/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\"
}"