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/a29de57b-ef45-4596-b01f-4ab962f01135/routes/57e12d8f-25b1-4575-a7f3-442f1662bad9

Body

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

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/service_instances/a29de57b-ef45-4596-b01f-4ab962f01135/routes/57e12d8f-25b1-4575-a7f3-442f1662bad9" -d '{}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5NiIsImVtYWlsIjoiZW1haWwtMjk4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMjF9.sKIPFIo3GR3BnztiFklzHamd3g0wCnciR7uefS3Ew5w" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "a29de57b-ef45-4596-b01f-4ab962f01135",
    "url": "/v2/service_instances/a29de57b-ef45-4596-b01f-4ab962f01135",
    "created_at": "2015-10-13T17:32:00Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1439",
    "credentials": {
      "creds-key-657": "creds-val-657"
    },
    "service_plan_guid": "56a58fd9-c7c5-4aa8-be7e-5db5ad975b68",
    "space_guid": "587f71c4-81da-44e4-bb81-6643f2842167",
    "gateway_data": null,
    "dashboard_url": null,
    "type": "managed_service_instance",
    "last_operation": null,
    "tags": [

    ],
    "space_url": "/v2/spaces/587f71c4-81da-44e4-bb81-6643f2842167",
    "service_plan_url": "/v2/service_plans/56a58fd9-c7c5-4aa8-be7e-5db5ad975b68",
    "service_bindings_url": "/v2/service_instances/a29de57b-ef45-4596-b01f-4ab962f01135/service_bindings",
    "service_keys_url": "/v2/service_instances/a29de57b-ef45-4596-b01f-4ab962f01135/service_keys",
    "routes_url": "/v2/service_instances/a29de57b-ef45-4596-b01f-4ab962f01135/routes"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: a60c98d3-cbc6-4247-b90a-597b3cf22eff
Content-Length: 1032
X-Content-Type-Options: nosniff