The endpoint does not function with Deigo apps. Please use CF CLI command `cf ssh` for Diego apps.
GET /v2/apps/d2d5d15c-087e-48d6-bbb2-9b4f8b4f4b19/instances/0/files/path_to_file
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwNSIsImVtYWlsIjoiZW1haWwtMjEzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjA1MDY2NTN9.QIvItv4YVVP9ryEblZgsn_dgVUtKQDzl4og0BsAuXCA Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/apps/d2d5d15c-087e-48d6-bbb2-9b4f8b4f4b19/instances/0/files/path_to_file" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwNSIsImVtYWlsIjoiZW1haWwtMjEzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjA1MDY2NTN9.QIvItv4YVVP9ryEblZgsn_dgVUtKQDzl4og0BsAuXCA" \ -H "Host: example.org" \ -H "Cookie: "
302 Found
Content-Type: application/json;charset=utf-8 Location: dea.example.com/encoded_path_to_file X-VCAP-Request-ID: Content-Length: 0 X-Content-Type-Options: nosniff