Service Keys API

Retrieve a Particular Service Key

GET /v2/service_keys/:guid

Request

Route

GET /v2/service_keys/6ad2cc9b-1996-49a3-9538-dfc0da3b1f32

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzIiwiZW1haWwiOiJlbWFpbC0yM0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDY2MDA4ODgzfQ.obiaVvQZ2N5n1HBqsxGhSgJXED4dS915yduH65E1wtI
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_keys/6ad2cc9b-1996-49a3-9538-dfc0da3b1f32" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzIiwiZW1haWwiOiJlbWFpbC0yM0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDY2MDA4ODgzfQ.obiaVvQZ2N5n1HBqsxGhSgJXED4dS915yduH65E1wtI" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "6ad2cc9b-1996-49a3-9538-dfc0da3b1f32",
    "url": "/v2/service_keys/6ad2cc9b-1996-49a3-9538-dfc0da3b1f32",
    "created_at": "2016-06-08T16:41:23Z",
    "updated_at": "2016-06-08T16:41:26Z"
  },
  "entity": {
    "name": "name-140",
    "service_instance_guid": "ca567b3d-e142-4139-94e3-1e0c010ba728",
    "credentials": {
      "creds-key-7": "creds-val-7"
    },
    "service_instance_url": "/v2/service_instances/ca567b3d-e142-4139-94e3-1e0c010ba728",
    "service_key_parameters_url": "/v2/service_keys/6ad2cc9b-1996-49a3-9538-dfc0da3b1f32/parameters"
  }
}

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/service_keys/6ad2cc9b-1996-49a3-9538-dfc0da3b1f32
X-VCAP-Request-ID: 7789f79f-5565-4122-baa2-89a8de1a21c5
Content-Length: 472
X-Content-Type-Options: nosniff