Create or update a security profile
Purpose
Creates or updates a security profile. A security profile is used by an endpoint to define Transport Layer Security (TLS) and the authentication method for that endpoint.URI
Use the Eclipse Amlen REST API POST method with the following Eclipse Amlen configuration URI:
http://<admin-endpoint-IP:Port>/ima/v1/configuration/
Object configuration data
Provide SecurityProfile object configuration data in the payload of the POST method by using the following schema. Content-type is set to application/json:
{
"SecurityProfile": {
"<NameOfSecurityProfile>": {
"TLSEnabled": true|false,
"MinimumProtocolMethod": "string",
"UseClientCertificate": true|false,
"UsePasswordAuthentication": true|false,
"AllowNullPassword": true|false,
"Ciphers": "string",
"CertificateProfile": "string",
"UseClientCipher": true|false,
"LTPAProfile": "string",
"OAuthProfile": "string"
}
}
}
Where:- NameOfSecurityProfile
- Required.
- TLSEnabled: true|false
- Specifies whether to use (true) or not use (false) TLS on the endpoints that use the security profile.
- MinimumProtocolMethod
- Specifies the lowest level of protocol that is allowed when a client connects to Eclipse Amlen.
- UseClientCertificate: true|false
- Specifies whether to use (true) or not use (false) client certificate authentication.
- UsePasswordAuthentication: true|false
- Specifies whether to authenticate the user ID and password (true) or not (false).
- AllowNullPassword: true|false
- Specifies whether authentication of a NULL or empty password is allowed (true) or not (false).
- Ciphers
- Specifies the encryption algorithm that is used by the security policy.
- CertificateProfile
- Specifies the name of the certificate profile to use with this security profile. The certificate profile must exist and is required when TLSEnabled is true.
- UseClientCipher: true|false
- Specifies whether to use (true) or not use (false) the cipher setting of the client when it connects to Eclipse Amlen.
- LTPAProfile
- Specifies the LTPA profile to use with this security profile. The LTPA profile must exist.
- OAuthProfile
- Specifies the OAuth profile to use with this security profile. The OAuth profile must exist.
Usage NotesĀ®
- Capitalization and double quotation marks must be used as shown.
Related REST Administration APIs
Example
The following example fails to create a security profile as no certificate profile is provided when TLS is enabled:
curl -X POST \
-H 'Content-Type: application/json' \
-d '{
"SecurityProfile": {
"KCSecProfile": {
}
}
}
' \
http://127.0.0.1:9089/ima/v1/configuration/
An
example response to the POST
method:
The
following example creates a security profile without providing a certificate profile by
setting TLSEnabled to
false:
{
"Version": "v1",
"Code": "CWLNA0186",
"Message": "The certificate profile must be set if TLSEnabled is true."
}
curl -X POST \
-H 'Content-Type: application/json' \
-d '{
"SecurityProfile": {
"KCSecProfile": {
"TLSEnabled":false
}
}
}
' \
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."
}