Create or update an LTPA profile
Purpose
Creates or updates an LTPA profile. An LTPA profile defines the LTPA key file and password to use for single sign-on authentication.URI
Use the Eclipse Amlen REST API POST method with the followingEclipse Amlen configuration URI:
http://<admin-endpoint-IP:Port>/ima/v1/configuration/
Object configuration data
Provide LTPAProfile object configuration data in the payload of the POST method by using the following schema. Content-type is set to application/json:
{    
  "LTPAProfile": {
    "<NameOfLTPAProfile>": {
      "KeyFileName": "string",
      "Password": "string", 
      "Overwrite": true|false
     }
   }
}- NameOfLTPAProfile
- Required.
- KeyFileName
- Required if you are creating an LTPA profile.
- Password
- Required if you are creating an LTPA profile.
- Overwrite: true|false
- Specifies whether an existing key is overwritten if it has the same name.
Usage NotesĀ®
- The LTPA key file must be copied to Eclipse Amlen before it can be used in an LTPA profile. Copy a file from the local machine to Eclipse Amlen command to copy the LTPA key file.
- After you create an LTPA profile, you must associate it with a security profile.
- Capitalization and double quotation marks must be used as shown.
Related REST Administration APIs
Example
Copy a key called certificateKey.pem by using cURL:
curl -X PUT -T certificate.pem http://10.10.2.149:9089/ima/v1/file/ltpa.keyCreate an LTPA profile called "MyLTPAProfile" by using cURL:
 
curl -X POST \
   -H 'Content-Type: application/json'  \
   -d  '{ 
         "LTPAProfile": {   
           "MyLTPAProfile": {
             "KeyFileName": "ltpa.key",
             "Password": "ltpakeypassword"
          }
        }
    }
 '  \
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."
}