Home
Version 3
Service Instances API

Service Instances API

Binding a Service Instance to a Route

PUT /v2/service_instances/:service_instance_guid/routes/:route_guid

Request

Route

PUT /v2/service_instances/99094538-81da-4409-94d1-7cf49b86269c/routes/200459c3-e94c-4edb-a920-4f40fa47687e

Body

Name Description Default Valid Values Example Values
parameters Arbitrary parameters to pass along to the service broker. Must be a JSON object.
{
  "parameters": {
    "the_service_broker": "wants this object"
  }
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTcxIiwiZW1haWwiOiJlbWFpbC03MEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDU2NDUyMjI2fQ.2UilIzqhWK0y3rRiWxcWADFtr9rH7HdlpWzh2rrQsHk
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_instances/99094538-81da-4409-94d1-7cf49b86269c/routes/200459c3-e94c-4edb-a920-4f40fa47687e" -d '{
  "parameters": {
    "the_service_broker": "wants this object"
  }
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTcxIiwiZW1haWwiOiJlbWFpbC03MEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDU2NDUyMjI2fQ.2UilIzqhWK0y3rRiWxcWADFtr9rH7HdlpWzh2rrQsHk" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "99094538-81da-4409-94d1-7cf49b86269c",
    "url": "/v2/service_instances/99094538-81da-4409-94d1-7cf49b86269c",
    "created_at": "2016-02-19T02:03:46Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-497",
    "credentials": {
      "creds-key-14": "creds-val-14"
    },
    "service_plan_guid": "b5ff2742-9e17-429c-845d-2e67fa4e60a9",
    "space_guid": "9007fb72-9858-440c-864c-18cdbd83a2b5",
    "gateway_data": null,
    "dashboard_url": null,
    "type": "managed_service_instance",
    "last_operation": null,
    "tags": [

    ],
    "space_url": "/v2/spaces/9007fb72-9858-440c-864c-18cdbd83a2b5",
    "service_plan_url": "/v2/service_plans/b5ff2742-9e17-429c-845d-2e67fa4e60a9",
    "service_bindings_url": "/v2/service_instances/99094538-81da-4409-94d1-7cf49b86269c/service_bindings",
    "service_keys_url": "/v2/service_instances/99094538-81da-4409-94d1-7cf49b86269c/service_keys",
    "routes_url": "/v2/service_instances/99094538-81da-4409-94d1-7cf49b86269c/routes"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 1029
X-Content-Type-Options: nosniff