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/efbf6646-4338-4c46-ac5c-f7c8411d1a2e

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0MiIsImVtYWlsIjoiZW1haWwtMTczQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTY0NTIyMzd9.4t9kWLwV_yFoTov60ANreda7zSuNP35mb9GncDAVsKQ
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_keys/efbf6646-4338-4c46-ac5c-f7c8411d1a2e" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0MiIsImVtYWlsIjoiZW1haWwtMTczQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTY0NTIyMzd9.4t9kWLwV_yFoTov60ANreda7zSuNP35mb9GncDAVsKQ" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "efbf6646-4338-4c46-ac5c-f7c8411d1a2e",
    "url": "/v2/service_keys/efbf6646-4338-4c46-ac5c-f7c8411d1a2e",
    "created_at": "2016-02-19T02:03:57Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2057",
    "service_instance_guid": "c6e09295-0385-45d0-abb6-ba976267ca35",
    "credentials": {
      "creds-key-40": "creds-val-40"
    },
    "service_instance_url": "/v2/service_instances/c6e09295-0385-45d0-abb6-ba976267ca35"
  }
}

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/service_keys/efbf6646-4338-4c46-ac5c-f7c8411d1a2e
X-VCAP-Request-ID: 
Content-Length: 475
X-Content-Type-Options: nosniff