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.eyJ1c2VyX2lkIjoidWFhLWlkLTE3OSIsImVtYWlsIjoiZW1haWwtMTUyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNjJ9.b9ba4r7vsTtRosBtdayuV7MrFXjRydbP53jiZTipdxY
Host: example.org
Cookie: 

Route

GET /v2/service_auth_tokens/db8b252a-9d33-4cc9-bf3d-ec0e26ff3c44

cURL

curl "https://api.[your-domain.com]/v2/service_auth_tokens/db8b252a-9d33-4cc9-bf3d-ec0e26ff3c44" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3OSIsImVtYWlsIjoiZW1haWwtMTUyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNjJ9.b9ba4r7vsTtRosBtdayuV7MrFXjRydbP53jiZTipdxY" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: c1406de2-0696-452c-89e5-c2bfe3e05f67
X-Cf-Warnings: Support+for+the+v1+Service+Broker+API+is+deprecated+and+will+be+removed+in+the+next+major+version+of+Cloud+Foundry.+Consider+upgrading+your+broker+to+implement+the+v2+Service+Broker+API.
Content-Length: 294
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "db8b252a-9d33-4cc9-bf3d-ec0e26ff3c44",
    "url": "/v2/service_auth_tokens/db8b252a-9d33-4cc9-bf3d-ec0e26ff3c44",
    "created_at": "2014-11-24T19:32:42+00:00",
    "updated_at": null
  },
  "entity": {
    "label": "label-35",
    "provider": "provider-35"
  }
}