Remove Route from the App
DELETE /v2/apps/:guid/routes/:route_guid
Request
Route
DELETE /v2/apps/4a589c01-47a0-48b4-a08d-137e36bbfb6a/routes/2496e74f-8b81-464c-8d0a-17a1945277da
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/4a589c01-47a0-48b4-a08d-137e36bbfb6a/routes/2496e74f-8b81-464c-8d0a-17a1945277da" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExNSIsImVtYWlsIjoiZW1haWwtODNAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NDc4MjkyOH0.8arHsmsSK4wPS4Y6atdCPprmB08FsnV1-b895RYL0rk" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "4a589c01-47a0-48b4-a08d-137e36bbfb6a",
"url": "/v2/apps/4a589c01-47a0-48b4-a08d-137e36bbfb6a",
"created_at": "2015-10-07T00:35:28Z",
"updated_at": "2015-10-07T00:35:28Z"
},
"entity": {
"name": "name-526",
"production": false,
"space_guid": "c7d3655e-b574-4289-b05b-5a9d5fc88c58",
"stack_guid": "ce48d994-8896-4202-a4d8-c21d8a5451b3",
"buildpack": null,
"detected_buildpack": null,
"environment_json": null,
"memory": 1024,
"instances": 1,
"disk_quota": 1024,
"state": "STOPPED",
"version": "b9d2e22c-f6e4-49a8-87e1-77bcc1e9ff07",
"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/c7d3655e-b574-4289-b05b-5a9d5fc88c58",
"stack_url": "/v2/stacks/ce48d994-8896-4202-a4d8-c21d8a5451b3",
"events_url": "/v2/apps/4a589c01-47a0-48b4-a08d-137e36bbfb6a/events",
"service_bindings_url": "/v2/apps/4a589c01-47a0-48b4-a08d-137e36bbfb6a/service_bindings",
"routes_url": "/v2/apps/4a589c01-47a0-48b4-a08d-137e36bbfb6a/routes"
}
}
Headers