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/164c7701-0b12-4e8c-8c04-4c92a228b378

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTY3IiwiZW1haWwiOiJlbWFpbC0zNUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQyNjAxNTI3fQ.xqZdS9XH2WgafTmX6YmNQItTpyUlsbHc66EFfsVSjBA
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_keys/164c7701-0b12-4e8c-8c04-4c92a228b378" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTY3IiwiZW1haWwiOiJlbWFpbC0zNUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQyNjAxNTI3fQ.xqZdS9XH2WgafTmX6YmNQItTpyUlsbHc66EFfsVSjBA" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "164c7701-0b12-4e8c-8c04-4c92a228b378",
    "url": "/v2/service_keys/164c7701-0b12-4e8c-8c04-4c92a228b378",
    "created_at": "2015-09-11T18:38:47Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-164",
    "service_instance_guid": "1275031b-be44-4a48-b736-84413b8b4247",
    "credentials": {
      "creds-key-84": "creds-val-84"
    },
    "service_instance_url": "/v2/service_instances/1275031b-be44-4a48-b736-84413b8b4247"
  }
}

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/service_keys/164c7701-0b12-4e8c-8c04-4c92a228b378
X-VCAP-Request-ID: 77ee3ab8-89c3-4a4e-a81f-500a17d17dba
Content-Length: 474
X-Content-Type-Options: nosniff