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/bc811f49-52c9-49bc-9012-502d44f11ad5

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxOSIsImVtYWlsIjoiZW1haWwtMjQ2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzIzMTM2MjR9.zIVac9EAMXBKImd19vYLpbrzocJhb7hV-IxLHxTt0o4
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_keys/bc811f49-52c9-49bc-9012-502d44f11ad5" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxOSIsImVtYWlsIjoiZW1haWwtMjQ2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzIzMTM2MjR9.zIVac9EAMXBKImd19vYLpbrzocJhb7hV-IxLHxTt0o4" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "bc811f49-52c9-49bc-9012-502d44f11ad5",
    "url": "/v2/service_keys/bc811f49-52c9-49bc-9012-502d44f11ad5",
    "created_at": "2015-05-15T16:53:44Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1972",
    "service_instance_guid": "d8c3009e-7631-4858-9201-d5f431d4b21f",
    "credentials": {
      "creds-key-555": "creds-val-555"
    },
    "service_instance_url": "/v2/service_instances/d8c3009e-7631-4858-9201-d5f431d4b21f"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: da6c7995-1725-4e1b-b25e-1ccf48bda1e0
Content-Length: 477
X-Content-Type-Options: nosniff