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/851260dd-0565-4ded-be9b-a5f735b03b5b/security_groups/8ff3198b-4145-45ef-bd7d-9bbe343271d6

Parameters

Name Description Valid Values Example Values
guid The guid of the Space
security_group_guid The guid of the security group

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzNCIsImVtYWlsIjoiZW1haWwtMjMwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzk0MjYyMTB9.igYZJ96q8QqhUYikSd_Pknv1U-mdLnTPWqH2UkhTjGk
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/851260dd-0565-4ded-be9b-a5f735b03b5b/security_groups/8ff3198b-4145-45ef-bd7d-9bbe343271d6" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzNCIsImVtYWlsIjoiZW1haWwtMjMwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzk0MjYyMTB9.igYZJ96q8QqhUYikSd_Pknv1U-mdLnTPWqH2UkhTjGk" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "851260dd-0565-4ded-be9b-a5f735b03b5b",
    "url": "/v2/spaces/851260dd-0565-4ded-be9b-a5f735b03b5b",
    "created_at": "2015-08-06T00:36:50Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1970",
    "organization_guid": "977c31ff-959e-4a0a-b7b7-6661b21e6413",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/977c31ff-959e-4a0a-b7b7-6661b21e6413",
    "developers_url": "/v2/spaces/851260dd-0565-4ded-be9b-a5f735b03b5b/developers",
    "managers_url": "/v2/spaces/851260dd-0565-4ded-be9b-a5f735b03b5b/managers",
    "auditors_url": "/v2/spaces/851260dd-0565-4ded-be9b-a5f735b03b5b/auditors",
    "apps_url": "/v2/spaces/851260dd-0565-4ded-be9b-a5f735b03b5b/apps",
    "routes_url": "/v2/spaces/851260dd-0565-4ded-be9b-a5f735b03b5b/routes",
    "domains_url": "/v2/spaces/851260dd-0565-4ded-be9b-a5f735b03b5b/domains",
    "service_instances_url": "/v2/spaces/851260dd-0565-4ded-be9b-a5f735b03b5b/service_instances",
    "app_events_url": "/v2/spaces/851260dd-0565-4ded-be9b-a5f735b03b5b/app_events",
    "events_url": "/v2/spaces/851260dd-0565-4ded-be9b-a5f735b03b5b/events",
    "security_groups_url": "/v2/spaces/851260dd-0565-4ded-be9b-a5f735b03b5b/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 27fa5040-26dc-4db4-b36f-da23605f83d2
Content-Length: 1278
X-Content-Type-Options: nosniff