Associate Route with the App
PUT /v2/apps/:guid/routes/:route_guid
Request
Route
PUT /v2/apps/a0604924-ed10-489f-9121-38c646698d2f/routes/067d29f1-71cb-4c99-86ff-91e5cc8f3d53
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/a0604924-ed10-489f-9121-38c646698d2f/routes/067d29f1-71cb-4c99-86ff-91e5cc8f3d53" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ2MyIsImVtYWlsIjoiZW1haWwtMzM0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTMzMTA5OTh9.pSufpdh8nAa25oxaAvBbIkk_OFx-plokqQioe5gbTMQ" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "a0604924-ed10-489f-9121-38c646698d2f",
"url": "/v2/apps/a0604924-ed10-489f-9121-38c646698d2f",
"created_at": "2016-01-13T17:29:58Z",
"updated_at": "2016-01-13T17:29:58Z"
},
"entity": {
"name": "name-2562",
"production": false,
"space_guid": "c55f288c-319a-41da-b7d1-ecc052cbeeb9",
"stack_guid": "61b5d203-9951-41ed-a64f-e06c1a94c932",
"buildpack": null,
"detected_buildpack": null,
"environment_json": null,
"memory": 1024,
"instances": 1,
"disk_quota": 1024,
"state": "STOPPED",
"version": "6723c92d-a88c-4aed-83b6-893c18396561",
"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": "2016-01-13T17:29:58Z",
"detected_start_command": "",
"enable_ssh": true,
"docker_credentials_json": {
"redacted_message": "[PRIVATE DATA HIDDEN]"
},
"ports": null,
"space_url": "/v2/spaces/c55f288c-319a-41da-b7d1-ecc052cbeeb9",
"stack_url": "/v2/stacks/61b5d203-9951-41ed-a64f-e06c1a94c932",
"events_url": "/v2/apps/a0604924-ed10-489f-9121-38c646698d2f/events",
"service_bindings_url": "/v2/apps/a0604924-ed10-489f-9121-38c646698d2f/service_bindings",
"routes_url": "/v2/apps/a0604924-ed10-489f-9121-38c646698d2f/routes"
}
}
Headers