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/48ad1eef-613e-44e2-90f0-22298c6f226b/routes/07632d0f-d24f-463c-8d03-acaf9fcdb476

Body

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTgyIiwiZW1haWwiOiJlbWFpbC01M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDUzODM3MjU3fQ.oxzAjC7L4WHmwoBYkaqDMF-fIX2-dT6uTKpIOKSHczc
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_instances/48ad1eef-613e-44e2-90f0-22298c6f226b/routes/07632d0f-d24f-463c-8d03-acaf9fcdb476" -d '{}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTgyIiwiZW1haWwiOiJlbWFpbC01M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDUzODM3MjU3fQ.oxzAjC7L4WHmwoBYkaqDMF-fIX2-dT6uTKpIOKSHczc" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "48ad1eef-613e-44e2-90f0-22298c6f226b",
    "url": "/v2/service_instances/48ad1eef-613e-44e2-90f0-22298c6f226b",
    "created_at": "2016-01-19T19:40:57Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-241",
    "credentials": {
      "creds-key-9": "creds-val-9"
    },
    "service_plan_guid": "df52d420-ac5a-495a-8da7-97121236c1ee",
    "space_guid": "9b84ca36-2458-4b94-bc76-8e4cbbfde697",
    "gateway_data": null,
    "dashboard_url": null,
    "type": "managed_service_instance",
    "last_operation": null,
    "tags": [

    ],
    "space_url": "/v2/spaces/9b84ca36-2458-4b94-bc76-8e4cbbfde697",
    "service_plan_url": "/v2/service_plans/df52d420-ac5a-495a-8da7-97121236c1ee",
    "service_bindings_url": "/v2/service_instances/48ad1eef-613e-44e2-90f0-22298c6f226b/service_bindings",
    "service_keys_url": "/v2/service_instances/48ad1eef-613e-44e2-90f0-22298c6f226b/service_keys",
    "routes_url": "/v2/service_instances/48ad1eef-613e-44e2-90f0-22298c6f226b/routes"
  }
}

Headers

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