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.eyJ1c2VyX2lkIjoidWFhLWlkLTEwMCIsImVtYWlsIjoiZW1haWwtNzFAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyMjk5MDg3MH0.ox_m7i63fjk_8u_smDn5599zu4_pxzQ901N-OFyAfy4
Host: example.org
Cookie: 

Route

GET /v2/apps/90ff02e0-f98b-4519-868c-50bfdd5a7b5e/instances/0/files/path_to_file

cURL

curl "https://api.[your-domain.com]/v2/apps/90ff02e0-f98b-4519-868c-50bfdd5a7b5e/instances/0/files/path_to_file" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwMCIsImVtYWlsIjoiZW1haWwtNzFAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyMjk5MDg3MH0.ox_m7i63fjk_8u_smDn5599zu4_pxzQ901N-OFyAfy4" \
	-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: d36ce416-6349-4161-9de9-632f26444bad
Content-Length: 0
X-Content-Type-Options: nosniff

Status

302 Found