Config

The /api/v3/config endpoints allow you to inspect, modify, and reload the configuration of the datarhei Core.

Read

Retrieve the currently active Core configuration with additionally a list of all fields that have an override by an environment variable. Such fields can be changed, but it will have no effect because the enviroment variable will always override the value.

Example:

curl http://127.0.0.1:8080/api/v3/config \
   -H 'accept: application/json' \
   -H 'Content-Type: application/json' \
   -X GET

Description:

Retrieve the currently active Restreamer configuration

get

Retrieve the currently active Restreamer configuration

Authorizations
AuthorizationstringRequired
Responses
200

OK

application/json
get
/api/v3/config
200

OK

Update

Upload a modified configuration. You can provide a partial configuration with only the fields you want to change. The minimal valid configuration you have to provide contains the version number:

Example:

Description:

Update the current Restreamer configuration

put

Update the current Restreamer configuration by providing a complete or partial configuration. Fields that are not provided will not be changed.

Authorizations
AuthorizationstringRequired
Body
addressstringOptional
created_atstringOptional
idstringOptional
namestringOptional
update_checkbooleanOptional
versionintegerOptional
Responses
200

OK

application/json
Responsestring
put
/api/v3/config

Reload

After changing the configuration, the datarhei Core has to be restarted in order to reload the changed configuration.

Example:

Description:

Reload the currently active configuration

get

Reload the currently active configuration. This will trigger a restart of the Core.

Authorizations
AuthorizationstringRequired
Responses
200

OK

application/json
Responsestring
get
/api/v3/config/reload
200

OK

Configuration

Complete config example:

Required fields: version

Descriptions

Configuration

Last updated

Was this helpful?