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/6c1aeafc-e2f1-42b3-86cc-7c22f89783ab

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1OSIsImVtYWlsIjoiZW1haWwtMjA1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzQ5OTR9.Arkkyc8RODwHaRd9NlwpFUoNjQgaZDSY0a9piGWTPk4
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_keys/6c1aeafc-e2f1-42b3-86cc-7c22f89783ab" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1OSIsImVtYWlsIjoiZW1haWwtMjA1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzQ5OTR9.Arkkyc8RODwHaRd9NlwpFUoNjQgaZDSY0a9piGWTPk4" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "6c1aeafc-e2f1-42b3-86cc-7c22f89783ab",
    "url": "/v2/service_keys/6c1aeafc-e2f1-42b3-86cc-7c22f89783ab",
    "created_at": "2015-05-21T01:03:14Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1853",
    "service_instance_guid": "cd2270ef-9e18-4fc0-bf4e-cfc4b0db7ee8",
    "credentials": {
      "creds-key-464": "creds-val-464"
    },
    "service_instance_url": "/v2/service_instances/cd2270ef-9e18-4fc0-bf4e-cfc4b0db7ee8"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 1b7781f9-f0da-4724-8401-e78c7252766c
Content-Length: 477
X-Content-Type-Options: nosniff