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/c3d74790-fc22-494c-8a64-a872cb01e8c7

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMSIsImVtYWlsIjoiZW1haWwtODhAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1MzMxMDk3Nn0.9Ds-G_N0gcas2g0M6pbW1vmEkO2qDyKmeQyGICzAhS4
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_keys/c3d74790-fc22-494c-8a64-a872cb01e8c7" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMSIsImVtYWlsIjoiZW1haWwtODhAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1MzMxMDk3Nn0.9Ds-G_N0gcas2g0M6pbW1vmEkO2qDyKmeQyGICzAhS4" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "c3d74790-fc22-494c-8a64-a872cb01e8c7",
    "url": "/v2/service_keys/c3d74790-fc22-494c-8a64-a872cb01e8c7",
    "created_at": "2016-01-13T17:29:36Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-421",
    "service_instance_guid": "12e02987-8a97-4b9c-8019-8d1f8219e8d0",
    "credentials": {
      "creds-key-30": "creds-val-30"
    },
    "service_instance_url": "/v2/service_instances/12e02987-8a97-4b9c-8019-8d1f8219e8d0"
  }
}

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/service_keys/c3d74790-fc22-494c-8a64-a872cb01e8c7
X-VCAP-Request-ID: 
Content-Length: 474
X-Content-Type-Options: nosniff