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/476d3cfb-1b1c-432b-9516-bac64e546b0a

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQiLCJlbWFpbCI6ImVtYWlsLTRAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NTM2MjI5NX0.CZqkWlHIKrhPV0MX8xHCktjJyrZz0bY5qWBfDdeFJDo
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_keys/476d3cfb-1b1c-432b-9516-bac64e546b0a" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQiLCJlbWFpbCI6ImVtYWlsLTRAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NTM2MjI5NX0.CZqkWlHIKrhPV0MX8xHCktjJyrZz0bY5qWBfDdeFJDo" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "476d3cfb-1b1c-432b-9516-bac64e546b0a",
    "url": "/v2/service_keys/476d3cfb-1b1c-432b-9516-bac64e546b0a",
    "created_at": "2015-10-13T17:31:35Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-52",
    "service_instance_guid": "2dceee8a-3962-4532-bef4-eb4419559611",
    "credentials": {
      "creds-key-19": "creds-val-19"
    },
    "service_instance_url": "/v2/service_instances/2dceee8a-3962-4532-bef4-eb4419559611"
  }
}

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/service_keys/476d3cfb-1b1c-432b-9516-bac64e546b0a
X-VCAP-Request-ID: cbb17f81-1aad-404f-b61c-18be3350292e
Content-Length: 473
X-Content-Type-Options: nosniff