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/eee6f933-b889-4fc1-aea4-c71af9a463d6/security_groups/66e28fb9-f4f1-4203-8416-fc31670a0425

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/eee6f933-b889-4fc1-aea4-c71af9a463d6/security_groups/66e28fb9-f4f1-4203-8416-fc31670a0425" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0MyIsImVtYWlsIjoiZW1haWwtMTYwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjM2MTg3MTd9.C1JX90DvomcFd3l1bHVMtdmAB9_cLeKVTK9A6suPvhk" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

204 No Content

Headers

X-VCAP-Request-ID: a9295833-6f34-4463-8334-0fcea97efeb5
X-Content-Type-Options: nosniff