Service Bindings API

Retrieve a Particular Service Binding

GET /v2/service_bindings/:guid

Request

Route

GET /v2/service_bindings/ddd7fb26-c42d-4acf-a035-60fdd094a167

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQzMCIsImVtYWlsIjoiZW1haWwtMjkyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg5MDN9.0MsVZ0mRjX1JYkb_CfI1sjMRuP0vy5IgtdK90ktWtGg
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_bindings/ddd7fb26-c42d-4acf-a035-60fdd094a167" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQzMCIsImVtYWlsIjoiZW1haWwtMjkyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg5MDN9.0MsVZ0mRjX1JYkb_CfI1sjMRuP0vy5IgtdK90ktWtGg" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "ddd7fb26-c42d-4acf-a035-60fdd094a167",
    "url": "/v2/service_bindings/ddd7fb26-c42d-4acf-a035-60fdd094a167",
    "created_at": "2016-06-08T16:41:43Z",
    "updated_at": "2016-06-08T16:41:26Z"
  },
  "entity": {
    "app_guid": "784bca1b-c4d9-4d99-9961-9f413620031a",
    "service_instance_guid": "ada8700c-dd02-467c-937b-32ce498302f6",
    "credentials": {
      "creds-key-64": "creds-val-64"
    },
    "binding_options": {

    },
    "gateway_data": null,
    "gateway_name": "",
    "syslog_drain_url": null,
    "volume_mounts": [

    ],
    "name": "prod-db",
    "last_operation": {
      "type": "create",
      "state": "succeeded",
      "description": "",
      "updated_at": "2018-02-28T16:25:19Z",
      "created_at": "2018-02-28T16:25:19Z"
    },
    "app_url": "/v2/apps/784bca1b-c4d9-4d99-9961-9f413620031a",
    "service_instance_url": "/v2/service_instances/ada8700c-dd02-467c-937b-32ce498302f6",
    "service_binding_parameters_url": "/v2/service_bindings/ddd7fb26-c42d-4acf-a035-60fdd094a167/parameters"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 5f0b6b5a-990a-4798-bb6a-f7bdfd2ff0d2
Content-Length: 718
X-Content-Type-Options: nosniff