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.eyJ1c2VyX2lkIjoidWFhLWlkLTE1MyIsImVtYWlsIjoiZW1haWwtMTE2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTU3NTQxMzd9.fT_S_5s3bSJzoZCm9Q8ZlMgKN3kEMb9jmDlKybyqCNM
Host: example.org
Cookie: 

Route

GET /v2/service_auth_tokens/2b20ac14-80f0-42f4-83da-91147f4466bb

cURL

curl "https://api.[your-domain.com]/v2/service_auth_tokens/2b20ac14-80f0-42f4-83da-91147f4466bb" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1MyIsImVtYWlsIjoiZW1haWwtMTE2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTU3NTQxMzd9.fT_S_5s3bSJzoZCm9Q8ZlMgKN3kEMb9jmDlKybyqCNM" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 44725fc6-ce38-4128-b41c-028a1d6cab35
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": "2b20ac14-80f0-42f4-83da-91147f4466bb",
    "url": "/v2/service_auth_tokens/2b20ac14-80f0-42f4-83da-91147f4466bb",
    "created_at": "2014-11-05T01:02:17+00:00",
    "updated_at": null
  },
  "entity": {
    "label": "label-40",
    "provider": "provider-40"
  }
}