Show a pre-shared key file configuration

Purpose

Displays a pre-shared key file configuration in Eclipse Amlen. A pre-shared key (PSK) is a secret key that can be shared between two devices (for example, a client and a server) that are connected by a secured channel. The PSK is used by the server to authenticate the client.

URI

Use the Eclipse Amlen REST API GET method with the following Eclipse Amlen configuration URI:

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

Usage NotesĀ®

  • 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.
  • Capitalization and double quotation marks must be used as shown.

Related REST Administration APIs

Example

Display the name of the pre-shared key file that is uploaded by using cURL:

curl -X GET http://127.0.0.1:9089/ima/v1/configuration/PreSharedKey
An example response to the GET method.

{
  "Version": "v1",
    "PreSharedKey": "myPSKfile_201603016.csv"
}