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/cb50d810-32c0-4779-b939-2222720188b4

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQyMCIsImVtYWlsIjoiZW1haWwtMjg5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjA1MDY2NjF9.0yLGrUxLogBJS9cx6F0qwoxvTBrSGtjLeDNrRaFSahc
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_keys/cb50d810-32c0-4779-b939-2222720188b4" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQyMCIsImVtYWlsIjoiZW1haWwtMjg5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjA1MDY2NjF9.0yLGrUxLogBJS9cx6F0qwoxvTBrSGtjLeDNrRaFSahc" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "cb50d810-32c0-4779-b939-2222720188b4",
    "url": "/v2/service_keys/cb50d810-32c0-4779-b939-2222720188b4",
    "created_at": "2016-04-06T00:17:41Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2268",
    "service_instance_guid": "2860c840-57bb-4140-a65a-c7302c4c6140",
    "credentials": {
      "creds-key-54": "creds-val-54"
    },
    "service_instance_url": "/v2/service_instances/2860c840-57bb-4140-a65a-c7302c4c6140"
  }
}

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/service_keys/cb50d810-32c0-4779-b939-2222720188b4
X-VCAP-Request-ID: 
Content-Length: 475
X-Content-Type-Options: nosniff