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/70139e1e-8c38-4cdf-b993-95ac95615147/service_bindings/795af8a6-4fbe-4fa0-90de-dbed197b851d

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.eyJ1c2VyX2lkIjoidWFhLWlkLTMwOSIsImVtYWlsIjoiZW1haWwtMjI2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk3OTV9.GcqbcqF4V6FXkGQ2F1aOUjQERaV49uXh_PbvDrrIb4A
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/70139e1e-8c38-4cdf-b993-95ac95615147/service_bindings/795af8a6-4fbe-4fa0-90de-dbed197b851d" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwOSIsImVtYWlsIjoiZW1haWwtMjI2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk3OTV9.GcqbcqF4V6FXkGQ2F1aOUjQERaV49uXh_PbvDrrIb4A" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "70139e1e-8c38-4cdf-b993-95ac95615147",
    "url": "/v2/apps/70139e1e-8c38-4cdf-b993-95ac95615147",
    "created_at": "2015-07-06T23:23:15Z",
    "updated_at": "2015-07-06T23:23:15Z"
  },
  "entity": {
    "name": "name-1896",
    "production": false,
    "space_guid": "b9f3b8c3-c7b0-407d-8bf9-46e6c802abaa",
    "stack_guid": "5a2e0650-cda9-483e-afa7-f1c5827d3ccf",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "2e820154-31fa-46eb-bca5-585e0cee01ed",
    "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-07-06T23:23:15Z",
    "detected_start_command": "",
    "enable_ssh": true,
    "docker_credentials_json": {
      "redacted_message": "[PRIVATE DATA HIDDEN]"
    },
    "space_url": "/v2/spaces/b9f3b8c3-c7b0-407d-8bf9-46e6c802abaa",
    "stack_url": "/v2/stacks/5a2e0650-cda9-483e-afa7-f1c5827d3ccf",
    "events_url": "/v2/apps/70139e1e-8c38-4cdf-b993-95ac95615147/events",
    "service_bindings_url": "/v2/apps/70139e1e-8c38-4cdf-b993-95ac95615147/service_bindings",
    "routes_url": "/v2/apps/70139e1e-8c38-4cdf-b993-95ac95615147/routes"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: a1dc5ba9-3606-49ce-8ae2-017941c49785
Content-Length: 1517
X-Content-Type-Options: nosniff