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/2a602de0-286a-4889-9cf1-13b9839eb0e1/service_bindings/e3c82bca-396f-40af-8f74-6f94c89e04b7

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

cURL

curl "https://api.[your-domain.com]/v2/apps/2a602de0-286a-4889-9cf1-13b9839eb0e1/service_bindings/e3c82bca-396f-40af-8f74-6f94c89e04b7" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTU1IiwiZW1haWwiOiJlbWFpbC01NUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM5NDI2MTk1fQ.xg0RKz5VyRzaSm9RB5uOxgc2bD3WbjDBDHu9d0Q69hE" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "2a602de0-286a-4889-9cf1-13b9839eb0e1",
    "url": "/v2/apps/2a602de0-286a-4889-9cf1-13b9839eb0e1",
    "created_at": "2015-08-06T00:36:35Z",
    "updated_at": "2015-08-06T00:36:35Z"
  },
  "entity": {
    "name": "name-278",
    "production": false,
    "space_guid": "6a044fa5-a823-4e02-b1f4-f342437fa7dd",
    "stack_guid": "a776d832-212b-47be-ac46-c39ae00894b2",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "152bf54f-34a3-437c-a110-cb417e2697a5",
    "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-08-06T00:36:35Z",
    "detected_start_command": "",
    "enable_ssh": true,
    "docker_credentials_json": {
      "redacted_message": "[PRIVATE DATA HIDDEN]"
    },
    "space_url": "/v2/spaces/6a044fa5-a823-4e02-b1f4-f342437fa7dd",
    "stack_url": "/v2/stacks/a776d832-212b-47be-ac46-c39ae00894b2",
    "events_url": "/v2/apps/2a602de0-286a-4889-9cf1-13b9839eb0e1/events",
    "service_bindings_url": "/v2/apps/2a602de0-286a-4889-9cf1-13b9839eb0e1/service_bindings",
    "routes_url": "/v2/apps/2a602de0-286a-4889-9cf1-13b9839eb0e1/routes"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 9e2c2169-b1e7-4e80-a7e0-6bf41be67953
Content-Length: 1516
X-Content-Type-Options: nosniff