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/797453ae-82d3-4f50-a600-49ab5cc5555d

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5OCIsImVtYWlsIjoiZW1haWwtMjE1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk3OTN9._pJQcIQQJcce8asXEFFpXB6O9DHa75DbahNTpxIcgJY
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_keys/797453ae-82d3-4f50-a600-49ab5cc5555d" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5OCIsImVtYWlsIjoiZW1haWwtMjE1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk3OTN9._pJQcIQQJcce8asXEFFpXB6O9DHa75DbahNTpxIcgJY" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "797453ae-82d3-4f50-a600-49ab5cc5555d",
    "url": "/v2/service_keys/797453ae-82d3-4f50-a600-49ab5cc5555d",
    "created_at": "2015-07-06T23:23:13Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1779",
    "service_instance_guid": "2c1e08c8-bcef-44fb-9cc7-0076f7dd41fa",
    "credentials": {
      "creds-key-476": "creds-val-476"
    },
    "service_instance_url": "/v2/service_instances/2c1e08c8-bcef-44fb-9cc7-0076f7dd41fa"
  }
}

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/service_keys/797453ae-82d3-4f50-a600-49ab5cc5555d
X-VCAP-Request-ID: 378b63f3-0d25-4e66-8e9e-b5c40e708407
Content-Length: 477
X-Content-Type-Options: nosniff