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

Route

DELETE /v2/spaces/55c38765-a583-4aab-ae1c-c4a12523039b/security_groups/0a80b8ef-8722-4228-af7a-1ba9da0a97fa

cURL

curl "https://api.[your-domain.com]/v2/spaces/55c38765-a583-4aab-ae1c-c4a12523039b/security_groups/0a80b8ef-8722-4228-af7a-1ba9da0a97fa" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5NSIsImVtYWlsIjoiZW1haWwtMTM5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTU3NTQxMzl9.gLMhb7K06HAXT1zOj7nMqqtPVpMVIcsvvINBiw_1O8w" \
	-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: a47ce88e-0ff7-46d8-a8d1-6d6f4c468bb4
Content-Length: 1259
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "55c38765-a583-4aab-ae1c-c4a12523039b",
    "url": "/v2/spaces/55c38765-a583-4aab-ae1c-c4a12523039b",
    "created_at": "2014-11-05T01:02:19+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "name-726",
    "organization_guid": "8ff1a976-ddc1-415e-aed1-f0d7acc84a47",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/8ff1a976-ddc1-415e-aed1-f0d7acc84a47",
    "developers_url": "/v2/spaces/55c38765-a583-4aab-ae1c-c4a12523039b/developers",
    "managers_url": "/v2/spaces/55c38765-a583-4aab-ae1c-c4a12523039b/managers",
    "auditors_url": "/v2/spaces/55c38765-a583-4aab-ae1c-c4a12523039b/auditors",
    "apps_url": "/v2/spaces/55c38765-a583-4aab-ae1c-c4a12523039b/apps",
    "routes_url": "/v2/spaces/55c38765-a583-4aab-ae1c-c4a12523039b/routes",
    "domains_url": "/v2/spaces/55c38765-a583-4aab-ae1c-c4a12523039b/domains",
    "service_instances_url": "/v2/spaces/55c38765-a583-4aab-ae1c-c4a12523039b/service_instances",
    "app_events_url": "/v2/spaces/55c38765-a583-4aab-ae1c-c4a12523039b/app_events",
    "events_url": "/v2/spaces/55c38765-a583-4aab-ae1c-c4a12523039b/events",
    "security_groups_url": "/v2/spaces/55c38765-a583-4aab-ae1c-c4a12523039b/security_groups"
  }
}