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.eyJ1c2VyX2lkIjoidWFhLWlkLTUxIiwiZW1haWwiOiJlbWFpbC00NEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE2NTI2Njk3fQ.cOtPYZflwSwTvPNvHemJtOwy1PPnln7UxedERRBCW8Y
Host: example.org
Cookie: 

Route

GET /v2/service_auth_tokens/9dcbecec-41e3-46c6-97d0-ad8c374d2e32

cURL

curl "https://api.[your-domain.com]/v2/service_auth_tokens/9dcbecec-41e3-46c6-97d0-ad8c374d2e32" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTUxIiwiZW1haWwiOiJlbWFpbC00NEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE2NTI2Njk3fQ.cOtPYZflwSwTvPNvHemJtOwy1PPnln7UxedERRBCW8Y" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 91a67c59-efdd-4c26-b73f-185bffefd6bc
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": "9dcbecec-41e3-46c6-97d0-ad8c374d2e32",
    "url": "/v2/service_auth_tokens/9dcbecec-41e3-46c6-97d0-ad8c374d2e32",
    "created_at": "2014-11-13T23:38:17+00:00",
    "updated_at": null
  },
  "entity": {
    "label": "label-15",
    "provider": "provider-15"
  }
}