Home
Version 3
Apps API

Apps API

Remove Service Binding from the App

DELETE /v2/apps/:guid/service_bindings/:service_binding_guid

Request

Route

DELETE /v2/apps/07a7762d-7fdd-4f35-8d33-fc046b2df9bb/service_bindings/f176e3d7-6c30-4101-8d8d-cedcf296c919

Parameters

Name Description Valid Values Example Values
guid The guid of the App
service_binding_guid The guid of the service binding

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyNSIsImVtYWlsIjoiZW1haWwtMTU3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMDl9.41Ly_FGedncaXaW2osA2VZQxAd1QuSHjdf30PcWHvls
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/07a7762d-7fdd-4f35-8d33-fc046b2df9bb/service_bindings/f176e3d7-6c30-4101-8d8d-cedcf296c919" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyNSIsImVtYWlsIjoiZW1haWwtMTU3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMDl9.41Ly_FGedncaXaW2osA2VZQxAd1QuSHjdf30PcWHvls" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "07a7762d-7fdd-4f35-8d33-fc046b2df9bb",
    "url": "/v2/apps/07a7762d-7fdd-4f35-8d33-fc046b2df9bb",
    "created_at": "2015-10-13T17:31:48Z",
    "updated_at": "2015-10-13T17:31:48Z"
  },
  "entity": {
    "name": "name-790",
    "production": false,
    "space_guid": "570515cf-784f-446c-9a8f-e8f34eb885ff",
    "stack_guid": "a45fa4c9-ae5a-4dd7-868b-c3efd26ff6df",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "e45e9c6b-da99-40c8-91bb-2a35ad86d850",
    "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-13T17:31:49Z",
    "detected_start_command": "",
    "enable_ssh": true,
    "docker_credentials_json": {
      "redacted_message": "[PRIVATE DATA HIDDEN]"
    },
    "space_url": "/v2/spaces/570515cf-784f-446c-9a8f-e8f34eb885ff",
    "stack_url": "/v2/stacks/a45fa4c9-ae5a-4dd7-868b-c3efd26ff6df",
    "events_url": "/v2/apps/07a7762d-7fdd-4f35-8d33-fc046b2df9bb/events",
    "service_bindings_url": "/v2/apps/07a7762d-7fdd-4f35-8d33-fc046b2df9bb/service_bindings",
    "routes_url": "/v2/apps/07a7762d-7fdd-4f35-8d33-fc046b2df9bb/routes"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 3374cc88-c335-43ca-a78d-ce96fc188044
Content-Length: 1516
X-Content-Type-Options: nosniff