Home
Version 3
Apps API

Apps API

Retrieve a Particular App

GET /v2/apps/:guid

Request

Route

GET /v2/apps/849a4f5a-e2ce-4d3d-8145-3ca0384a9fd7

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTU1IiwiZW1haWwiOiJlbWFpbC01NEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDU2NDUyMjIzfQ.72-4g4bQGixcbgMaMcPOY-cfSC4sFahzexgSHs4gH-c
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/849a4f5a-e2ce-4d3d-8145-3ca0384a9fd7" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTU1IiwiZW1haWwiOiJlbWFpbC01NEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDU2NDUyMjIzfQ.72-4g4bQGixcbgMaMcPOY-cfSC4sFahzexgSHs4gH-c" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "849a4f5a-e2ce-4d3d-8145-3ca0384a9fd7",
    "url": "/v2/apps/849a4f5a-e2ce-4d3d-8145-3ca0384a9fd7",
    "created_at": "2016-02-19T02:03:43Z",
    "updated_at": "2016-02-19T02:03:43Z"
  },
  "entity": {
    "name": "name-289",
    "production": false,
    "space_guid": "c7e443b6-dde1-431b-be1e-7efbebd67e1c",
    "stack_guid": "ee24db6e-8af0-4f1d-ab2c-e02a3eb36b88",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "9727005b-4eee-4015-867e-d3334a80005a",
    "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-02-19T02:03:43Z",
    "detected_start_command": "",
    "enable_ssh": true,
    "docker_credentials_json": {
      "redacted_message": "[PRIVATE DATA HIDDEN]"
    },
    "ports": null,
    "space_url": "/v2/spaces/c7e443b6-dde1-431b-be1e-7efbebd67e1c",
    "stack_url": "/v2/stacks/ee24db6e-8af0-4f1d-ab2c-e02a3eb36b88",
    "events_url": "/v2/apps/849a4f5a-e2ce-4d3d-8145-3ca0384a9fd7/events",
    "service_bindings_url": "/v2/apps/849a4f5a-e2ce-4d3d-8145-3ca0384a9fd7/service_bindings",
    "routes_url": "/v2/apps/849a4f5a-e2ce-4d3d-8145-3ca0384a9fd7/routes",
    "route_mappings_url": "/v2/apps/849a4f5a-e2ce-4d3d-8145-3ca0384a9fd7/route_mappings"
  }
}

Headers

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