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/6bf71d80-9522-4383-97dc-1a4d204810ed/routes/87e0626c-79a2-4d30-af21-1629fe20ec05

Body

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4NSIsImVtYWlsIjoiZW1haWwtMjU0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDgwMzg5Njd9.p0I1sYSirue-OgO-h-7mwrh0f4JYK9nYEUTSakiMcLc
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_instances/6bf71d80-9522-4383-97dc-1a4d204810ed/routes/87e0626c-79a2-4d30-af21-1629fe20ec05" -d '{}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4NSIsImVtYWlsIjoiZW1haWwtMjU0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDgwMzg5Njd9.p0I1sYSirue-OgO-h-7mwrh0f4JYK9nYEUTSakiMcLc" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "6bf71d80-9522-4383-97dc-1a4d204810ed",
    "url": "/v2/service_instances/6bf71d80-9522-4383-97dc-1a4d204810ed",
    "created_at": "2015-11-13T17:02:47Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1976",
    "credentials": {
      "creds-key-573": "creds-val-573"
    },
    "service_plan_guid": "4958b951-4b38-4d00-acf3-f83b0da0c09e",
    "space_guid": "09760126-1cd1-4ddc-b546-ec9c71009458",
    "gateway_data": null,
    "dashboard_url": null,
    "type": "managed_service_instance",
    "last_operation": null,
    "tags": [

    ],
    "space_url": "/v2/spaces/09760126-1cd1-4ddc-b546-ec9c71009458",
    "service_plan_url": "/v2/service_plans/4958b951-4b38-4d00-acf3-f83b0da0c09e",
    "service_bindings_url": "/v2/service_instances/6bf71d80-9522-4383-97dc-1a4d204810ed/service_bindings",
    "service_keys_url": "/v2/service_instances/6bf71d80-9522-4383-97dc-1a4d204810ed/service_keys",
    "routes_url": "/v2/service_instances/6bf71d80-9522-4383-97dc-1a4d204810ed/routes"
  }
}

Headers

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