Update a protocol plug-in properties file
Purpose
Updates a protocol plug-in properties file.URI
Use the Eclipse Amlen REST API POST method with the following Eclipse Amlen configuration URI:
http://<admin-endpoint-IP:Port>/ima/v1/configuration/
Object configuration data
Provide ProtocolPlugin object configuration data in the payload of the POST method by using the following schema. Content-type is set to application/json:
{
"Plugin": {
"<NameOfPlugin>": {
"PropertiesFile": "string",
"Overwrite": true|false
}
}
}
Where:- NameOfPlugin
- Required.
- PropertiesFile
- Required.
- Overwrite: true|false
- Required if the protocol plug-in is already installed.
Usage NotesĀ®
- Capitalization and double quotation marks must be used as shown.
- The plug-in can be updated at any time.
- You must specify
"Overwrite":true
to update an existing plug-in. - The update is not effective until the plug-in server is restarted.
Related REST Administration APIs
Example
Updates the plug-in properties file calledpluginprops.json
:
curl -X POST \
-H 'Content-Type: application/json' \
-d '{
"Plugin": {
"json_msg": {
"PropertiesFile": "pluginprops.json",
"Overwrite": true
}
}
}
' \
http://127.0.0.1:9089/ima/v1/configuration/
An example response to the POST method:
{
"Version": "v1",
"Code": "CWLNA6011",
"Message": "The requested configuration change has completed successfully."
}