Associate Security Group with the Space
PUT /v2/spaces/:guid/security_groups/:security_group_guid
Request
Route
PUT /v2/spaces/aeaa95d8-5416-4029-bf49-305871c108fe/security_groups/a44ad344-4f8d-4d71-8302-d58e7396d8de
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/aeaa95d8-5416-4029-bf49-305871c108fe/security_groups/a44ad344-4f8d-4d71-8302-d58e7396d8de" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzNiIsImVtYWlsIjoiZW1haWwtMTc1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NDl9.Yp5J6Ce3ZJKRolt54pdGT1uY8Oxw1kzzXp-LAC_2OJU" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "aeaa95d8-5416-4029-bf49-305871c108fe",
"url": "/v2/spaces/aeaa95d8-5416-4029-bf49-305871c108fe",
"created_at": "2015-03-05T19:15:49Z",
"updated_at": null
},
"entity": {
"name": "name-714",
"organization_guid": "e7dc9991-2a03-4aeb-9087-b64cb21f9ef1",
"space_quota_definition_guid": null,
"organization_url": "/v2/organizations/e7dc9991-2a03-4aeb-9087-b64cb21f9ef1",
"developers_url": "/v2/spaces/aeaa95d8-5416-4029-bf49-305871c108fe/developers",
"managers_url": "/v2/spaces/aeaa95d8-5416-4029-bf49-305871c108fe/managers",
"auditors_url": "/v2/spaces/aeaa95d8-5416-4029-bf49-305871c108fe/auditors",
"apps_url": "/v2/spaces/aeaa95d8-5416-4029-bf49-305871c108fe/apps",
"routes_url": "/v2/spaces/aeaa95d8-5416-4029-bf49-305871c108fe/routes",
"domains_url": "/v2/spaces/aeaa95d8-5416-4029-bf49-305871c108fe/domains",
"service_instances_url": "/v2/spaces/aeaa95d8-5416-4029-bf49-305871c108fe/service_instances",
"app_events_url": "/v2/spaces/aeaa95d8-5416-4029-bf49-305871c108fe/app_events",
"events_url": "/v2/spaces/aeaa95d8-5416-4029-bf49-305871c108fe/events",
"security_groups_url": "/v2/spaces/aeaa95d8-5416-4029-bf49-305871c108fe/security_groups"
}
}
Headers