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/e863202a-e16c-4683-bf51-466a83d4f1ee/security_groups/00dd14c9-e339-44c3-9219-4740d1f0ec1f

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.eyJ1c2VyX2lkIjoidWFhLWlkLTExMiIsImVtYWlsIjoiZW1haWwtNjFAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzMTY0NjYzMH0.5zLaOpqcjvIQjK-FRyIoZHnv0P6KMpwgY5FFFDRmtR4
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/e863202a-e16c-4683-bf51-466a83d4f1ee/security_groups/00dd14c9-e339-44c3-9219-4740d1f0ec1f" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExMiIsImVtYWlsIjoiZW1haWwtNjFAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzMTY0NjYzMH0.5zLaOpqcjvIQjK-FRyIoZHnv0P6KMpwgY5FFFDRmtR4" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "e863202a-e16c-4683-bf51-466a83d4f1ee",
    "url": "/v2/spaces/e863202a-e16c-4683-bf51-466a83d4f1ee",
    "created_at": "2015-05-07T23:37:10Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1029",
    "organization_guid": "0c6a09d7-cf7e-4ba2-9edb-e93e1317d449",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/0c6a09d7-cf7e-4ba2-9edb-e93e1317d449",
    "developers_url": "/v2/spaces/e863202a-e16c-4683-bf51-466a83d4f1ee/developers",
    "managers_url": "/v2/spaces/e863202a-e16c-4683-bf51-466a83d4f1ee/managers",
    "auditors_url": "/v2/spaces/e863202a-e16c-4683-bf51-466a83d4f1ee/auditors",
    "apps_url": "/v2/spaces/e863202a-e16c-4683-bf51-466a83d4f1ee/apps",
    "routes_url": "/v2/spaces/e863202a-e16c-4683-bf51-466a83d4f1ee/routes",
    "domains_url": "/v2/spaces/e863202a-e16c-4683-bf51-466a83d4f1ee/domains",
    "service_instances_url": "/v2/spaces/e863202a-e16c-4683-bf51-466a83d4f1ee/service_instances",
    "app_events_url": "/v2/spaces/e863202a-e16c-4683-bf51-466a83d4f1ee/app_events",
    "events_url": "/v2/spaces/e863202a-e16c-4683-bf51-466a83d4f1ee/events",
    "security_groups_url": "/v2/spaces/e863202a-e16c-4683-bf51-466a83d4f1ee/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: ab2b30c8-7bce-47d6-b362-b0b600ae1150
Content-Length: 1278
X-Content-Type-Options: nosniff