Removing the configuration of a pre-shared key by using REST Administration APIs

System administrators can remove the configuration of a pre-shared key file by using a REST Administration API.

You can use the Eclipse Amlen REST API POST method to remove the configuration of a pre-shared key file by setting the value to null. Setting the value to null removes configuration and the file from the filesystem.

  1. To remove a specified pre-shared key file configuration, use the Eclipse Amlen REST API POST method with the following Eclipse Amlen URI:

    http://<admin-endpoint-IP:Port>/ima/v1/configuration

  2. Provide object configuration data in the payload of the POST method by using the following schema.
    
    {
     "PreSharedKey": null
    } 

The following example removes the pre-shared key file configuration and the .csv file from the filesystem by using cURL:

curl -X POST http://127.0.0.1:9089/ima/v1/configuration -d '{"PreSharedKey":null}'
The following shows an example response to the POST method.

{        
  "Version": "v1",
  "Code": "CWLNA6011",
  "Message": "The requested configuration change has completed successfully."
}