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.eyJ1c2VyX2lkIjoidWFhLWlkLTMwNiIsImVtYWlsIjoiZW1haWwtMjA5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQ0NzE3MDJ9.7RcAsmIZ0UXvgDVWZeiJ5A7JUbTRUj1exgVB6w3oJM4
Host: example.org
Cookie: 

Route

GET /v2/apps/527eb03c-bcc6-435e-b08b-9ebf137a5edf/instances/0/files/path_to_file

cURL

curl "https://api.[your-domain.com]/v2/apps/527eb03c-bcc6-435e-b08b-9ebf137a5edf/instances/0/files/path_to_file" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwNiIsImVtYWlsIjoiZW1haWwtMjA5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQ0NzE3MDJ9.7RcAsmIZ0UXvgDVWZeiJ5A7JUbTRUj1exgVB6w3oJM4" \
	-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: 17836b2c-b8a6-417c-a91d-a26fb009fd08
Content-Length: 0
X-Content-Type-Options: nosniff

Status

302 Found