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/1bc859d5-978f-4884-aea3-9e72d010ae2d/service_bindings/d56f11c0-1497-498c-877e-68150105d80a

Parameters

Name Description Valid Values Example Values
guid The guid of the App

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTk3IiwiZW1haWwiOiJlbWFpbC05NkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDMyMzEzNjExfQ.ErU1jUYqHJMS-lhTP8qdb8t7iYOpnINntnLUVoGvRTc
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/1bc859d5-978f-4884-aea3-9e72d010ae2d/service_bindings/d56f11c0-1497-498c-877e-68150105d80a" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTk3IiwiZW1haWwiOiJlbWFpbC05NkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDMyMzEzNjExfQ.ErU1jUYqHJMS-lhTP8qdb8t7iYOpnINntnLUVoGvRTc" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "1bc859d5-978f-4884-aea3-9e72d010ae2d",
    "url": "/v2/apps/1bc859d5-978f-4884-aea3-9e72d010ae2d",
    "created_at": "2015-05-15T16:53:31Z",
    "updated_at": "2015-05-15T16:53:31Z"
  },
  "entity": {
    "name": "name-569",
    "production": false,
    "space_guid": "6fc8ce10-82c7-4b01-ae90-147c91b7601a",
    "stack_guid": "6e245fd6-9416-44af-9e04-9f39b23e63d2",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "cefe2d19-1b3c-4b17-9b0f-ecd284a6a482",
    "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-05-15T16:53:31Z",
    "detected_start_command": "",
    "enable_ssh": true,
    "space_url": "/v2/spaces/6fc8ce10-82c7-4b01-ae90-147c91b7601a",
    "stack_url": "/v2/stacks/6e245fd6-9416-44af-9e04-9f39b23e63d2",
    "events_url": "/v2/apps/1bc859d5-978f-4884-aea3-9e72d010ae2d/events",
    "service_bindings_url": "/v2/apps/1bc859d5-978f-4884-aea3-9e72d010ae2d/service_bindings",
    "routes_url": "/v2/apps/1bc859d5-978f-4884-aea3-9e72d010ae2d/routes"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: e45ac14c-cbe7-4ed9-92b4-30d6ba014308
Content-Length: 1386
X-Content-Type-Options: nosniff