Copy a file from the local machine to Eclipse Amlen
Purpose
Copy a file from the local machine to a staging directory, /var/lib/amlen-server/userfiles, in Eclipse Amlen.URI
Use the Eclipse Amlen REST API PUT method with the following Eclipse Amlen configuration URI:
http://<admin-endpoint-IP:Port>/ima/v1/file/<filename>
Related REST Administration APIs
Example
Copies a file calledimaserver-crt.pem
from the
local machine to a staging directory, /var/lib/amlen-server/userfiles/.
curl -X PUT -T imaserver-crt.pem http://127.0.0.1:9089/ima/v1/file/imaserver-crt.pem
An
example response to the PUT
method:
{
"Version": "v1",
"Code": "CWLNA6011",
"Message": "The requested configuration change has completed successfully."
}
You can then use the REST API POST method to move the file from the staging directory to /var/messagesight/data/certificates/.