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/17569517-18b0-4dec-abd9-a40ce6d08afd

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1NSIsImVtYWlsIjoiZW1haWwtMTU3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjEzNzQ2MzN9.-VTYvyKJYznkejRxNd4YEhmfd6qDEKNVN5kcPBuVlzI
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_keys/17569517-18b0-4dec-abd9-a40ce6d08afd" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1NSIsImVtYWlsIjoiZW1haWwtMTU3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjEzNzQ2MzN9.-VTYvyKJYznkejRxNd4YEhmfd6qDEKNVN5kcPBuVlzI" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "17569517-18b0-4dec-abd9-a40ce6d08afd",
    "url": "/v2/service_keys/17569517-18b0-4dec-abd9-a40ce6d08afd",
    "created_at": "2016-04-16T01:23:53Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-615",
    "service_instance_guid": "ae0d753d-3bf2-4a07-adde-a0a575b60c22",
    "credentials": {
      "creds-key-14": "creds-val-14"
    },
    "service_instance_url": "/v2/service_instances/ae0d753d-3bf2-4a07-adde-a0a575b60c22"
  }
}

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/service_keys/17569517-18b0-4dec-abd9-a40ce6d08afd
X-VCAP-Request-ID: 505e4531-25e6-495a-b969-ee47b8ad4e71
Content-Length: 474
X-Content-Type-Options: nosniff