Config Management
Use the Config Management REST API to manage configurations for OpenNMS. Configurations modified will take effect instantly.
GETs (reading data)
| Resource | Description |
|---|---|
/cm/{configName} |
Returns a list of |
/cm/schema/{configName} |
Returns OpenAPI schema (for Swagger UI) in JSON/YAML format. |
/cm/{configName}/{configId} |
Returns configuration in JSON/YAML format. |
/cm/{configName}/{configId}/{path} |
Returns a part of the configuration specified by |
POSTs (adding data)
| Resource | Description |
|---|---|
/cm/{configName}/{configId} |
Add new configuration.
If the same configuration exists, it will return an error. |
/cm/{configName}/{configId}/{path} |
Adds an array element to the configuration part specified by |
PUTs (modifying data)
| Resource | Description |
|---|---|
/cm/{configName}/{configId} |
Update configuration.
If configuration does not exist, it will return error. |
/cm/{configName}/{configId}/{path} |
Updates a part of the configuration specified by |
/cm/{configName}/{configId}/{pathToParent}/{nodeName} |
Updates or inserts a part of the configuration specified by |
DELETEs (removing data)
| Resource | Description |
|---|---|
/cm/{configName}/{configId} |
Delete configuration. |
/cm/{configName}/{configId}/{path} |
Deletes a part of the configuration specified by |