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/6942ccfa-e052-46f7-8d2a-34585b160aa1/service_bindings/7419cba2-a60f-4095-8a34-a951c8a0fc26

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

cURL

curl "https://api.[your-domain.com]/v2/apps/6942ccfa-e052-46f7-8d2a-34585b160aa1/service_bindings/7419cba2-a60f-4095-8a34-a951c8a0fc26" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4OSIsImVtYWlsIjoiZW1haWwtMjIwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NTd9.zKvf6Qrlbhk0h0ZJmPI4I7CjUqDcXoltbe_A50pcl8I" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "6942ccfa-e052-46f7-8d2a-34585b160aa1",
    "url": "/v2/apps/6942ccfa-e052-46f7-8d2a-34585b160aa1",
    "created_at": "2015-03-05T19:15:57Z",
    "updated_at": "2015-03-05T19:15:57Z"
  },
  "entity": {
    "name": "name-1064",
    "production": false,
    "space_guid": "1c7c7524-9854-4c9d-9d90-2fa220dbba39",
    "stack_guid": "0af20678-7356-4fab-a689-0fc2bb139b22",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "6b8e37ee-99e9-4753-b9f0-a2799f3aebb4",
    "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-03-05T19:15:57Z",
    "detected_start_command": "",
    "space_url": "/v2/spaces/1c7c7524-9854-4c9d-9d90-2fa220dbba39",
    "stack_url": "/v2/stacks/0af20678-7356-4fab-a689-0fc2bb139b22",
    "events_url": "/v2/apps/6942ccfa-e052-46f7-8d2a-34585b160aa1/events",
    "service_bindings_url": "/v2/apps/6942ccfa-e052-46f7-8d2a-34585b160aa1/service_bindings",
    "routes_url": "/v2/apps/6942ccfa-e052-46f7-8d2a-34585b160aa1/routes"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 336b21fa-64d8-423f-9428-63e3b0be48ce
Content-Length: 1363
X-Content-Type-Options: nosniff