Home
Version 3
Spaces API

Spaces API

Remove Security Group from the Space

DELETE /v2/spaces/:guid/security_groups/:security_group_guid

Fields

Name Description Default Valid Values Example Values

Parameters

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

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2OCIsImVtYWlsIjoiZW1haWwtMjExQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNjd9.PVyWaoOIzBYGY4Wn9otRjN9xbz5txCRYIRQ_lo0lTHo
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

DELETE /v2/spaces/5419cd92-1ff0-418a-a4c9-be9d14805343/security_groups/9ed729d1-b9b1-4c72-99c3-c0ac47c6ce67

cURL

curl "https://api.[your-domain.com]/v2/spaces/5419cd92-1ff0-418a-a4c9-be9d14805343/security_groups/9ed729d1-b9b1-4c72-99c3-c0ac47c6ce67" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2OCIsImVtYWlsIjoiZW1haWwtMjExQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNjd9.PVyWaoOIzBYGY4Wn9otRjN9xbz5txCRYIRQ_lo0lTHo" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 24b572ef-f1e5-4029-a0ec-0a983dad35b5
Content-Length: 1259
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "5419cd92-1ff0-418a-a4c9-be9d14805343",
    "url": "/v2/spaces/5419cd92-1ff0-418a-a4c9-be9d14805343",
    "created_at": "2014-11-24T19:32:47+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "name-981",
    "organization_guid": "24a9260d-b889-4dfc-adcd-c9b8531c4359",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/24a9260d-b889-4dfc-adcd-c9b8531c4359",
    "developers_url": "/v2/spaces/5419cd92-1ff0-418a-a4c9-be9d14805343/developers",
    "managers_url": "/v2/spaces/5419cd92-1ff0-418a-a4c9-be9d14805343/managers",
    "auditors_url": "/v2/spaces/5419cd92-1ff0-418a-a4c9-be9d14805343/auditors",
    "apps_url": "/v2/spaces/5419cd92-1ff0-418a-a4c9-be9d14805343/apps",
    "routes_url": "/v2/spaces/5419cd92-1ff0-418a-a4c9-be9d14805343/routes",
    "domains_url": "/v2/spaces/5419cd92-1ff0-418a-a4c9-be9d14805343/domains",
    "service_instances_url": "/v2/spaces/5419cd92-1ff0-418a-a4c9-be9d14805343/service_instances",
    "app_events_url": "/v2/spaces/5419cd92-1ff0-418a-a4c9-be9d14805343/app_events",
    "events_url": "/v2/spaces/5419cd92-1ff0-418a-a4c9-be9d14805343/events",
    "security_groups_url": "/v2/spaces/5419cd92-1ff0-418a-a4c9-be9d14805343/security_groups"
  }
}