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/e8b4664b-3af4-4bc6-9df7-f51497f7299a/security_groups/852a5e87-1d1c-4b3a-b92c-aace07647cad

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/e8b4664b-3af4-4bc6-9df7-f51497f7299a/security_groups/852a5e87-1d1c-4b3a-b92c-aace07647cad" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwNiIsImVtYWlsIjoiZW1haWwtNjhAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNzMyMzk1OX0.SlRxTGY56zXY8by0-wHXObYa95BizCVVpuXfQNInyVU" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "e8b4664b-3af4-4bc6-9df7-f51497f7299a",
    "url": "/v2/spaces/e8b4664b-3af4-4bc6-9df7-f51497f7299a",
    "created_at": "2015-03-18T22:52:39Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-263",
    "organization_guid": "0d814d4b-b16a-4f43-bc63-f6e32cf07f9c",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/0d814d4b-b16a-4f43-bc63-f6e32cf07f9c",
    "developers_url": "/v2/spaces/e8b4664b-3af4-4bc6-9df7-f51497f7299a/developers",
    "managers_url": "/v2/spaces/e8b4664b-3af4-4bc6-9df7-f51497f7299a/managers",
    "auditors_url": "/v2/spaces/e8b4664b-3af4-4bc6-9df7-f51497f7299a/auditors",
    "apps_url": "/v2/spaces/e8b4664b-3af4-4bc6-9df7-f51497f7299a/apps",
    "routes_url": "/v2/spaces/e8b4664b-3af4-4bc6-9df7-f51497f7299a/routes",
    "domains_url": "/v2/spaces/e8b4664b-3af4-4bc6-9df7-f51497f7299a/domains",
    "service_instances_url": "/v2/spaces/e8b4664b-3af4-4bc6-9df7-f51497f7299a/service_instances",
    "app_events_url": "/v2/spaces/e8b4664b-3af4-4bc6-9df7-f51497f7299a/app_events",
    "events_url": "/v2/spaces/e8b4664b-3af4-4bc6-9df7-f51497f7299a/events",
    "security_groups_url": "/v2/spaces/e8b4664b-3af4-4bc6-9df7-f51497f7299a/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 1c1101e6-5080-4137-928c-57147e844360
Content-Length: 1254
X-Content-Type-Options: nosniff