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/8711be4f-0ca7-4402-b0a3-95e01c1cefaf/security_groups/233e18c8-8551-483a-9de1-d7cdacf5677d

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/8711be4f-0ca7-4402-b0a3-95e01c1cefaf/security_groups/233e18c8-8551-483a-9de1-d7cdacf5677d" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTg2IiwiZW1haWwiOiJlbWFpbC02N0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI5MDM4NzAxfQ.DvPguTk3txiV2LXSbJARlaNDzghSOGelWglDKEYt9g4" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "8711be4f-0ca7-4402-b0a3-95e01c1cefaf",
    "url": "/v2/spaces/8711be4f-0ca7-4402-b0a3-95e01c1cefaf",
    "created_at": "2015-04-07T19:11:41Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-260",
    "organization_guid": "b9414fbd-790c-4ec0-8faa-c3ff0e0c32d1",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/b9414fbd-790c-4ec0-8faa-c3ff0e0c32d1",
    "developers_url": "/v2/spaces/8711be4f-0ca7-4402-b0a3-95e01c1cefaf/developers",
    "managers_url": "/v2/spaces/8711be4f-0ca7-4402-b0a3-95e01c1cefaf/managers",
    "auditors_url": "/v2/spaces/8711be4f-0ca7-4402-b0a3-95e01c1cefaf/auditors",
    "apps_url": "/v2/spaces/8711be4f-0ca7-4402-b0a3-95e01c1cefaf/apps",
    "routes_url": "/v2/spaces/8711be4f-0ca7-4402-b0a3-95e01c1cefaf/routes",
    "domains_url": "/v2/spaces/8711be4f-0ca7-4402-b0a3-95e01c1cefaf/domains",
    "service_instances_url": "/v2/spaces/8711be4f-0ca7-4402-b0a3-95e01c1cefaf/service_instances",
    "app_events_url": "/v2/spaces/8711be4f-0ca7-4402-b0a3-95e01c1cefaf/app_events",
    "events_url": "/v2/spaces/8711be4f-0ca7-4402-b0a3-95e01c1cefaf/events",
    "security_groups_url": "/v2/spaces/8711be4f-0ca7-4402-b0a3-95e01c1cefaf/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: f0ca289b-7e43-43c3-8b97-18666f0545ae
Content-Length: 1254
X-Content-Type-Options: nosniff