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/7ad1c07d-1174-4983-b80d-bfc8e8dd0e45

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.eyJ1c2VyX2lkIjoidWFhLWlkLTE3OCIsImVtYWlsIjoiZW1haWwtMTMwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NDZ9.yKduBXIdCGVR9NI2o_0n1hfyn9jjKADsXA5Uwub7vGM
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_auth_tokens/7ad1c07d-1174-4983-b80d-bfc8e8dd0e45" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3OCIsImVtYWlsIjoiZW1haWwtMTMwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NDZ9.yKduBXIdCGVR9NI2o_0n1hfyn9jjKADsXA5Uwub7vGM" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "7ad1c07d-1174-4983-b80d-bfc8e8dd0e45",
    "url": "/v2/service_auth_tokens/7ad1c07d-1174-4983-b80d-bfc8e8dd0e45",
    "created_at": "2015-03-05T19:15:46Z",
    "updated_at": null
  },
  "entity": {
    "label": "label-30",
    "provider": "provider-21"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 09ec567a-e299-47fc-954e-2adb3f88cd4c
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