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.
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."
}