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/346ca90b-669c-4a85-a3ee-b3e295252781

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwOCIsImVtYWlsIjoiZW1haWwtNzdAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2MTk1ODM5NX0.qUlh7NxP9HlyiKpjbxMIZSrStTiVZmMIaMJNsLmKTZs
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_keys/346ca90b-669c-4a85-a3ee-b3e295252781" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwOCIsImVtYWlsIjoiZW1haWwtNzdAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2MTk1ODM5NX0.qUlh7NxP9HlyiKpjbxMIZSrStTiVZmMIaMJNsLmKTZs" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "346ca90b-669c-4a85-a3ee-b3e295252781",
    "url": "/v2/service_keys/346ca90b-669c-4a85-a3ee-b3e295252781",
    "created_at": "2016-04-22T19:33:15Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-237",
    "service_instance_guid": "a824d787-ee6d-4bae-90e8-f3d1d263a5a2",
    "credentials": {
      "creds-key-11": "creds-val-11"
    },
    "service_instance_url": "/v2/service_instances/a824d787-ee6d-4bae-90e8-f3d1d263a5a2"
  }
}

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/service_keys/346ca90b-669c-4a85-a3ee-b3e295252781
X-VCAP-Request-ID: 0850639a-3946-4d9d-b00a-0bead38877ac
Content-Length: 474
X-Content-Type-Options: nosniff