Home
Version 3
Files API

Files API

Retrieve File

GET /v2/apps/:app_guid/instances/:instance_index/files/:file_path

Fields

Name Description Default Valid Values Example Values

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1MSIsImVtYWlsIjoiZW1haWwtMTc2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTU3NTQxNDN9.DpYw0lh_4CnEYXd9jmQ1xmsxKnm-gVuMsqD_ish-doE
Host: example.org
Cookie: 

Route

GET /v2/apps/e33cd5bc-d302-4394-b59e-aaaafe536f43/instances/0/files/path_to_file

cURL

curl "https://api.[your-domain.com]/v2/apps/e33cd5bc-d302-4394-b59e-aaaafe536f43/instances/0/files/path_to_file" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1MSIsImVtYWlsIjoiZW1haWwtMTc2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTU3NTQxNDN9.DpYw0lh_4CnEYXd9jmQ1xmsxKnm-gVuMsqD_ish-doE" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
Location: dea.example.com/encoded_path_to_file
X-VCAP-Request-ID: 275388cb-4b9d-4d82-8d3c-2ba5441a7d9a
Content-Length: 0
X-Content-Type-Options: nosniff

Status

302 Found