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/7f1f30d3-bed3-4ba7-bf88-fd3a678ff4f5

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1MSIsImVtYWlsIjoiZW1haWwtMTc2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzg2NDE4MDJ9.e7KSixDJv2s4McKt1PLqegJRCoslKBMcV05kJOkihj4
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_keys/7f1f30d3-bed3-4ba7-bf88-fd3a678ff4f5" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1MSIsImVtYWlsIjoiZW1haWwtMTc2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzg2NDE4MDJ9.e7KSixDJv2s4McKt1PLqegJRCoslKBMcV05kJOkihj4" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "7f1f30d3-bed3-4ba7-bf88-fd3a678ff4f5",
    "url": "/v2/service_keys/7f1f30d3-bed3-4ba7-bf88-fd3a678ff4f5",
    "created_at": "2015-07-27T22:43:22Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-947",
    "service_instance_guid": "011457da-c205-4415-a578-de5df82b15a8",
    "credentials": {
      "creds-key-388": "creds-val-388"
    },
    "service_instance_url": "/v2/service_instances/011457da-c205-4415-a578-de5df82b15a8"
  }
}

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/service_keys/7f1f30d3-bed3-4ba7-bf88-fd3a678ff4f5
X-VCAP-Request-ID: a0b0cec0-ee03-4c26-8557-e8b2138a41f1
Content-Length: 476
X-Content-Type-Options: nosniff