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/0b8ac3bd-b8d4-422f-b795-3bd7e7c0f1c7/routes/51c73aaa-50bc-4d92-9b4a-1454503e479a

Body

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ2NyIsImVtYWlsIjoiZW1haWwtMzM0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDk1MzE1NDB9.SLDN4ITDjgqhS8GTg3vGawX5JGFPZ5alc2CYFvMH31A
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_instances/0b8ac3bd-b8d4-422f-b795-3bd7e7c0f1c7/routes/51c73aaa-50bc-4d92-9b4a-1454503e479a" -d '{}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ2NyIsImVtYWlsIjoiZW1haWwtMzM0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDk1MzE1NDB9.SLDN4ITDjgqhS8GTg3vGawX5JGFPZ5alc2CYFvMH31A" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "0b8ac3bd-b8d4-422f-b795-3bd7e7c0f1c7",
    "url": "/v2/service_instances/0b8ac3bd-b8d4-422f-b795-3bd7e7c0f1c7",
    "created_at": "2015-11-30T23:39:00Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2563",
    "credentials": {
      "creds-key-740": "creds-val-740"
    },
    "service_plan_guid": "fbf7b431-798a-425a-b5c1-61d5cbc1260a",
    "space_guid": "480e2027-255b-42e1-b7ad-5a2f27ccf211",
    "gateway_data": null,
    "dashboard_url": null,
    "type": "managed_service_instance",
    "last_operation": null,
    "tags": [

    ],
    "space_url": "/v2/spaces/480e2027-255b-42e1-b7ad-5a2f27ccf211",
    "service_plan_url": "/v2/service_plans/fbf7b431-798a-425a-b5c1-61d5cbc1260a",
    "service_bindings_url": "/v2/service_instances/0b8ac3bd-b8d4-422f-b795-3bd7e7c0f1c7/service_bindings",
    "service_keys_url": "/v2/service_instances/0b8ac3bd-b8d4-422f-b795-3bd7e7c0f1c7/service_keys",
    "routes_url": "/v2/service_instances/0b8ac3bd-b8d4-422f-b795-3bd7e7c0f1c7/routes"
  }
}

Headers

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