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/0f899b51-0cbf-449c-b0f8-2c015ae06ebd

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxNiIsImVtYWlsIjoiZW1haWwtMjE5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDB9.xy8OXc1kHi5zQGOH5vQUZGHUXpeje7s36ILBX_jnDgk
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_keys/0f899b51-0cbf-449c-b0f8-2c015ae06ebd" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxNiIsImVtYWlsIjoiZW1haWwtMjE5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDB9.xy8OXc1kHi5zQGOH5vQUZGHUXpeje7s36ILBX_jnDgk" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "0f899b51-0cbf-449c-b0f8-2c015ae06ebd",
    "url": "/v2/service_keys/0f899b51-0cbf-449c-b0f8-2c015ae06ebd",
    "created_at": "2015-10-07T00:35:40Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2081",
    "service_instance_guid": "dead9979-a83a-4e7d-94b6-dcd8bab7e7bf",
    "credentials": {
      "creds-key-483": "creds-val-483"
    },
    "service_instance_url": "/v2/service_instances/dead9979-a83a-4e7d-94b6-dcd8bab7e7bf"
  }
}

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/service_keys/0f899b51-0cbf-449c-b0f8-2c015ae06ebd
X-VCAP-Request-ID: 6ab4e1ed-e96b-4fae-9128-ea1533701ddd
Content-Length: 477
X-Content-Type-Options: nosniff