Remove Security Group from the Space
DELETE /v2/spaces/:guid/security_groups/:security_group_guid
Request
Route
DELETE /v2/spaces/8ab9eaca-3232-421f-bc9d-b9d38a6c4206/security_groups/873c57c0-b5f5-4e70-b236-a2a6ba1fd752
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the Space
|
|
|
security_group_guid
|
The guid of the security group
|
|
|
Headers
cURL
curl "https://api.[your-domain.com]/v2/spaces/8ab9eaca-3232-421f-bc9d-b9d38a6c4206/security_groups/873c57c0-b5f5-4e70-b236-a2a6ba1fd752" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTkiLCJlbWFpbCI6ImVtYWlsLThAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0MjYwMTUyNX0._gdluLGCMXNnd8Yv-c3_TRIm3R9C9inetZtWBCc7QTo" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "8ab9eaca-3232-421f-bc9d-b9d38a6c4206",
"url": "/v2/spaces/8ab9eaca-3232-421f-bc9d-b9d38a6c4206",
"created_at": "2015-09-11T18:38:45Z",
"updated_at": null
},
"entity": {
"name": "name-24",
"organization_guid": "3321058a-9c96-4dc4-a0a2-d8b85a014639",
"space_quota_definition_guid": null,
"allow_ssh": true,
"organization_url": "/v2/organizations/3321058a-9c96-4dc4-a0a2-d8b85a014639",
"developers_url": "/v2/spaces/8ab9eaca-3232-421f-bc9d-b9d38a6c4206/developers",
"managers_url": "/v2/spaces/8ab9eaca-3232-421f-bc9d-b9d38a6c4206/managers",
"auditors_url": "/v2/spaces/8ab9eaca-3232-421f-bc9d-b9d38a6c4206/auditors",
"apps_url": "/v2/spaces/8ab9eaca-3232-421f-bc9d-b9d38a6c4206/apps",
"routes_url": "/v2/spaces/8ab9eaca-3232-421f-bc9d-b9d38a6c4206/routes",
"domains_url": "/v2/spaces/8ab9eaca-3232-421f-bc9d-b9d38a6c4206/domains",
"service_instances_url": "/v2/spaces/8ab9eaca-3232-421f-bc9d-b9d38a6c4206/service_instances",
"app_events_url": "/v2/spaces/8ab9eaca-3232-421f-bc9d-b9d38a6c4206/app_events",
"events_url": "/v2/spaces/8ab9eaca-3232-421f-bc9d-b9d38a6c4206/events",
"security_groups_url": "/v2/spaces/8ab9eaca-3232-421f-bc9d-b9d38a6c4206/security_groups"
}
}
Headers