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/1ff994ae-66ff-4cb2-8c81-f50b8173b8fe

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3MiIsImVtYWlsIjoiZW1haWwtMTM5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTQ0NTE2MTh9.NlZMKF3ecLXcDO0KxSw4QtKertM7qyYrwdeZsvdwBPs
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_keys/1ff994ae-66ff-4cb2-8c81-f50b8173b8fe" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3MiIsImVtYWlsIjoiZW1haWwtMTM5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTQ0NTE2MTh9.NlZMKF3ecLXcDO0KxSw4QtKertM7qyYrwdeZsvdwBPs" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "1ff994ae-66ff-4cb2-8c81-f50b8173b8fe",
    "url": "/v2/service_keys/1ff994ae-66ff-4cb2-8c81-f50b8173b8fe",
    "created_at": "2016-01-26T22:20:18Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-770",
    "service_instance_guid": "445d86fb-f680-417c-b528-c855d57e88c3",
    "credentials": {
      "creds-key-40": "creds-val-40"
    },
    "service_instance_url": "/v2/service_instances/445d86fb-f680-417c-b528-c855d57e88c3"
  }
}

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/service_keys/1ff994ae-66ff-4cb2-8c81-f50b8173b8fe
X-VCAP-Request-ID: 
Content-Length: 474
X-Content-Type-Options: nosniff