Home
Version 3
Service Usage Events (experimental) API

Service Usage Events (experimental) API

Purge and reseed Service Usage Events

POST /v2/service_usage_events/destructively_purge_all_and_reseed_existing_instances

Destroys all existing events. Populates new usage events, one for each existing service instance. All populated events will have a created_at value of current time. There is the potential race condition if service instances are currently being created or deleted. The seeded usage events will have the same guid as the service instance.

Fields

Name Description Default Valid Values Example Values

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTkwIiwiZW1haWwiOiJlbWFpbC04M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE2NTI2NzAwfQ.kTtPPkpBSUW-wJrabaLdXSa2Nw5ey-ameHfFV2GgekA
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

POST /v2/service_usage_events/destructively_purge_all_and_reseed_existing_instances

cURL

curl "https://api.[your-domain.com]/v2/service_usage_events/destructively_purge_all_and_reseed_existing_instances" -d '' -X POST \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTkwIiwiZW1haWwiOiJlbWFpbC04M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE2NTI2NzAwfQ.kTtPPkpBSUW-wJrabaLdXSa2Nw5ey-ameHfFV2GgekA" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

X-VCAP-Request-ID: c3f31833-d341-4c13-85c6-4882514bbd69
X-Content-Type-Options: nosniff

Status

204 No Content