Forum Discussion
How do I Post some file at the BIG-IP's directory by using RestAPI?!
Hi I'm testing Rest API to import ssl cert, key, profile etc..
And I found like this... https://devcentral.f5.com/questions/upload-ssl-keys-certs-via-icontrol-rest-api
And I finish that is work well.
I want to upload in directory(/var/tmp/) the files(cert, key file...) too.
But, I don't know how do I tested it...
So, Plz help me how do I use the RestAPI to upload my file from my PC to BIG-IP(/var/tmp/).
BR~
From Kim
- Andy_McGrath
Cumulonimbus
Simple answer, No (at least not to my knowledge).
You can only upload files that are part of F5 configuration like iFiles or SSL certs/keys using the RestAPI, you cannot upload/download files to the underlying Linux system.
- Andy_McGrath
Cumulonimbus
I came across this while reviewing F5 automated deployment, you can upload files but then only go to '/var/config/rest/downloads'.
Demystifying iControl REST Part 5: Transferring Files
Hope this helps
- mitch
Nimbostratus
No they don't. It doesn't work. iControl REST, mystified!!!
- mitch
Nimbostratus
Ok, for it working. It works. Be careful when setting the Content-Range header. Do not use, as some sites do, bytes 0-size -1/size. Restjavad harfs a fur ball on bytes 0, just stick with start end-1 start as in the Part 5 Transferring files.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com