Home
Version 3
Service Keys API

Service Keys API

Retrieve a Particular Service Key

GET /v2/service_keys/:guid

Request

Route

GET /v2/service_keys/9990fd9c-f150-42e6-97e6-8fb27f49ec35

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1MCIsImVtYWlsIjoiZW1haWwtMjU0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTM4MzcyODF9.BD84hrKW5HWbnJcysEi7jpFrXNMYnBycnn06TD_bHE0
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_keys/9990fd9c-f150-42e6-97e6-8fb27f49ec35" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1MCIsImVtYWlsIjoiZW1haWwtMjU0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTM4MzcyODF9.BD84hrKW5HWbnJcysEi7jpFrXNMYnBycnn06TD_bHE0" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "9990fd9c-f150-42e6-97e6-8fb27f49ec35",
    "url": "/v2/service_keys/9990fd9c-f150-42e6-97e6-8fb27f49ec35",
    "created_at": "2016-01-19T19:41:21Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2287",
    "service_instance_guid": "cb685d76-5e83-4c6f-9949-e0bd41d8f8c5",
    "credentials": {
      "creds-key-68": "creds-val-68"
    },
    "service_instance_url": "/v2/service_instances/cb685d76-5e83-4c6f-9949-e0bd41d8f8c5"
  }
}

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/service_keys/9990fd9c-f150-42e6-97e6-8fb27f49ec35
X-VCAP-Request-ID: 
Content-Length: 475
X-Content-Type-Options: nosniff