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/3c3c96c1-5927-44d6-8978-c94213e96dd4

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ2MSIsImVtYWlsIjoiZW1haWwtMzI5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NjV9.NWV8Y_wDuo9lxHDuH8ZyJukYfXILQfMNdjTQu3TeO5U
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_keys/3c3c96c1-5927-44d6-8978-c94213e96dd4" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ2MSIsImVtYWlsIjoiZW1haWwtMzI5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NjV9.NWV8Y_wDuo9lxHDuH8ZyJukYfXILQfMNdjTQu3TeO5U" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "3c3c96c1-5927-44d6-8978-c94213e96dd4",
    "url": "/v2/service_keys/3c3c96c1-5927-44d6-8978-c94213e96dd4",
    "created_at": "2015-09-30T23:31:04Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2484",
    "service_instance_guid": "100f51b8-6d0d-49b2-85c9-11a2efa5d54a",
    "credentials": {
      "creds-key-730": "creds-val-730"
    },
    "service_instance_url": "/v2/service_instances/100f51b8-6d0d-49b2-85c9-11a2efa5d54a"
  }
}

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/service_keys/3c3c96c1-5927-44d6-8978-c94213e96dd4
X-VCAP-Request-ID: 08ac0261-11d3-4981-aa68-d2f0d7ee7abb
Content-Length: 477
X-Content-Type-Options: nosniff