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/2c526132-3d9c-43be-8b18-e7a11383ee48/service_bindings/aeab24d8-fc4d-493b-a81d-ecc1e3f79393

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

cURL

curl "https://api.[your-domain.com]/v2/apps/2c526132-3d9c-43be-8b18-e7a11383ee48/service_bindings/aeab24d8-fc4d-493b-a81d-ecc1e3f79393" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwMSIsImVtYWlsIjoiZW1haWwtMjY5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NTh9.tqxWifwPjzR7RFPBNyZVGbkj7NMbEwRC7YoR5O0tcgc" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "2c526132-3d9c-43be-8b18-e7a11383ee48",
    "url": "/v2/apps/2c526132-3d9c-43be-8b18-e7a11383ee48",
    "created_at": "2015-09-30T23:30:57Z",
    "updated_at": "2015-09-30T23:30:57Z"
  },
  "entity": {
    "name": "name-2107",
    "production": false,
    "space_guid": "94844c72-2c4d-4603-b8b4-a5f60f4bb63d",
    "stack_guid": "5a83c70e-d0c1-4cb9-9663-78ef6e2e2040",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "0e76642c-0896-4764-a8c3-3ed318837750",
    "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-30T23:30:57Z",
    "detected_start_command": "",
    "enable_ssh": true,
    "docker_credentials_json": {
      "redacted_message": "[PRIVATE DATA HIDDEN]"
    },
    "space_url": "/v2/spaces/94844c72-2c4d-4603-b8b4-a5f60f4bb63d",
    "stack_url": "/v2/stacks/5a83c70e-d0c1-4cb9-9663-78ef6e2e2040",
    "events_url": "/v2/apps/2c526132-3d9c-43be-8b18-e7a11383ee48/events",
    "service_bindings_url": "/v2/apps/2c526132-3d9c-43be-8b18-e7a11383ee48/service_bindings",
    "routes_url": "/v2/apps/2c526132-3d9c-43be-8b18-e7a11383ee48/routes"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 6690c977-a239-476e-952f-ea443c2c6aa2
Content-Length: 1517
X-Content-Type-Options: nosniff