Remove Security Group from the Space
DELETE /v2/spaces/:guid/security_groups/:security_group_guid
Request
Route
DELETE /v2/spaces/0d918280-1644-43c0-97b6-a1a7ea68190f/security_groups/deffc057-dd89-484b-8496-6445972dc2ea
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the Space
|
|
|
Body
Name |
Description |
Default |
Valid Values |
Example Values |
Headers
cURL
curl "https://api.[your-domain.com]/v2/spaces/0d918280-1644-43c0-97b6-a1a7ea68190f/security_groups/deffc057-dd89-484b-8496-6445972dc2ea" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5OCIsImVtYWlsIjoiZW1haWwtMTQ5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2Njh9._g8kw2VhNU1Ykax5eJO8d1rPhjobeQhkl3qdN51rJHY" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "0d918280-1644-43c0-97b6-a1a7ea68190f",
"url": "/v2/spaces/0d918280-1644-43c0-97b6-a1a7ea68190f",
"created_at": "2015-03-03T00:51:07Z",
"updated_at": null
},
"entity": {
"name": "name-1257",
"organization_guid": "c8754e10-c2ac-46c3-aea1-a9e065332cdc",
"space_quota_definition_guid": null,
"organization_url": "/v2/organizations/c8754e10-c2ac-46c3-aea1-a9e065332cdc",
"developers_url": "/v2/spaces/0d918280-1644-43c0-97b6-a1a7ea68190f/developers",
"managers_url": "/v2/spaces/0d918280-1644-43c0-97b6-a1a7ea68190f/managers",
"auditors_url": "/v2/spaces/0d918280-1644-43c0-97b6-a1a7ea68190f/auditors",
"apps_url": "/v2/spaces/0d918280-1644-43c0-97b6-a1a7ea68190f/apps",
"routes_url": "/v2/spaces/0d918280-1644-43c0-97b6-a1a7ea68190f/routes",
"domains_url": "/v2/spaces/0d918280-1644-43c0-97b6-a1a7ea68190f/domains",
"service_instances_url": "/v2/spaces/0d918280-1644-43c0-97b6-a1a7ea68190f/service_instances",
"app_events_url": "/v2/spaces/0d918280-1644-43c0-97b6-a1a7ea68190f/app_events",
"events_url": "/v2/spaces/0d918280-1644-43c0-97b6-a1a7ea68190f/events",
"security_groups_url": "/v2/spaces/0d918280-1644-43c0-97b6-a1a7ea68190f/security_groups"
}
}
Headers