Home
Version 3
ServiceAuthTokens (deprecated) API

ServiceAuthTokens (deprecated) API

Retrieve a Particular Service Auth Token (deprecated)

GET /v2/service_auth_tokens/:guid

Request

Route

GET /v2/service_auth_tokens/92dcf3c8-8f0a-4e73-a0c1-848c7ebc8d00

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.eyJ1c2VyX2lkIjoidWFhLWlkLTIxNyIsImVtYWlsIjoiZW1haWwtMTQ5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjc0ODA4NTV9.uhddWRM3xEHqLngbGo3a71U9UlS6qnGJ3OiHFBjUPUk
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_auth_tokens/92dcf3c8-8f0a-4e73-a0c1-848c7ebc8d00" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxNyIsImVtYWlsIjoiZW1haWwtMTQ5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjc0ODA4NTV9.uhddWRM3xEHqLngbGo3a71U9UlS6qnGJ3OiHFBjUPUk" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "92dcf3c8-8f0a-4e73-a0c1-848c7ebc8d00",
    "url": "/v2/service_auth_tokens/92dcf3c8-8f0a-4e73-a0c1-848c7ebc8d00",
    "created_at": "2015-03-20T18:27:35Z",
    "updated_at": null
  },
  "entity": {
    "label": "label-40",
    "provider": "provider-4"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 7ce90d6c-7fc1-4972-ba92-63f31f2b914f
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.
Content-Length: 288
X-Content-Type-Options: nosniff