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/143a1128-23b4-4875-a9b8-34fd86e1e218

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.eyJ1c2VyX2lkIjoidWFhLWlkLTM5NSIsImVtYWlsIjoiZW1haWwtMjg3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk4MDB9.90yIpPDIVarDDbnsS8uP0wT0wW5MKzznbiCplaXFjtM
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_auth_tokens/143a1128-23b4-4875-a9b8-34fd86e1e218" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5NSIsImVtYWlsIjoiZW1haWwtMjg3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk4MDB9.90yIpPDIVarDDbnsS8uP0wT0wW5MKzznbiCplaXFjtM" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "143a1128-23b4-4875-a9b8-34fd86e1e218",
    "url": "/v2/service_auth_tokens/143a1128-23b4-4875-a9b8-34fd86e1e218",
    "created_at": "2015-07-06T23:23:20Z",
    "updated_at": null
  },
  "entity": {
    "label": "label-78",
    "provider": "provider-4"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 477b126a-62c4-4d40-96d9-28a2b1518bc8
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