Home
Version 3
Apps API

Apps API

Retrieve a Particular App

GET /v2/apps/:guid

Request

Route

GET /v2/apps/02a7f900-e8b8-4a8f-93b8-ecfd9f2a194a

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3MCIsImVtYWlsIjoiZW1haWwtMTEwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg4NTU2NzJ9.-qYuItpjlCwSmOOvaUIyCIyBekFOhmO1KM_MmopEv4Y
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/02a7f900-e8b8-4a8f-93b8-ecfd9f2a194a" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3MCIsImVtYWlsIjoiZW1haWwtMTEwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg4NTU2NzJ9.-qYuItpjlCwSmOOvaUIyCIyBekFOhmO1KM_MmopEv4Y" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "02a7f900-e8b8-4a8f-93b8-ecfd9f2a194a",
    "url": "/v2/apps/02a7f900-e8b8-4a8f-93b8-ecfd9f2a194a",
    "created_at": "2016-03-17T21:41:12Z",
    "updated_at": "2016-03-17T21:41:12Z"
  },
  "entity": {
    "name": "name-642",
    "production": false,
    "space_guid": "848f330f-f709-4bf2-ac65-46daec6614c4",
    "stack_guid": "64149006-688e-4201-b652-d0aee1f0d2f8",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "5be819ed-816c-4772-964d-406a19ef9b9b",
    "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-03-17T21:41:12Z",
    "detected_start_command": "",
    "enable_ssh": true,
    "docker_credentials_json": {
      "redacted_message": "[PRIVATE DATA HIDDEN]"
    },
    "ports": null,
    "space_url": "/v2/spaces/848f330f-f709-4bf2-ac65-46daec6614c4",
    "stack_url": "/v2/stacks/64149006-688e-4201-b652-d0aee1f0d2f8",
    "routes_url": "/v2/apps/02a7f900-e8b8-4a8f-93b8-ecfd9f2a194a/routes",
    "events_url": "/v2/apps/02a7f900-e8b8-4a8f-93b8-ecfd9f2a194a/events",
    "service_bindings_url": "/v2/apps/02a7f900-e8b8-4a8f-93b8-ecfd9f2a194a/service_bindings",
    "route_mappings_url": "/v2/apps/02a7f900-e8b8-4a8f-93b8-ecfd9f2a194a/route_mappings"
  }
}

Headers

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