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/c2106ea0-958f-448a-944a-a99941b79e90

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTYwIiwiZW1haWwiOiJlbWFpbC0zMUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQxNjYyNTk1fQ.Eh8VS6maMhGjPIIAbO3eQna2mWcj3VQc-QCz4ExBJOE
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_keys/c2106ea0-958f-448a-944a-a99941b79e90" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTYwIiwiZW1haWwiOiJlbWFpbC0zMUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQxNjYyNTk1fQ.Eh8VS6maMhGjPIIAbO3eQna2mWcj3VQc-QCz4ExBJOE" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "c2106ea0-958f-448a-944a-a99941b79e90",
    "url": "/v2/service_keys/c2106ea0-958f-448a-944a-a99941b79e90",
    "created_at": "2015-08-31T21:49:55Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-216",
    "service_instance_guid": "fba459b3-f489-4954-8c85-ce018746dfbe",
    "credentials": {
      "creds-key-69": "creds-val-69"
    },
    "service_instance_url": "/v2/service_instances/fba459b3-f489-4954-8c85-ce018746dfbe"
  }
}

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/service_keys/c2106ea0-958f-448a-944a-a99941b79e90
X-VCAP-Request-ID: 0b6777cf-b3c4-4679-b9e8-473bc982dc49
Content-Length: 474
X-Content-Type-Options: nosniff