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/a5721f7b-3e4b-4637-b54b-c33a2eb1383f

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTU5IiwiZW1haWwiOiJlbWFpbC01N0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ3MTE2ODMxfQ.MRcUnRHZX9_ljLwfgsbJypM3XVLJOEbzBdn_dJXRySc
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_keys/a5721f7b-3e4b-4637-b54b-c33a2eb1383f" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTU5IiwiZW1haWwiOiJlbWFpbC01N0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ3MTE2ODMxfQ.MRcUnRHZX9_ljLwfgsbJypM3XVLJOEbzBdn_dJXRySc" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "a5721f7b-3e4b-4637-b54b-c33a2eb1383f",
    "url": "/v2/service_keys/a5721f7b-3e4b-4637-b54b-c33a2eb1383f",
    "created_at": "2015-11-03T00:53:51Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-547",
    "service_instance_guid": "0db4ffea-e173-45ba-8b13-a9804566552d",
    "credentials": {
      "creds-key-147": "creds-val-147"
    },
    "service_instance_url": "/v2/service_instances/0db4ffea-e173-45ba-8b13-a9804566552d"
  }
}

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/service_keys/a5721f7b-3e4b-4637-b54b-c33a2eb1383f
X-VCAP-Request-ID: 0992d80e-1383-42e2-a97e-cc9dcc4a3df4
Content-Length: 476
X-Content-Type-Options: nosniff