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.eyJ1c2VyX2lkIjoidWFhLWlkLTM1NSIsImVtYWlsIjoiZW1haWwtMjc2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQzMTAxNDN9.rlbLQnMTS8rRLAOqq5N2KfNKIV-0Qqf_LSE80dwMfSE
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

DELETE /v2/spaces/ac1bb607-f920-4526-ba61-cf54ab907882/security_groups/a41d8dc7-e339-4ee5-b889-870cd868be4c

cURL

curl "https://api.[your-domain.com]/v2/spaces/ac1bb607-f920-4526-ba61-cf54ab907882/security_groups/a41d8dc7-e339-4ee5-b889-870cd868be4c" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1NSIsImVtYWlsIjoiZW1haWwtMjc2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQzMTAxNDN9.rlbLQnMTS8rRLAOqq5N2KfNKIV-0Qqf_LSE80dwMfSE" \
	-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: 6f65e0ca-f5e7-494c-8c0d-0e56037fde08
Content-Length: 1255
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "ac1bb607-f920-4526-ba61-cf54ab907882",
    "url": "/v2/spaces/ac1bb607-f920-4526-ba61-cf54ab907882",
    "created_at": "2015-02-12T01:42:23Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2011",
    "organization_guid": "663db2aa-db3c-4e7e-b198-129f294eac80",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/663db2aa-db3c-4e7e-b198-129f294eac80",
    "developers_url": "/v2/spaces/ac1bb607-f920-4526-ba61-cf54ab907882/developers",
    "managers_url": "/v2/spaces/ac1bb607-f920-4526-ba61-cf54ab907882/managers",
    "auditors_url": "/v2/spaces/ac1bb607-f920-4526-ba61-cf54ab907882/auditors",
    "apps_url": "/v2/spaces/ac1bb607-f920-4526-ba61-cf54ab907882/apps",
    "routes_url": "/v2/spaces/ac1bb607-f920-4526-ba61-cf54ab907882/routes",
    "domains_url": "/v2/spaces/ac1bb607-f920-4526-ba61-cf54ab907882/domains",
    "service_instances_url": "/v2/spaces/ac1bb607-f920-4526-ba61-cf54ab907882/service_instances",
    "app_events_url": "/v2/spaces/ac1bb607-f920-4526-ba61-cf54ab907882/app_events",
    "events_url": "/v2/spaces/ac1bb607-f920-4526-ba61-cf54ab907882/events",
    "security_groups_url": "/v2/spaces/ac1bb607-f920-4526-ba61-cf54ab907882/security_groups"
  }
}