Associate Security Group with the Space
PUT /v2/spaces/:guid/security_groups/:security_group_guid
Request
Route
PUT /v2/spaces/c9424692-395b-403b-90e6-10049bbd9e23/security_groups/9740ef09-2bbd-47fd-bfab-6bad373edd95
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/c9424692-395b-403b-90e6-10049bbd9e23/security_groups/9740ef09-2bbd-47fd-bfab-6bad373edd95" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTUiLCJlbWFpbCI6ImVtYWlsLTVAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzODY0MTc4N30.c5P4aSEpkZDlb24gloD2NgWFu5JU4EH3kxnq4iAhfQs" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "c9424692-395b-403b-90e6-10049bbd9e23",
"url": "/v2/spaces/c9424692-395b-403b-90e6-10049bbd9e23",
"created_at": "2015-07-27T22:43:06Z",
"updated_at": null
},
"entity": {
"name": "name-39",
"organization_guid": "67096164-bdcf-4b53-92e1-a2991882a066",
"space_quota_definition_guid": null,
"allow_ssh": true,
"organization_url": "/v2/organizations/67096164-bdcf-4b53-92e1-a2991882a066",
"developers_url": "/v2/spaces/c9424692-395b-403b-90e6-10049bbd9e23/developers",
"managers_url": "/v2/spaces/c9424692-395b-403b-90e6-10049bbd9e23/managers",
"auditors_url": "/v2/spaces/c9424692-395b-403b-90e6-10049bbd9e23/auditors",
"apps_url": "/v2/spaces/c9424692-395b-403b-90e6-10049bbd9e23/apps",
"routes_url": "/v2/spaces/c9424692-395b-403b-90e6-10049bbd9e23/routes",
"domains_url": "/v2/spaces/c9424692-395b-403b-90e6-10049bbd9e23/domains",
"service_instances_url": "/v2/spaces/c9424692-395b-403b-90e6-10049bbd9e23/service_instances",
"app_events_url": "/v2/spaces/c9424692-395b-403b-90e6-10049bbd9e23/app_events",
"events_url": "/v2/spaces/c9424692-395b-403b-90e6-10049bbd9e23/events",
"security_groups_url": "/v2/spaces/c9424692-395b-403b-90e6-10049bbd9e23/security_groups"
}
}
Headers