Forum Discussion
- Brad_ParkerCirrus
I do not believe there is any way to download systems files via REST API. I would recommend using SFTP/SCP. They live in
and/config/filestore/files_d/(PartitionName)_d/certificate_d
/config/filestore/files_d/(PartitionName)_d/certificate_key_d
The SOAP iControl API has this functionality, but obviously it will add complexity to your application.
https://devcentral.f5.com/wiki/iControl.Management__KeyCertificate.ashx
I had thought about using a deployment script to place the file in the web server's directory at some path, make the call on the REST API, and then delete the file afterward, possibly throwing in a htaccess file to restrict access to the F5's source IP. I'll see about working on a proof of concept for that.
- martijnbrands_3Nimbostratus
Is there any news on this item. I need the same functionality. I want to download the key with the REST API to install the key on an other loadbalancer.
I see I can download the key with the F5 IControl GUI but I need this function programmatically.
- Satoshi_Toyosa1Employee
Demystifying iControl REST Part 5: Transferring Files describes the method to download a file from BIG-IP.
Because the API only allows you to download files under
, you need to make a copy of the target file there. Unfortunately,/shared/images
(or/mgmt/tm/sys/util
) does not have a copy function (it does havetmsh run sys util
andmv
though), you need to userm
to run the Unix/mgmt/tm/sys/util/bash
command before calling the download request.cp
I personally recommend the scp/sftp method Brad Parker mentioned. You do not need to worry about tidying the shared directory.
- martijnbrands_3Nimbostratus
I have managed it. I use sftp with the following url's
and/config/filestore/files_d/Common_d/certificate_key_d/
to download the keys and certificates. I use this in a .NET c application./config/filestore/files_d/Common_d/certificate_d/
The only trick is to find the right file because of the postfix with a random number. You don't know this number after generation of the Key
.:Common:default.key_19751_1
anyway thanks for your help