Home
Version 3
ServiceAuthTokens (deprecated) API

ServiceAuthTokens (deprecated) API

Delete a Particular Service Auth Token (deprecated)

DELETE /v2/service_auth_tokens/:guid

Fields

Name Description Default Valid Values Example Values
guid The guid of the service auth token.
label Human readable name for the auth token
  • Nic-Token
provider Human readable name of service provider
  • Face-Offer
token The secret auth token used for authenticating

Parameters

Name Description Valid Values Example Values
guid The guid of the Service Auth Token
async Will run the delete request in a background job. Recommended: 'true'.

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEiLCJlbWFpbCI6ImVtYWlsLTFAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyMjk5MDg2MX0.BgwXR9j6RdK57qZvJ2rA3Y2kYMspILeFrAYAY8rDI7w
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

DELETE /v2/service_auth_tokens/9eab1c10-a9c3-47cd-b6f3-0dac42970220

cURL

curl "https://api.[your-domain.com]/v2/service_auth_tokens/9eab1c10-a9c3-47cd-b6f3-0dac42970220" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEiLCJlbWFpbCI6ImVtYWlsLTFAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyMjk5MDg2MX0.BgwXR9j6RdK57qZvJ2rA3Y2kYMspILeFrAYAY8rDI7w" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

X-VCAP-Request-ID: 06c41fb4-84a0-4d53-9288-fdd1f87f94ff
X-Cf-Warnings: Support+for+the+v1+Service+Broker+API+is+deprecated+and+will+re+removed+in+the+next+major+version+of+Cloud+Foundry.+Consider+upgrading+your+broker+to+implement+the+v2+Service+Broker+API.
X-Content-Type-Options: nosniff

Status

204 No Content