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/5df175e1-08ad-468e-a4e3-adb9b3de881b

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0OSIsImVtYWlsIjoiZW1haWwtMTU2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg4NTU2NzZ9.4OM9JYWSeIZKX5jLAHwA2GIdvJ6bCLRuFZCmVBkKfM0
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_keys/5df175e1-08ad-468e-a4e3-adb9b3de881b" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0OSIsImVtYWlsIjoiZW1haWwtMTU2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg4NTU2NzZ9.4OM9JYWSeIZKX5jLAHwA2GIdvJ6bCLRuFZCmVBkKfM0" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "5df175e1-08ad-468e-a4e3-adb9b3de881b",
    "url": "/v2/service_keys/5df175e1-08ad-468e-a4e3-adb9b3de881b",
    "created_at": "2016-03-17T21:41:16Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-892",
    "service_instance_guid": "f84faa84-acba-468e-b244-fa3c41f64868",
    "credentials": {
      "creds-key-29": "creds-val-29"
    },
    "service_instance_url": "/v2/service_instances/f84faa84-acba-468e-b244-fa3c41f64868"
  }
}

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/service_keys/5df175e1-08ad-468e-a4e3-adb9b3de881b
X-VCAP-Request-ID: 
Content-Length: 474
X-Content-Type-Options: nosniff