Remove Space from the Security Group
DELETE /v2/security_groups/:guid/spaces/:space_guid
Request
Route
DELETE /v2/security_groups/59705ec4-a8fe-49a5-816b-98ab5370be0a/spaces/fe197b92-c300-4c18-882a-7008e95b5138
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/59705ec4-a8fe-49a5-816b-98ab5370be0a/spaces/fe197b92-c300-4c18-882a-7008e95b5138" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3MyIsImVtYWlsIjoiZW1haWwtMjc1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5Njl9.6_8C5YIj6sXYic1HWx8XZ-PuwCNCPs1F9cC8K_8h4wA" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "59705ec4-a8fe-49a5-816b-98ab5370be0a",
"url": "/v2/security_groups/59705ec4-a8fe-49a5-816b-98ab5370be0a",
"created_at": "2015-10-15T23:52:47Z",
"updated_at": null
},
"entity": {
"name": "dummy1",
"rules": [
],
"running_default": false,
"staging_default": false,
"spaces_url": "/v2/security_groups/59705ec4-a8fe-49a5-816b-98ab5370be0a/spaces"
}
}
Headers