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/6ffde70b-ae08-4a3f-8440-6e6230165d61/service_bindings/80f4550b-720a-4f23-9d6e-3978e15fbdd2

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

cURL

curl "https://api.[your-domain.com]/v2/apps/6ffde70b-ae08-4a3f-8440-6e6230165d61/service_bindings/80f4550b-720a-4f23-9d6e-3978e15fbdd2" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2NSIsImVtYWlsIjoiZW1haWwtOThAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0MjYwMTUzM30.sYVyor_sWtdHDAwUxO5TQVzzW22U9AQW36mArx1dBz4" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "6ffde70b-ae08-4a3f-8440-6e6230165d61",
    "url": "/v2/apps/6ffde70b-ae08-4a3f-8440-6e6230165d61",
    "created_at": "2015-09-11T18:38:53Z",
    "updated_at": "2015-09-11T18:38:53Z"
  },
  "entity": {
    "name": "name-533",
    "production": false,
    "space_guid": "556d95c5-4bda-4d98-b30d-b9541f4da95b",
    "stack_guid": "7851c35c-53c3-49e1-b0b0-74829c17faca",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "0a03d5f7-f501-4d78-84de-841c8c01ab61",
    "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-09-11T18:38:53Z",
    "detected_start_command": "",
    "enable_ssh": true,
    "docker_credentials_json": {
      "redacted_message": "[PRIVATE DATA HIDDEN]"
    },
    "space_url": "/v2/spaces/556d95c5-4bda-4d98-b30d-b9541f4da95b",
    "stack_url": "/v2/stacks/7851c35c-53c3-49e1-b0b0-74829c17faca",
    "events_url": "/v2/apps/6ffde70b-ae08-4a3f-8440-6e6230165d61/events",
    "service_bindings_url": "/v2/apps/6ffde70b-ae08-4a3f-8440-6e6230165d61/service_bindings",
    "routes_url": "/v2/apps/6ffde70b-ae08-4a3f-8440-6e6230165d61/routes"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 6601558b-b1e5-41e3-86f3-58155673ff1a
Content-Length: 1516
X-Content-Type-Options: nosniff