Remove Service Binding from the App
DELETE /v2/apps/:guid/service_bindings/:service_binding_guid
Request
Route
DELETE /v2/apps/6caf7a63-4333-42df-9642-18f71c86132a/service_bindings/67eade3e-9767-45dc-8cac-c8f4411b8b59
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/6caf7a63-4333-42df-9642-18f71c86132a/service_bindings/67eade3e-9767-45dc-8cac-c8f4411b8b59" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4NSIsImVtYWlsIjoiZW1haWwtMjEzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzE2NDY2NDB9.J1XwbH_6ukXDF4zWRh0gWvj5ccps8W2c8xt0XSDjm_Q" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "6caf7a63-4333-42df-9642-18f71c86132a",
"url": "/v2/apps/6caf7a63-4333-42df-9642-18f71c86132a",
"created_at": "2015-05-07T23:37:20Z",
"updated_at": "2015-05-07T23:37:20Z"
},
"entity": {
"name": "name-1695",
"production": false,
"space_guid": "864ed373-6315-402f-9b64-950a57e68c5b",
"stack_guid": "f11eaed6-ecd7-485e-a0c6-4030cabf77ef",
"buildpack": null,
"detected_buildpack": null,
"environment_json": null,
"memory": 1024,
"instances": 1,
"disk_quota": 1024,
"state": "STOPPED",
"version": "be485fbb-4a11-43ef-b14c-fce33f91c6ec",
"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-07T23:37:20Z",
"detected_start_command": "",
"enable_ssh": true,
"space_url": "/v2/spaces/864ed373-6315-402f-9b64-950a57e68c5b",
"stack_url": "/v2/stacks/f11eaed6-ecd7-485e-a0c6-4030cabf77ef",
"events_url": "/v2/apps/6caf7a63-4333-42df-9642-18f71c86132a/events",
"service_bindings_url": "/v2/apps/6caf7a63-4333-42df-9642-18f71c86132a/service_bindings",
"routes_url": "/v2/apps/6caf7a63-4333-42df-9642-18f71c86132a/routes"
}
}
Headers