Associate Route with the App
PUT /v2/apps/:guid/routes/:route_guid
Request
Route
PUT /v2/apps/63ea18a4-9857-46d5-b59f-2b272a2da96b/routes/19ebfbb5-fbc2-4789-9e4a-57c5a2dee5da
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the App
|
|
|
route_guid
|
The guid of the route
|
|
|
Headers
cURL
curl "https://api.[your-domain.com]/v2/apps/63ea18a4-9857-46d5-b59f-2b272a2da96b/routes/19ebfbb5-fbc2-4789-9e4a-57c5a2dee5da" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExNiIsImVtYWlsIjoiZW1haWwtODRAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NDc4MjkyOH0.2d5DNueCcgfwwpZzgBMF0OZyfAUu0UnCBG07R_taHsE" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "63ea18a4-9857-46d5-b59f-2b272a2da96b",
"url": "/v2/apps/63ea18a4-9857-46d5-b59f-2b272a2da96b",
"created_at": "2015-10-07T00:35:28Z",
"updated_at": "2015-10-07T00:35:28Z"
},
"entity": {
"name": "name-541",
"production": false,
"space_guid": "2b97dee0-fe05-48ad-8a6e-8730c31fa0b8",
"stack_guid": "992cf749-2096-46c4-808c-652cbb471dc5",
"buildpack": null,
"detected_buildpack": null,
"environment_json": null,
"memory": 1024,
"instances": 1,
"disk_quota": 1024,
"state": "STOPPED",
"version": "867531f5-e4ce-4b37-8072-19521a52e750",
"command": null,
"console": false,
"debug": null,
"staging_task_id": null,
"package_state": "PENDING",
"health_check_type": "port",
"health_check_timeout": null,
"staging_failed_reason": null,
"staging_failed_description": null,
"diego": false,
"docker_image": null,
"package_updated_at": "2015-10-07T00:35:28Z",
"detected_start_command": "",
"enable_ssh": true,
"docker_credentials_json": {
"redacted_message": "[PRIVATE DATA HIDDEN]"
},
"space_url": "/v2/spaces/2b97dee0-fe05-48ad-8a6e-8730c31fa0b8",
"stack_url": "/v2/stacks/992cf749-2096-46c4-808c-652cbb471dc5",
"events_url": "/v2/apps/63ea18a4-9857-46d5-b59f-2b272a2da96b/events",
"service_bindings_url": "/v2/apps/63ea18a4-9857-46d5-b59f-2b272a2da96b/service_bindings",
"routes_url": "/v2/apps/63ea18a4-9857-46d5-b59f-2b272a2da96b/routes"
}
}
Headers