Home
Version 3
Apps API

Apps API

Retrieve a Particular App

GET /v2/apps/:guid

Request

Route

GET /v2/apps/1e987e9c-530f-4629-8981-e8ac7071073b

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTc2IiwiZW1haWwiOiJlbWFpbC00NEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDU0NDUxNjA5fQ.ON0iOHQYwZU-Sgk4y0b89W-80I9GYuqRHzTQQ9Mg0cI
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/1e987e9c-530f-4629-8981-e8ac7071073b" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTc2IiwiZW1haWwiOiJlbWFpbC00NEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDU0NDUxNjA5fQ.ON0iOHQYwZU-Sgk4y0b89W-80I9GYuqRHzTQQ9Mg0cI" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "1e987e9c-530f-4629-8981-e8ac7071073b",
    "url": "/v2/apps/1e987e9c-530f-4629-8981-e8ac7071073b",
    "created_at": "2016-01-26T22:20:09Z",
    "updated_at": "2016-01-26T22:20:09Z"
  },
  "entity": {
    "name": "name-301",
    "production": false,
    "space_guid": "7414051a-2289-4d84-8d13-9497e6936f77",
    "stack_guid": "7c685c7b-6563-4dbe-b787-50a1308dce2d",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "9ca4d2ca-207d-429c-a7c3-c2a27695a349",
    "command": null,
    "console": false,
    "debug": null,
    "staging_task_id": null,
    "package_state": "PENDING",
    "health_check_type": "port",
    "health_check_timeout": null,
    "staging_failed_reason": null,
    "staging_failed_description": null,
    "diego": false,
    "docker_image": null,
    "package_updated_at": "2016-01-26T22:20:09Z",
    "detected_start_command": "",
    "enable_ssh": true,
    "docker_credentials_json": {
      "redacted_message": "[PRIVATE DATA HIDDEN]"
    },
    "ports": null,
    "space_url": "/v2/spaces/7414051a-2289-4d84-8d13-9497e6936f77",
    "stack_url": "/v2/stacks/7c685c7b-6563-4dbe-b787-50a1308dce2d",
    "events_url": "/v2/apps/1e987e9c-530f-4629-8981-e8ac7071073b/events",
    "service_bindings_url": "/v2/apps/1e987e9c-530f-4629-8981-e8ac7071073b/service_bindings",
    "routes_url": "/v2/apps/1e987e9c-530f-4629-8981-e8ac7071073b/routes"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 1535
X-Content-Type-Options: nosniff