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/9790f925-fa8c-4628-99ce-103af4829b33/security_groups/0d3662a2-6862-413d-a751-f590887960b9

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.eyJ1c2VyX2lkIjoidWFhLWlkLTE3NyIsImVtYWlsIjoiZW1haWwtMTAyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NDB9.HHHHL-iUSn4xuJlHwC15LHIdRuNHUHF_lz6I7aUXXy0
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/9790f925-fa8c-4628-99ce-103af4829b33/security_groups/0d3662a2-6862-413d-a751-f590887960b9" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3NyIsImVtYWlsIjoiZW1haWwtMTAyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NDB9.HHHHL-iUSn4xuJlHwC15LHIdRuNHUHF_lz6I7aUXXy0" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "9790f925-fa8c-4628-99ce-103af4829b33",
    "url": "/v2/spaces/9790f925-fa8c-4628-99ce-103af4829b33",
    "created_at": "2015-10-15T23:52:20Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1377",
    "organization_guid": "14490ae2-a9ac-4ba4-887d-a874c95b7983",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/14490ae2-a9ac-4ba4-887d-a874c95b7983",
    "developers_url": "/v2/spaces/9790f925-fa8c-4628-99ce-103af4829b33/developers",
    "managers_url": "/v2/spaces/9790f925-fa8c-4628-99ce-103af4829b33/managers",
    "auditors_url": "/v2/spaces/9790f925-fa8c-4628-99ce-103af4829b33/auditors",
    "apps_url": "/v2/spaces/9790f925-fa8c-4628-99ce-103af4829b33/apps",
    "routes_url": "/v2/spaces/9790f925-fa8c-4628-99ce-103af4829b33/routes",
    "domains_url": "/v2/spaces/9790f925-fa8c-4628-99ce-103af4829b33/domains",
    "service_instances_url": "/v2/spaces/9790f925-fa8c-4628-99ce-103af4829b33/service_instances",
    "app_events_url": "/v2/spaces/9790f925-fa8c-4628-99ce-103af4829b33/app_events",
    "events_url": "/v2/spaces/9790f925-fa8c-4628-99ce-103af4829b33/events",
    "security_groups_url": "/v2/spaces/9790f925-fa8c-4628-99ce-103af4829b33/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 8602d23c-27e6-4265-b968-fc3a387c5156
Content-Length: 1278
X-Content-Type-Options: nosniff