App Usage Events API

Retrieve a Particular App Usage Event

GET /v2/app_usage_events/:guid

Request

Route

GET /v2/app_usage_events/20822a88-759b-4c64-8001-eb8a77db106b

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4MyIsImVtYWlsIjoiZW1haWwtMTM4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg4OTN9.qtZmUWB_9uhlWaRm0MtDllmhckSwl6cpAtK7swN8VE8
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/app_usage_events/20822a88-759b-4c64-8001-eb8a77db106b" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4MyIsImVtYWlsIjoiZW1haWwtMTM4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg4OTN9.qtZmUWB_9uhlWaRm0MtDllmhckSwl6cpAtK7swN8VE8" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "20822a88-759b-4c64-8001-eb8a77db106b",
    "url": "/v2/app_usage_events/20822a88-759b-4c64-8001-eb8a77db106b",
    "created_at": "2016-06-08T16:41:33Z"
  },
  "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-c1c81beb-bb7b-4785-be71-c28c3ed3cddc",
    "app_name": "name-1651",
    "space_guid": "guid-df51e218-3d43-4364-95c1-69ec8e5af1e4",
    "space_name": "name-1652",
    "org_guid": "guid-eb897843-1389-43ed-903a-97523cd7a0cb",
    "buildpack_guid": "guid-b287bca2-c07c-44cf-aed5-4faa78b38023",
    "buildpack_name": "name-1653",
    "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: 805ef42c-1cdb-41ee-ab58-40addefb2c20
Content-Length: 951
X-Content-Type-Options: nosniff