Config Management
Use the Config Management REST API to manage configurations for OpenNMS. Configurations modified will take effect instantly.
GETs (Reading Data)
Resource | Description |
---|---|
|
Returns a list of configIds in JSON/YAML format, for example, ["config1", "config2"]. 200: Return: String Array 400: Return: {"MESSAGE": "<ERROR_MESSAGE>"} |
|
Returns OpenAPI schema (for Swagger UI) in JSON/YAML format. 200: Return: OpenAPI schema 400: Return: {"MESSAGE": "<ERROR_MESSAGE>"} |
|
Returns configuration in JSON/YAML format. 200: Return: Config Bean 400: Return: {"MESSAGE": "<ERROR_MESSAGE>"} |
|
Returns a part of the configuration specified by 200 Return: part of the configuration 404 Return: {"MESSAGE": "<ERROR_MESSAGE>"} 400 Return: {"MESSAGE": "<ERROR_MESSAGE>"} |
POSTs (Adding Data)
Resource | Description |
---|---|
|
Add new configuration. If the same configuration exists, it will return an error. 200: Return nothing 400: Return: {"MESSAGE": "<ERROR_MESSAGE>"} |
|
Adds an array element to the configuration part specified by 200 Return: nothing 404 Return: {"MESSAGE": "<ERROR_MESSAGE>"} 400 Return: {"MESSAGE": "<ERROR_MESSAGE>"} |
PUTs (Modifying Data)
Resource | Description |
---|---|
|
Update configuration. If configuration does not exist, it will return error. 200: Return: nothing 400: Return: {"MESSAGE": "<ERROR_MESSAGE>"} |
|
Updates a part of the configuration specified by 200 Return: nothing 404 Return: {"MESSAGE": "<ERROR_MESSAGE>"} 400 Return: {"MESSAGE": "<ERROR_MESSAGE>"} |
|
Updates or inserts a part of the configuration specified by 200 Return: nothing 404 Return: {"MESSAGE": "<ERROR_MESSAGE>"} 400 Return: {"MESSAGE": "<ERROR_MESSAGE>"} |
DELETEs (Removing Data)
Resource | Description |
---|---|
|
Delete configuration. 200: Return nothing 400: Return: {"MESSAGE": "<ERROR_MESSAGE>"} |
|
Deletes a part of the configuration specified by 200 Return: nothing 404 Return: {"MESSAGE": "<ERROR_MESSAGE>"} 400 Return: {"MESSAGE": "<ERROR_MESSAGE>"} |