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.eyJ1c2VyX2lkIjoidWFhLWlkLTI4NCIsImVtYWlsIjoiZW1haWwtMjI0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQzMTAxMzl9.IBftZ-_5Iv-MllBIA2hy9k51OVKGv4MAlBJhIZFyGE8
Host: example.org
Cookie: 

Route

GET /v2/apps/21620264-faa3-44c7-99e1-b3cd1a3ae248/instances/0/files/path_to_file

cURL

curl "https://api.[your-domain.com]/v2/apps/21620264-faa3-44c7-99e1-b3cd1a3ae248/instances/0/files/path_to_file" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4NCIsImVtYWlsIjoiZW1haWwtMjI0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQzMTAxMzl9.IBftZ-_5Iv-MllBIA2hy9k51OVKGv4MAlBJhIZFyGE8" \
	-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: c33afba5-137f-4793-a4d2-1b79a595f8e0
Content-Length: 0
X-Content-Type-Options: nosniff

Status

302 Found