Home
Version 3
Spaces API

Spaces API

Remove Security Group from the Space

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

Request

Route

DELETE /v2/spaces/1caad343-f3de-49cb-b19d-332ee23612c5/security_groups/d93b0fde-ffda-4587-941f-fb7bd23578d6

Parameters

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

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0MiIsImVtYWlsIjoiZW1haWwtMTM0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzIzMTM2MTR9.8QovI2nNxVyW2DQ0PISpkACgISoeyb8fm-h53n2eL7I
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/1caad343-f3de-49cb-b19d-332ee23612c5/security_groups/d93b0fde-ffda-4587-941f-fb7bd23578d6" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0MiIsImVtYWlsIjoiZW1haWwtMTM0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzIzMTM2MTR9.8QovI2nNxVyW2DQ0PISpkACgISoeyb8fm-h53n2eL7I" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "1caad343-f3de-49cb-b19d-332ee23612c5",
    "url": "/v2/spaces/1caad343-f3de-49cb-b19d-332ee23612c5",
    "created_at": "2015-05-15T16:53:34Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-753",
    "organization_guid": "12eac1c5-f8ca-4ba6-a175-4eb87bc3c4f5",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/12eac1c5-f8ca-4ba6-a175-4eb87bc3c4f5",
    "developers_url": "/v2/spaces/1caad343-f3de-49cb-b19d-332ee23612c5/developers",
    "managers_url": "/v2/spaces/1caad343-f3de-49cb-b19d-332ee23612c5/managers",
    "auditors_url": "/v2/spaces/1caad343-f3de-49cb-b19d-332ee23612c5/auditors",
    "apps_url": "/v2/spaces/1caad343-f3de-49cb-b19d-332ee23612c5/apps",
    "routes_url": "/v2/spaces/1caad343-f3de-49cb-b19d-332ee23612c5/routes",
    "domains_url": "/v2/spaces/1caad343-f3de-49cb-b19d-332ee23612c5/domains",
    "service_instances_url": "/v2/spaces/1caad343-f3de-49cb-b19d-332ee23612c5/service_instances",
    "app_events_url": "/v2/spaces/1caad343-f3de-49cb-b19d-332ee23612c5/app_events",
    "events_url": "/v2/spaces/1caad343-f3de-49cb-b19d-332ee23612c5/events",
    "security_groups_url": "/v2/spaces/1caad343-f3de-49cb-b19d-332ee23612c5/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 219120b1-3d3f-41aa-9d28-83e48d230d3d
Content-Length: 1277
X-Content-Type-Options: nosniff