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/ae4a2ec6-345b-4567-911b-1abb9040d411

Parameters

Name Description Valid Values Example Values
guid The guid of the Service Auth Token

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.eyJ1c2VyX2lkIjoidWFhLWlkLTM1NSIsImVtYWlsIjoiZW1haWwtMjU3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2Nzh9.9EqLph_x1Zv1W22BchlzyKfFikmPKS27G4ENpfRAGO8
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_auth_tokens/ae4a2ec6-345b-4567-911b-1abb9040d411" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1NSIsImVtYWlsIjoiZW1haWwtMjU3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2Nzh9.9EqLph_x1Zv1W22BchlzyKfFikmPKS27G4ENpfRAGO8" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "ae4a2ec6-345b-4567-911b-1abb9040d411",
    "url": "/v2/service_auth_tokens/ae4a2ec6-345b-4567-911b-1abb9040d411",
    "created_at": "2015-03-03T00:51:18Z",
    "updated_at": null
  },
  "entity": {
    "label": "label-62",
    "provider": "provider-28"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 756c24cc-344e-4a39-9c60-a839d3589c85
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