Home
Version 3
Apps API

Apps API

Downloads the bits for an App

GET /v2/apps/:guid/download

When using a remote blobstore, such as AWS, the response is a redirect to the actual location of the bits. If the client is automatically following redirects, then the OAuth token that was used to communicate with Cloud Controller will be replayed on the new redirect request. Some blobstores may reject the request in that case. Clients may need to follow the redirect without including the OAuth token.

Request

Route

GET /v2/apps/d5a7102d-40ea-4a94-8620-00a9982c9406/download

Parameters

Name Description Valid Values Example Values
guid The guid of the App

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1NiIsImVtYWlsIjoiZW1haWwtOTJAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NTU1NzkzOX0.MMzK3vYb129qw62IvNtKT4C3ZOHzwIVxyg9gCL5uB4c
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/d5a7102d-40ea-4a94-8620-00a9982c9406/download" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1NiIsImVtYWlsIjoiZW1haWwtOTJAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NTU1NzkzOX0.MMzK3vYb129qw62IvNtKT4C3ZOHzwIVxyg9gCL5uB4c" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

302 Found

Headers

Content-Type: application/json;charset=utf-8
Location: https://cc-packages.s3.amazonaws.com/d5/a7/d5a7102d-40ea-4a94-8620-00a9982c9406?X-Amz-Expires=3600&X-Amz-Date=20151015T235219Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=fake_aws_key_id/20151015/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=7888ce7b36e32e12a2e800ab58a35651b98d78651552715ac35b95759c62b84c
X-VCAP-Request-ID: ec0fb49c-1f35-489e-b557-d9974627043b
Content-Length: 0
X-Content-Type-Options: nosniff