Home
Version 3
ServiceAuthTokens (deprecated) API

ServiceAuthTokens (deprecated) API

Retrieve a Particular Service Auth Token (deprecated)

GET /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

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQiLCJlbWFpbCI6ImVtYWlsLTRAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyMjk5MDg2Mn0.vgrVTaTgwYKOM50pk5pR83Pm27XCMQlHZPHSa_S6JpI
Host: example.org
Cookie: 

Route

GET /v2/service_auth_tokens/18bf1d91-58e1-4475-be71-665263be7802

cURL

curl "https://api.[your-domain.com]/v2/service_auth_tokens/18bf1d91-58e1-4475-be71-665263be7802" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQiLCJlbWFpbCI6ImVtYWlsLTRAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyMjk5MDg2Mn0.vgrVTaTgwYKOM50pk5pR83Pm27XCMQlHZPHSa_S6JpI" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: b398b79a-9d86-496a-8b50-8ae4a38ad5e1
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: 289
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "18bf1d91-58e1-4475-be71-665263be7802",
    "url": "/v2/service_auth_tokens/18bf1d91-58e1-4475-be71-665263be7802",
    "created_at": "2015-01-27T19:14:22Z",
    "updated_at": null
  },
  "entity": {
    "label": "label-11",
    "provider": "provider-11"
  }
}