Home
Version 3
App Usage Events API

App Usage Events API

Retrieve a Particular App Usage Event

GET /v2/app_usage_events/:guid

Request

Route

GET /v2/app_usage_events/2de0005b-8cc3-4635-8e89-b27cd16ef650

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0NCIsImVtYWlsIjoiZW1haWwtMjQ2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjE5NTg0MDl9.ANmNHJqKaBoU5OW04YZKk50KWIqHbuxrZtKxopJmnWo
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/app_usage_events/2de0005b-8cc3-4635-8e89-b27cd16ef650" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0NCIsImVtYWlsIjoiZW1haWwtMjQ2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjE5NTg0MDl9.ANmNHJqKaBoU5OW04YZKk50KWIqHbuxrZtKxopJmnWo" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "2de0005b-8cc3-4635-8e89-b27cd16ef650",
    "url": "/v2/app_usage_events/2de0005b-8cc3-4635-8e89-b27cd16ef650",
    "created_at": "2016-04-22T19:33:29Z"
  },
  "entity": {
    "state": "STARTED",
    "previous_state": null,
    "memory_in_mb_per_instance": 564,
    "previous_memory_in_mb_per_instance": null,
    "instance_count": 1,
    "previous_instance_count": null,
    "app_guid": "guid-d937285e-1a99-4e90-81ae-82bac38e97cd",
    "app_name": "name-1141",
    "space_guid": "guid-97299e3d-ab3d-4cdf-9e64-94bf1fc81da6",
    "space_name": "name-1142",
    "org_guid": "guid-05de6161-56e2-4f4a-9913-384ea36aa6c4",
    "buildpack_guid": "guid-1749767c-2357-4147-a78d-6acbce6ee2dc",
    "buildpack_name": "name-1143",
    "package_state": "STAGED",
    "previous_package_state": null,
    "parent_app_guid": null,
    "parent_app_name": null,
    "process_type": "web",
    "task_name": null,
    "task_guid": null
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: a0beaf2a-8905-487a-81c3-83a882ba1d8e
Content-Length: 951
X-Content-Type-Options: nosniff