Home
Version 3
Service Instances API

Service Instances API

Binding a service instance to a route (experimental)

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

Request

Route

PUT /v2/service_instances/6a67d4be-2d05-40ca-9de0-4801f2fb7053/routes/325134d4-e587-415d-a254-5bbe59f4d523

Body

Name Description Default Valid Values Example Values
guid The guid of the Service Instance.
{}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTg3IiwiZW1haWwiOiJlbWFpbC01NUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ0NzgyOTIzfQ.TYWFlacLjbDlsaCshmThjTBWJftP__Ja-NjYhcGr6tc
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_instances/6a67d4be-2d05-40ca-9de0-4801f2fb7053/routes/325134d4-e587-415d-a254-5bbe59f4d523" -d '{}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTg3IiwiZW1haWwiOiJlbWFpbC01NUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ0NzgyOTIzfQ.TYWFlacLjbDlsaCshmThjTBWJftP__Ja-NjYhcGr6tc" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "6a67d4be-2d05-40ca-9de0-4801f2fb7053",
    "url": "/v2/service_instances/6a67d4be-2d05-40ca-9de0-4801f2fb7053",
    "created_at": "2015-10-07T00:35:23Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-237",
    "credentials": {
      "creds-key-119": "creds-val-119"
    },
    "service_plan_guid": "fbc3610f-8d30-4bbf-890a-adb42de0e71c",
    "space_guid": "0657392f-b4d2-4c67-a4c3-75cbca11b0d0",
    "gateway_data": null,
    "dashboard_url": null,
    "type": "managed_service_instance",
    "last_operation": null,
    "tags": [

    ],
    "space_url": "/v2/spaces/0657392f-b4d2-4c67-a4c3-75cbca11b0d0",
    "service_plan_url": "/v2/service_plans/fbc3610f-8d30-4bbf-890a-adb42de0e71c",
    "service_bindings_url": "/v2/service_instances/6a67d4be-2d05-40ca-9de0-4801f2fb7053/service_bindings",
    "service_keys_url": "/v2/service_instances/6a67d4be-2d05-40ca-9de0-4801f2fb7053/service_keys",
    "routes_url": "/v2/service_instances/6a67d4be-2d05-40ca-9de0-4801f2fb7053/routes"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: f1a88f73-d5b7-4555-b5be-537220bbe484
Content-Length: 1031
X-Content-Type-Options: nosniff