Home
Version 3
ServiceAuthTokens (deprecated) API

ServiceAuthTokens (deprecated) API

Delete a Particular Service Auth Token (deprecated)

DELETE /v2/service_auth_tokens/:guid

Request

Route

DELETE /v2/service_auth_tokens/42101417-a16b-4e19-b0a1-a1f36f942f18

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'.
  • true
  • false

Body

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3MCIsImVtYWlsIjoiZW1haWwtMTE2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDE2NjI2MDN9.vK0oaT12F_Fvs0QH4rLLMypf9bJ_Su_9sHdBsV-_gGY
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_auth_tokens/42101417-a16b-4e19-b0a1-a1f36f942f18" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3MCIsImVtYWlsIjoiZW1haWwtMTE2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDE2NjI2MDN9.vK0oaT12F_Fvs0QH4rLLMypf9bJ_Su_9sHdBsV-_gGY" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

204 No Content

Headers

X-VCAP-Request-ID: 09e57560-d097-42d7-93c9-fb4d9ecef31e
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