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/98f375c2-ef2d-4eb2-b8e6-02d927e399e9

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxMSIsImVtYWlsIjoiZW1haWwtMjM4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzE2NDY2NDN9.RS970iy6S1adrbM2hmmL3AEHYr-eC_j2pfiAT0MJpNc
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_keys/98f375c2-ef2d-4eb2-b8e6-02d927e399e9" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxMSIsImVtYWlsIjoiZW1haWwtMjM4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzE2NDY2NDN9.RS970iy6S1adrbM2hmmL3AEHYr-eC_j2pfiAT0MJpNc" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "98f375c2-ef2d-4eb2-b8e6-02d927e399e9",
    "url": "/v2/service_keys/98f375c2-ef2d-4eb2-b8e6-02d927e399e9",
    "created_at": "2015-05-07T23:37:23Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1919",
    "service_instance_guid": "6ab8c5e8-c4f1-49f4-9365-78e2ee6991bc",
    "credentials": {
      "creds-key-524": "creds-val-524"
    },
    "service_instance_url": "/v2/service_instances/6ab8c5e8-c4f1-49f4-9365-78e2ee6991bc"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 39a9346d-3d46-4468-a7bb-6133656e7165
Content-Length: 477
X-Content-Type-Options: nosniff