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/65d2d52f-7ac4-4169-8872-d083e98859dc

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzNSIsImVtYWlsIjoiZW1haWwtMjA0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDgwMzg5NjJ9.hRBgc05ZmGqtboLoaVp9UHUbiUaE9tVUsh9OcKSwc54
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_keys/65d2d52f-7ac4-4169-8872-d083e98859dc" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzNSIsImVtYWlsIjoiZW1haWwtMjA0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDgwMzg5NjJ9.hRBgc05ZmGqtboLoaVp9UHUbiUaE9tVUsh9OcKSwc54" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "65d2d52f-7ac4-4169-8872-d083e98859dc",
    "url": "/v2/service_keys/65d2d52f-7ac4-4169-8872-d083e98859dc",
    "created_at": "2015-11-13T17:02:42Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1679",
    "service_instance_guid": "f8b0d1e5-7ba1-459c-afd5-98b8bd0933fc",
    "credentials": {
      "creds-key-443": "creds-val-443"
    },
    "service_instance_url": "/v2/service_instances/f8b0d1e5-7ba1-459c-afd5-98b8bd0933fc"
  }
}

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/service_keys/65d2d52f-7ac4-4169-8872-d083e98859dc
X-VCAP-Request-ID: 
Content-Length: 477
X-Content-Type-Options: nosniff