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/8d24d049-5e80-45f0-be03-3d785328331c

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzMSIsImVtYWlsIjoiZW1haWwtMTQ5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMTB9.e_KDAp8JKkyzkU4NCo11VhWoOhKBXUN0_zLGOgxpLaA
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_keys/8d24d049-5e80-45f0-be03-3d785328331c" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzMSIsImVtYWlsIjoiZW1haWwtMTQ5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMTB9.e_KDAp8JKkyzkU4NCo11VhWoOhKBXUN0_zLGOgxpLaA" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "8d24d049-5e80-45f0-be03-3d785328331c",
    "url": "/v2/service_keys/8d24d049-5e80-45f0-be03-3d785328331c",
    "created_at": "2015-06-04T00:05:10Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1569",
    "service_instance_guid": "082cf10f-c78e-4a29-a35a-fbd25978c816",
    "credentials": {
      "creds-key-344": "creds-val-344"
    },
    "service_instance_url": "/v2/service_instances/082cf10f-c78e-4a29-a35a-fbd25978c816"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 912e9f31-ee93-40c7-abc4-0696ba0d2724
Content-Length: 477
X-Content-Type-Options: nosniff