How to save in file bits of an App


Juan Antonio Breña Moral <bren at juanantonio.info...>
 

Good afternoon and Merry Christmas,

I am trying to save in disk bits from an App but I have some problems using this method:
http://apidocs.cloudfoundry.org/226/apps/downloads_the_bits_for_an_app.html

Does exist some details to store in the right way?

Many thanks in advance.

Juan Antonio


Dieu Cao <dcao@...>
 

The curl examples in the existing api docs aren't great. We hope to
improve that in future.

You can do this with cf curl fairly easily with the --output flag.

For example:

$ cf curl /v2/apps/ef01a7da-9569-437b-bbf4-3f2dd01635ef/download --output
myapp.zip

-Dieu
CF CAPI PM

On Thu, Dec 24, 2015 at 11:28 AM, Juan Antonio Breña Moral <
bren(a)juanantonio.info> wrote:

Good afternoon and Merry Christmas,

I am trying to save in disk bits from an App but I have some problems
using this method:
http://apidocs.cloudfoundry.org/226/apps/downloads_the_bits_for_an_app.html

Does exist some details to store in the right way?

Many thanks in advance.

Juan Antonio


Juan Antonio Breña Moral <bren at juanantonio.info...>
 

Hi Dieu,

Do you know what is ghte .go file to check the code and learn the way to store data in files?

Many thanks in advance.

Juan Antonio


Dieu Cao <dcao@...>
 

I believe the cf curl command simply passes the correct authentication
headers and the --output option to curl.
I don't believe there's any other cli code involved.

-Dieu



On Tue, Jan 5, 2016 at 6:40 AM, Juan Antonio Breña Moral <
bren(a)juanantonio.info> wrote:

Hi Dieu,

Do you know what is ghte .go file to check the code and learn the way to
store data in files?

Many thanks in advance.

Juan Antonio