Remove Space from the Security Group
DELETE /v2/security_groups/:guid/spaces/:space_guid
Request
Route
DELETE /v2/security_groups/12e71bee-8376-43ff-8d29-45e930ad23d8/spaces/af3441dc-1b10-4790-8d1a-7fb8f0cedd6c
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the Security Group
|
|
|
space_guid
|
The guid of the space
|
|
|
space_guid
|
The guid of the Space
|
|
|
Headers
cURL
curl "https://api.[your-domain.com]/v2/security_groups/12e71bee-8376-43ff-8d29-45e930ad23d8/spaces/af3441dc-1b10-4790-8d1a-7fb8f0cedd6c" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2MCIsImVtYWlsIjoiZW1haWwtMTcwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzk0MjYyMDV9.dd6qnZBB0R0kB3sEqqZXULltFCuH7WgoMspehtJFYn0" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "12e71bee-8376-43ff-8d29-45e930ad23d8",
"url": "/v2/security_groups/12e71bee-8376-43ff-8d29-45e930ad23d8",
"created_at": "2015-08-06T00:36:45Z",
"updated_at": null
},
"entity": {
"name": "dummy1",
"rules": [
],
"running_default": false,
"staging_default": false,
"spaces_url": "/v2/security_groups/12e71bee-8376-43ff-8d29-45e930ad23d8/spaces"
}
}
Headers