Associate Security Group with the Space
PUT /v2/spaces/:guid/security_groups/:security_group_guid
Request
Route
PUT /v2/spaces/fddf5ebf-ff1d-4fc7-b13f-fa6ec0e07c91/security_groups/b72da2f2-e5c0-42f9-a0c0-a233db2ccf93
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/fddf5ebf-ff1d-4fc7-b13f-fa6ec0e07c91/security_groups/b72da2f2-e5c0-42f9-a0c0-a233db2ccf93" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxNCIsImVtYWlsIjoiZW1haWwtMjE4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTM4MzcyNzd9.X0jiiMedT5NrsVlCH0LAAhirkxbckJobIOxH0o2ve1c" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "fddf5ebf-ff1d-4fc7-b13f-fa6ec0e07c91",
"url": "/v2/spaces/fddf5ebf-ff1d-4fc7-b13f-fa6ec0e07c91",
"created_at": "2016-01-19T19:41:17Z",
"updated_at": null
},
"entity": {
"name": "name-2041",
"organization_guid": "85ecda94-43b9-4712-b474-07783c9d46dd",
"space_quota_definition_guid": null,
"allow_ssh": true,
"organization_url": "/v2/organizations/85ecda94-43b9-4712-b474-07783c9d46dd",
"developers_url": "/v2/spaces/fddf5ebf-ff1d-4fc7-b13f-fa6ec0e07c91/developers",
"managers_url": "/v2/spaces/fddf5ebf-ff1d-4fc7-b13f-fa6ec0e07c91/managers",
"auditors_url": "/v2/spaces/fddf5ebf-ff1d-4fc7-b13f-fa6ec0e07c91/auditors",
"apps_url": "/v2/spaces/fddf5ebf-ff1d-4fc7-b13f-fa6ec0e07c91/apps",
"routes_url": "/v2/spaces/fddf5ebf-ff1d-4fc7-b13f-fa6ec0e07c91/routes",
"domains_url": "/v2/spaces/fddf5ebf-ff1d-4fc7-b13f-fa6ec0e07c91/domains",
"service_instances_url": "/v2/spaces/fddf5ebf-ff1d-4fc7-b13f-fa6ec0e07c91/service_instances",
"app_events_url": "/v2/spaces/fddf5ebf-ff1d-4fc7-b13f-fa6ec0e07c91/app_events",
"events_url": "/v2/spaces/fddf5ebf-ff1d-4fc7-b13f-fa6ec0e07c91/events",
"security_groups_url": "/v2/spaces/fddf5ebf-ff1d-4fc7-b13f-fa6ec0e07c91/security_groups"
}
}
Headers