Forum Discussion

cwkim_261931's avatar
cwkim_261931
Icon for Nimbostratus rankNimbostratus
Nov 13, 2017

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

 

4 Replies

  • 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.

     

    • mitch's avatar
      mitch
      Icon for Nimbostratus rankNimbostratus

      No they don't. It doesn't work. iControl REST, mystified!!!

      • mitch's avatar
        mitch
        Icon for Nimbostratus rankNimbostratus

        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.