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/d762eb46-24c6-4e0b-a657-602d8cafe37b/security_groups/a228ef19-5191-4dc0-950e-0b05c8e45f3b

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/d762eb46-24c6-4e0b-a657-602d8cafe37b/security_groups/a228ef19-5191-4dc0-950e-0b05c8e45f3b" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3NiIsImVtYWlsIjoiZW1haWwtMjkyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzUxMDI4NjZ9.9xGhaDkf_j3YuvsgcDYpVqB6Npm9dkv6oTKVREI_ygY" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "d762eb46-24c6-4e0b-a657-602d8cafe37b",
    "url": "/v2/spaces/d762eb46-24c6-4e0b-a657-602d8cafe37b",
    "created_at": "2015-06-16T23:41:06Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2246",
    "organization_guid": "219cf9d1-b2b5-4dfa-ad16-d87e9a9a9e58",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/219cf9d1-b2b5-4dfa-ad16-d87e9a9a9e58",
    "developers_url": "/v2/spaces/d762eb46-24c6-4e0b-a657-602d8cafe37b/developers",
    "managers_url": "/v2/spaces/d762eb46-24c6-4e0b-a657-602d8cafe37b/managers",
    "auditors_url": "/v2/spaces/d762eb46-24c6-4e0b-a657-602d8cafe37b/auditors",
    "apps_url": "/v2/spaces/d762eb46-24c6-4e0b-a657-602d8cafe37b/apps",
    "routes_url": "/v2/spaces/d762eb46-24c6-4e0b-a657-602d8cafe37b/routes",
    "domains_url": "/v2/spaces/d762eb46-24c6-4e0b-a657-602d8cafe37b/domains",
    "service_instances_url": "/v2/spaces/d762eb46-24c6-4e0b-a657-602d8cafe37b/service_instances",
    "app_events_url": "/v2/spaces/d762eb46-24c6-4e0b-a657-602d8cafe37b/app_events",
    "events_url": "/v2/spaces/d762eb46-24c6-4e0b-a657-602d8cafe37b/events",
    "security_groups_url": "/v2/spaces/d762eb46-24c6-4e0b-a657-602d8cafe37b/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: aec98c4c-3542-46f7-98e3-a57e19c2531d
Content-Length: 1278
X-Content-Type-Options: nosniff