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/5b9ba5dd-6204-47d3-bbc7-9ef18b5e54bb

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyMiIsImVtYWlsIjoiZW1haWwtMTI2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NDV9.l2tfV94WbzFsBpiivK5sG9PepBvRhqwmK6JWYze_HUY
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_keys/5b9ba5dd-6204-47d3-bbc7-9ef18b5e54bb" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyMiIsImVtYWlsIjoiZW1haWwtMTI2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NDV9.l2tfV94WbzFsBpiivK5sG9PepBvRhqwmK6JWYze_HUY" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "5b9ba5dd-6204-47d3-bbc7-9ef18b5e54bb",
    "url": "/v2/service_keys/5b9ba5dd-6204-47d3-bbc7-9ef18b5e54bb",
    "created_at": "2015-10-15T23:52:24Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1490",
    "service_instance_guid": "edd31a0d-1381-4377-aee5-fe0a0948fb5d",
    "credentials": {
      "creds-key-275": "creds-val-275"
    },
    "service_instance_url": "/v2/service_instances/edd31a0d-1381-4377-aee5-fe0a0948fb5d"
  }
}

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/service_keys/5b9ba5dd-6204-47d3-bbc7-9ef18b5e54bb
X-VCAP-Request-ID: b31ec24c-8f54-47c1-9335-7100f1b602ff
Content-Length: 477
X-Content-Type-Options: nosniff