Viewing configuration details of a pre-shared key file by using REST Administration APIs
System administrators view configuration details of a pre-shared key file by using a REST Administration API.
You can use the Eclipse Amlen REST API GET method to view configuration details of a specified pre-shared key file. You cannot view the contents of the PreSharedKey file by using a REST API. To view the contents of the PSK file, you must manually retrieve the file from the filesystem.
http://<admin-endpoint-IP:Port>/ima/v1/configuration/PreSharedKey
The following example shows a GET method to view configuration details of a pre-shared key file by using cURL:
curl -X GET http://127.0.0.1:9089/ima/v1/configuration/PreSharedKey
The following example shows a successful example response to the GET method that was used to view configuration details of pre-shared key file called "MyPreSharedKeyFile" :
{
"Version": "v1",
"PreSharedKey": "myPSKfile_201603016.csv"
}