Remove Space from the Security Group
DELETE /v2/security_groups/:guid/spaces/:space_guid
Request
Route
DELETE /v2/security_groups/5b955729-4274-401a-b869-82137b78ecff/spaces/22b9f753-8798-4040-b9ee-ade2535b3b79
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/5b955729-4274-401a-b869-82137b78ecff/spaces/22b9f753-8798-4040-b9ee-ade2535b3b79" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ3MCIsImVtYWlsIjoiZW1haWwtMzM4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDl9.dYzZOu1fgGanBCLSHDd0HMnIqV-EHhKecrba3PREWlE" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "5b955729-4274-401a-b869-82137b78ecff",
"url": "/v2/security_groups/5b955729-4274-401a-b869-82137b78ecff",
"created_at": "2015-10-07T00:35:26Z",
"updated_at": null
},
"entity": {
"name": "dummy1",
"rules": [
],
"running_default": false,
"staging_default": false,
"spaces_url": "/v2/security_groups/5b955729-4274-401a-b869-82137b78ecff/spaces"
}
}
Headers