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/54d5a9f0-1e14-45be-8d5e-9f2062c48e3c

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5MSIsImVtYWlsIjoiZW1haWwtMTUyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg1OTk0NDB9.n9OWjlHkYaDQLyaiSniN7JBX38Af0i3xEprifsmIAQI
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_keys/54d5a9f0-1e14-45be-8d5e-9f2062c48e3c" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5MSIsImVtYWlsIjoiZW1haWwtMTUyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg1OTk0NDB9.n9OWjlHkYaDQLyaiSniN7JBX38Af0i3xEprifsmIAQI" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "54d5a9f0-1e14-45be-8d5e-9f2062c48e3c",
    "url": "/v2/service_keys/54d5a9f0-1e14-45be-8d5e-9f2062c48e3c",
    "created_at": "2016-03-14T22:30:39Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1828",
    "service_instance_guid": "2eed24e4-1831-4926-9dab-5601661e1262",
    "credentials": {
      "creds-key-52": "creds-val-52"
    },
    "service_instance_url": "/v2/service_instances/2eed24e4-1831-4926-9dab-5601661e1262"
  }
}

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/service_keys/54d5a9f0-1e14-45be-8d5e-9f2062c48e3c
X-VCAP-Request-ID: 
Content-Length: 475
X-Content-Type-Options: nosniff