Create or update a configuration policy
Purpose
Creates or updates a configuration policy. Configuration policies define which users can perform which administrative and monitoring operations.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 ConfigurationPolicy object configuration data in the payload of the POST method by using the following schema. Content-type is set to application/json.
{    
  "ConfigurationPolicy": {
    "<NameOfConfigurationPolicy>": {
       "Description": "string",
       "ActionList": "string",
       "GroupID": "string",
       "ClientAddress": "string",
       "UserID": "string",
       "CommonNames": "string"
     }
   }
}- NameOfConfigurationPolicy
- Required.
- Description
- Optional.
- ActionList
- Required if you are creating a configuration policy.
- ClientAddress
- Specifies the client IP addresses that are allowed to connect to Eclipse Amlen.
- UserID
- Specifies the messaging user ID that is allowed to connect to Eclipse Amlen.
- GroupID
- Specifies the messaging group that is allowed to connect to Eclipse Amlen.
- CommonNames
- Specifies the client certificate common name that must be used to connect to Eclipse Amlen.
Usage NotesĀ®
- Capitalization and double quotation marks must be used as shown.
Related REST Administration APIs
Example
Creates a configuration policy called "MyConfigurationPolicy" by using cURL:
curl -X POST  \
   -H 'Content-Type: application/json'  \
   -d  '{    
         "ConfigurationPolicy": {       
           "MyConfigurationPolicy": {
             "Description": "Demonstration configuration policy ",            
             "ActionList":  "Configure,View,Monitor,Manage",
             "GroupID": "Group1",
             "ClientAddress": "9.3.179.*",            
             "UserID": "IMAUser"
            }
          }
        }
      '  \
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."
}