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/adb68235-c2d7-445a-8138-9425f5d31e25/routes/144761ba-9fdc-4baf-9019-476839f25fbe

Body

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyNyIsImVtYWlsIjoiZW1haWwtMjI3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTMzMTA5ODh9.LiPY69wRA0NAYHtuHexKzQOk9ADOrWumwVV9-_bxAbs
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_instances/adb68235-c2d7-445a-8138-9425f5d31e25/routes/144761ba-9fdc-4baf-9019-476839f25fbe" -d '{}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyNyIsImVtYWlsIjoiZW1haWwtMjI3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTMzMTA5ODh9.LiPY69wRA0NAYHtuHexKzQOk9ADOrWumwVV9-_bxAbs" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "adb68235-c2d7-445a-8138-9425f5d31e25",
    "url": "/v2/service_instances/adb68235-c2d7-445a-8138-9425f5d31e25",
    "created_at": "2016-01-13T17:29:47Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1816",
    "credentials": {
      "creds-key-62": "creds-val-62"
    },
    "service_plan_guid": "0d46d8d3-c77a-48f6-a2e1-b91d0d1ba69e",
    "space_guid": "aff7c56a-8ae4-4827-839b-b1becb0f9acb",
    "gateway_data": null,
    "dashboard_url": null,
    "type": "managed_service_instance",
    "last_operation": null,
    "tags": [

    ],
    "space_url": "/v2/spaces/aff7c56a-8ae4-4827-839b-b1becb0f9acb",
    "service_plan_url": "/v2/service_plans/0d46d8d3-c77a-48f6-a2e1-b91d0d1ba69e",
    "service_bindings_url": "/v2/service_instances/adb68235-c2d7-445a-8138-9425f5d31e25/service_bindings",
    "service_keys_url": "/v2/service_instances/adb68235-c2d7-445a-8138-9425f5d31e25/service_keys",
    "routes_url": "/v2/service_instances/adb68235-c2d7-445a-8138-9425f5d31e25/routes"
  }
}

Headers

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