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/e5211784-a9cc-4546-9ff2-eaa9fe01d9c0

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxOSIsImVtYWlsIjoiZW1haWwtMjIxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDk1MzE1MzF9.ts7rnI4Z-A4FkFP4g0JbOdm7rwLFAVmlKsrvEPuTVMg
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_keys/e5211784-a9cc-4546-9ff2-eaa9fe01d9c0" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxOSIsImVtYWlsIjoiZW1haWwtMjIxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDk1MzE1MzF9.ts7rnI4Z-A4FkFP4g0JbOdm7rwLFAVmlKsrvEPuTVMg" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "e5211784-a9cc-4546-9ff2-eaa9fe01d9c0",
    "url": "/v2/service_keys/e5211784-a9cc-4546-9ff2-eaa9fe01d9c0",
    "created_at": "2015-11-30T23:38:51Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2219",
    "service_instance_guid": "c72b4dfb-6aff-43a4-8480-08ed0910b314",
    "credentials": {
      "creds-key-485": "creds-val-485"
    },
    "service_instance_url": "/v2/service_instances/c72b4dfb-6aff-43a4-8480-08ed0910b314"
  }
}

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/service_keys/e5211784-a9cc-4546-9ff2-eaa9fe01d9c0
X-VCAP-Request-ID: 
Content-Length: 477
X-Content-Type-Options: nosniff