Remove Service Binding from the App
DELETE /v2/apps/:guid/service_bindings/:service_binding_guid
Request
Route
DELETE /v2/apps/55ed4970-d426-4e88-8b14-fe78d7bef601/service_bindings/baad45c5-6d74-4155-a537-4c443a7f0f66
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the App
|
|
|
Body
Name |
Description |
Default |
Valid Values |
Example Values |
Headers
cURL
curl "https://api.[your-domain.com]/v2/apps/55ed4970-d426-4e88-8b14-fe78d7bef601/service_bindings/baad45c5-6d74-4155-a537-4c443a7f0f66" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyOCIsImVtYWlsIjoiZW1haWwtMTA3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzQ5ODV9.LxIUzalgZI86DpeG1QaILOVOaJ2ucq6KarEs4M3_X7Q" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "55ed4970-d426-4e88-8b14-fe78d7bef601",
"url": "/v2/apps/55ed4970-d426-4e88-8b14-fe78d7bef601",
"created_at": "2015-05-21T01:03:05Z",
"updated_at": "2015-05-21T01:03:05Z"
},
"entity": {
"name": "name-471",
"production": false,
"space_guid": "3d774d38-f1b8-484c-a11e-b5db20c0a69f",
"stack_guid": "bf7f5310-7e05-401b-9b98-9122fcf02ec8",
"buildpack": null,
"detected_buildpack": null,
"environment_json": null,
"memory": 1024,
"instances": 1,
"disk_quota": 1024,
"state": "STOPPED",
"version": "390d37db-44f0-4c21-a3c8-c43d852db210",
"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,
"diego": false,
"docker_image": null,
"package_updated_at": "2015-05-21T01:03:05Z",
"detected_start_command": "",
"enable_ssh": true,
"space_url": "/v2/spaces/3d774d38-f1b8-484c-a11e-b5db20c0a69f",
"stack_url": "/v2/stacks/bf7f5310-7e05-401b-9b98-9122fcf02ec8",
"events_url": "/v2/apps/55ed4970-d426-4e88-8b14-fe78d7bef601/events",
"service_bindings_url": "/v2/apps/55ed4970-d426-4e88-8b14-fe78d7bef601/service_bindings",
"routes_url": "/v2/apps/55ed4970-d426-4e88-8b14-fe78d7bef601/routes"
}
}
Headers