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

Route

DELETE /v2/spaces/91e5b2d3-cdca-40f5-b3d4-1a9614ec6e93/security_groups/1675e090-71aa-47a9-a250-de78565783ae

cURL

curl "https://api.[your-domain.com]/v2/spaces/91e5b2d3-cdca-40f5-b3d4-1a9614ec6e93/security_groups/1675e090-71aa-47a9-a250-de78565783ae" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1MyIsImVtYWlsIjoiZW1haWwtMTc4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTY1MjY3MDd9.Y-ly0cece_gPO65nz8djmUUDiAHLWDnYj10zQuUpKf8" \
	-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: a2ab8965-2ea8-41ba-9cf9-c557f0c5b186
Content-Length: 1259
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "91e5b2d3-cdca-40f5-b3d4-1a9614ec6e93",
    "url": "/v2/spaces/91e5b2d3-cdca-40f5-b3d4-1a9614ec6e93",
    "created_at": "2014-11-13T23:38:27+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "name-836",
    "organization_guid": "62995a42-3027-48dc-a7f1-b497039f30f3",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/62995a42-3027-48dc-a7f1-b497039f30f3",
    "developers_url": "/v2/spaces/91e5b2d3-cdca-40f5-b3d4-1a9614ec6e93/developers",
    "managers_url": "/v2/spaces/91e5b2d3-cdca-40f5-b3d4-1a9614ec6e93/managers",
    "auditors_url": "/v2/spaces/91e5b2d3-cdca-40f5-b3d4-1a9614ec6e93/auditors",
    "apps_url": "/v2/spaces/91e5b2d3-cdca-40f5-b3d4-1a9614ec6e93/apps",
    "routes_url": "/v2/spaces/91e5b2d3-cdca-40f5-b3d4-1a9614ec6e93/routes",
    "domains_url": "/v2/spaces/91e5b2d3-cdca-40f5-b3d4-1a9614ec6e93/domains",
    "service_instances_url": "/v2/spaces/91e5b2d3-cdca-40f5-b3d4-1a9614ec6e93/service_instances",
    "app_events_url": "/v2/spaces/91e5b2d3-cdca-40f5-b3d4-1a9614ec6e93/app_events",
    "events_url": "/v2/spaces/91e5b2d3-cdca-40f5-b3d4-1a9614ec6e93/events",
    "security_groups_url": "/v2/spaces/91e5b2d3-cdca-40f5-b3d4-1a9614ec6e93/security_groups"
  }
}