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/6c104b47-3e29-41cc-9169-1b90dcc3fe5f

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4OSIsImVtYWlsIjoiZW1haWwtMTk1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2OTB9.onvBwDOhM_9vDDUymX76w7-G-qqPQxgPqO28bNQiSbg
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_keys/6c104b47-3e29-41cc-9169-1b90dcc3fe5f" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4OSIsImVtYWlsIjoiZW1haWwtMTk1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2OTB9.onvBwDOhM_9vDDUymX76w7-G-qqPQxgPqO28bNQiSbg" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "6c104b47-3e29-41cc-9169-1b90dcc3fe5f",
    "url": "/v2/service_keys/6c104b47-3e29-41cc-9169-1b90dcc3fe5f",
    "created_at": "2015-12-22T18:28:10Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-945",
    "service_instance_guid": "d4996c48-e64d-4fb0-80aa-08494687f3b9",
    "credentials": {
      "creds-key-429": "creds-val-429"
    },
    "service_instance_url": "/v2/service_instances/d4996c48-e64d-4fb0-80aa-08494687f3b9"
  }
}

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/service_keys/6c104b47-3e29-41cc-9169-1b90dcc3fe5f
X-VCAP-Request-ID: 
Content-Length: 476
X-Content-Type-Options: nosniff