Associate Route with the App
PUT /v2/apps/:guid/routes/:route_guid
Request
Route
PUT /v2/apps/105f56d1-0234-442b-9dd0-0aae70672315/routes/17272ffb-0606-4517-81c1-d4c89607edf0
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/105f56d1-0234-442b-9dd0-0aae70672315/routes/17272ffb-0606-4517-81c1-d4c89607edf0" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ0NyIsImVtYWlsIjoiZW1haWwtMzE4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM3MDF9.5ndaDo_oLaCrko5uP5PJVrnF03OsXULzckoQrBpXlMo" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "105f56d1-0234-442b-9dd0-0aae70672315",
"url": "/v2/apps/105f56d1-0234-442b-9dd0-0aae70672315",
"created_at": "2015-12-22T18:28:21Z",
"updated_at": "2015-12-22T18:28:21Z"
},
"entity": {
"name": "name-2363",
"production": false,
"space_guid": "9a8f22c2-ff2e-4afd-a2b2-4bfd78982104",
"stack_guid": "b063e12a-50c3-4f18-8060-6ff4245beb94",
"buildpack": null,
"detected_buildpack": null,
"environment_json": null,
"memory": 1024,
"instances": 1,
"disk_quota": 1024,
"state": "STOPPED",
"version": "37ad0dd2-c9c2-4e3c-b52f-e9a19a2ad4d9",
"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-12-22T18:28:21Z",
"detected_start_command": "",
"enable_ssh": true,
"docker_credentials_json": {
"redacted_message": "[PRIVATE DATA HIDDEN]"
},
"ports": null,
"space_url": "/v2/spaces/9a8f22c2-ff2e-4afd-a2b2-4bfd78982104",
"stack_url": "/v2/stacks/b063e12a-50c3-4f18-8060-6ff4245beb94",
"events_url": "/v2/apps/105f56d1-0234-442b-9dd0-0aae70672315/events",
"service_bindings_url": "/v2/apps/105f56d1-0234-442b-9dd0-0aae70672315/service_bindings",
"routes_url": "/v2/apps/105f56d1-0234-442b-9dd0-0aae70672315/routes"
}
}
Headers