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/8aa8a16c-3c26-4315-bf1a-d454fdce2de5

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQxNCIsImVtYWlsIjoiZW1haWwtMjc2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjM2MTg3Mjd9.S6KMC4DGz3zDSSFROOVmtavxR0sh8huKfIHBWsv3VZ0
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_keys/8aa8a16c-3c26-4315-bf1a-d454fdce2de5" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQxNCIsImVtYWlsIjoiZW1haWwtMjc2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjM2MTg3Mjd9.S6KMC4DGz3zDSSFROOVmtavxR0sh8huKfIHBWsv3VZ0" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "8aa8a16c-3c26-4315-bf1a-d454fdce2de5",
    "url": "/v2/service_keys/8aa8a16c-3c26-4315-bf1a-d454fdce2de5",
    "created_at": "2016-05-12T00:45:27Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2357",
    "service_instance_guid": "c88ade79-83ce-49b4-a10f-0c0d4ba96281",
    "credentials": {
      "creds-key-68": "creds-val-68"
    },
    "service_instance_url": "/v2/service_instances/c88ade79-83ce-49b4-a10f-0c0d4ba96281"
  }
}

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/service_keys/8aa8a16c-3c26-4315-bf1a-d454fdce2de5
X-VCAP-Request-ID: fd7c54a4-06b3-47ae-83d5-c217fbb8ba77
Content-Length: 475
X-Content-Type-Options: nosniff