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/6cb8ab05-5aff-4981-9b6a-1c00edaa15e2/security_groups/4bbfcff1-94f3-4f04-9bd7-944dcad49b84

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.eyJ1c2VyX2lkIjoidWFhLWlkLTIzNyIsImVtYWlsIjoiZW1haWwtMTc2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NTB9.gOtQ-2zifVBM7SGDJ3a2Em8M5yLaleQ5X-AVRWydIpA
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/6cb8ab05-5aff-4981-9b6a-1c00edaa15e2/security_groups/4bbfcff1-94f3-4f04-9bd7-944dcad49b84" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzNyIsImVtYWlsIjoiZW1haWwtMTc2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NTB9.gOtQ-2zifVBM7SGDJ3a2Em8M5yLaleQ5X-AVRWydIpA" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "6cb8ab05-5aff-4981-9b6a-1c00edaa15e2",
    "url": "/v2/spaces/6cb8ab05-5aff-4981-9b6a-1c00edaa15e2",
    "created_at": "2015-03-05T19:15:50Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-719",
    "organization_guid": "81c4a21f-fe83-4331-9886-4cf66a5b2e6f",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/81c4a21f-fe83-4331-9886-4cf66a5b2e6f",
    "developers_url": "/v2/spaces/6cb8ab05-5aff-4981-9b6a-1c00edaa15e2/developers",
    "managers_url": "/v2/spaces/6cb8ab05-5aff-4981-9b6a-1c00edaa15e2/managers",
    "auditors_url": "/v2/spaces/6cb8ab05-5aff-4981-9b6a-1c00edaa15e2/auditors",
    "apps_url": "/v2/spaces/6cb8ab05-5aff-4981-9b6a-1c00edaa15e2/apps",
    "routes_url": "/v2/spaces/6cb8ab05-5aff-4981-9b6a-1c00edaa15e2/routes",
    "domains_url": "/v2/spaces/6cb8ab05-5aff-4981-9b6a-1c00edaa15e2/domains",
    "service_instances_url": "/v2/spaces/6cb8ab05-5aff-4981-9b6a-1c00edaa15e2/service_instances",
    "app_events_url": "/v2/spaces/6cb8ab05-5aff-4981-9b6a-1c00edaa15e2/app_events",
    "events_url": "/v2/spaces/6cb8ab05-5aff-4981-9b6a-1c00edaa15e2/events",
    "security_groups_url": "/v2/spaces/6cb8ab05-5aff-4981-9b6a-1c00edaa15e2/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 474f443b-f68d-4bb3-b45c-8462b81a4f99
Content-Length: 1254
X-Content-Type-Options: nosniff