Remove Service Binding from the App
DELETE /v2/apps/:guid/service_bindings/:service_binding_guid
Request
Route
DELETE /v2/apps/47e00abd-e147-450d-87b2-bfcb0de00a68/service_bindings/6629c14b-07d2-42bb-9f22-dd4481fa65fc
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/47e00abd-e147-450d-87b2-bfcb0de00a68/service_bindings/6629c14b-07d2-42bb-9f22-dd4481fa65fc" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyIiwiZW1haWwiOiJlbWFpbC0xMkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM1MTAyODQ0fQ.wGTieZHuXiBKw2oqB1zvloGUNQUK7byUREGhSMixpKQ" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "47e00abd-e147-450d-87b2-bfcb0de00a68",
"url": "/v2/apps/47e00abd-e147-450d-87b2-bfcb0de00a68",
"created_at": "2015-06-16T23:40:44Z",
"updated_at": "2015-06-16T23:40:44Z"
},
"entity": {
"name": "name-198",
"production": false,
"space_guid": "6d492841-dc86-4b0e-bc5f-85dcb97cd07c",
"stack_guid": "063fe3ea-b25c-46ab-bb0d-21530e5e94f0",
"buildpack": null,
"detected_buildpack": null,
"environment_json": null,
"memory": 1024,
"instances": 1,
"disk_quota": 1024,
"state": "STOPPED",
"version": "e197307f-88fe-43dc-a63b-f62c267df6a8",
"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-06-16T23:40:44Z",
"detected_start_command": "",
"enable_ssh": true,
"docker_credentials_json": {
"redacted_message": "[PRIVATE DATA HIDDEN]"
},
"space_url": "/v2/spaces/6d492841-dc86-4b0e-bc5f-85dcb97cd07c",
"stack_url": "/v2/stacks/063fe3ea-b25c-46ab-bb0d-21530e5e94f0",
"events_url": "/v2/apps/47e00abd-e147-450d-87b2-bfcb0de00a68/events",
"service_bindings_url": "/v2/apps/47e00abd-e147-450d-87b2-bfcb0de00a68/service_bindings",
"routes_url": "/v2/apps/47e00abd-e147-450d-87b2-bfcb0de00a68/routes"
}
}
Headers