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

Route

DELETE /v2/spaces/fb30b952-e8a5-49cc-9f9b-5e4d4b038f93/security_groups/dae1416d-5809-4187-a955-be5281fb5759

cURL

curl "https://api.[your-domain.com]/v2/spaces/fb30b952-e8a5-49cc-9f9b-5e4d4b038f93/security_groups/dae1416d-5809-4187-a955-be5281fb5759" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5MiIsImVtYWlsIjoiZW1haWwtMjI1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjIzMjM1NTF9.ycV57H57lSR8ArfwkEmoSdfaigRW4mMqejjQpVfS1mk" \
	-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: 65da27d3-c292-48d7-b7d0-5458ac5a7cfa
Content-Length: 1260
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "fb30b952-e8a5-49cc-9f9b-5e4d4b038f93",
    "url": "/v2/spaces/fb30b952-e8a5-49cc-9f9b-5e4d4b038f93",
    "created_at": "2015-01-20T01:52:31+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "name-1858",
    "organization_guid": "70c309a7-37ff-469e-b7b2-8f0fb3fe44da",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/70c309a7-37ff-469e-b7b2-8f0fb3fe44da",
    "developers_url": "/v2/spaces/fb30b952-e8a5-49cc-9f9b-5e4d4b038f93/developers",
    "managers_url": "/v2/spaces/fb30b952-e8a5-49cc-9f9b-5e4d4b038f93/managers",
    "auditors_url": "/v2/spaces/fb30b952-e8a5-49cc-9f9b-5e4d4b038f93/auditors",
    "apps_url": "/v2/spaces/fb30b952-e8a5-49cc-9f9b-5e4d4b038f93/apps",
    "routes_url": "/v2/spaces/fb30b952-e8a5-49cc-9f9b-5e4d4b038f93/routes",
    "domains_url": "/v2/spaces/fb30b952-e8a5-49cc-9f9b-5e4d4b038f93/domains",
    "service_instances_url": "/v2/spaces/fb30b952-e8a5-49cc-9f9b-5e4d4b038f93/service_instances",
    "app_events_url": "/v2/spaces/fb30b952-e8a5-49cc-9f9b-5e4d4b038f93/app_events",
    "events_url": "/v2/spaces/fb30b952-e8a5-49cc-9f9b-5e4d4b038f93/events",
    "security_groups_url": "/v2/spaces/fb30b952-e8a5-49cc-9f9b-5e4d4b038f93/security_groups"
  }
}