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/db300a23-bb67-40f8-a00c-4a6d80f5f046/security_groups/a0d39e6a-de80-4414-a8c0-b45b65c88428

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/db300a23-bb67-40f8-a00c-4a6d80f5f046/security_groups/a0d39e6a-de80-4414-a8c0-b45b65c88428" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3OSIsImVtYWlsIjoiZW1haWwtMTE2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMDZ9.jQRguq7Uoy0cG9hnmriV4dka1LJzpghglWdBtntLHYE" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "db300a23-bb67-40f8-a00c-4a6d80f5f046",
    "url": "/v2/spaces/db300a23-bb67-40f8-a00c-4a6d80f5f046",
    "created_at": "2015-06-04T00:05:06Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1366",
    "organization_guid": "2ba292a0-210c-40c8-98c5-c255e621c9ad",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/2ba292a0-210c-40c8-98c5-c255e621c9ad",
    "developers_url": "/v2/spaces/db300a23-bb67-40f8-a00c-4a6d80f5f046/developers",
    "managers_url": "/v2/spaces/db300a23-bb67-40f8-a00c-4a6d80f5f046/managers",
    "auditors_url": "/v2/spaces/db300a23-bb67-40f8-a00c-4a6d80f5f046/auditors",
    "apps_url": "/v2/spaces/db300a23-bb67-40f8-a00c-4a6d80f5f046/apps",
    "routes_url": "/v2/spaces/db300a23-bb67-40f8-a00c-4a6d80f5f046/routes",
    "domains_url": "/v2/spaces/db300a23-bb67-40f8-a00c-4a6d80f5f046/domains",
    "service_instances_url": "/v2/spaces/db300a23-bb67-40f8-a00c-4a6d80f5f046/service_instances",
    "app_events_url": "/v2/spaces/db300a23-bb67-40f8-a00c-4a6d80f5f046/app_events",
    "events_url": "/v2/spaces/db300a23-bb67-40f8-a00c-4a6d80f5f046/events",
    "security_groups_url": "/v2/spaces/db300a23-bb67-40f8-a00c-4a6d80f5f046/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: b6a1b477-6e61-4bcf-a074-1fe54f994a4b
Content-Length: 1278
X-Content-Type-Options: nosniff