Associate Security Group with the Space
PUT /v2/spaces/:guid/security_groups/:security_group_guid
Fields
Name |
Description |
Default |
Valid Values |
Example Values |
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the Space
|
|
|
Request
Headers
Route
PUT /v2/spaces/efa28ea3-7803-482c-98bc-43762eafc7ae/security_groups/ee48e9f3-09f5-423d-80e4-96813070deff
cURL
curl "https://api.[your-domain.com]/v2/spaces/efa28ea3-7803-482c-98bc-43762eafc7ae/security_groups/ee48e9f3-09f5-423d-80e4-96813070deff" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyNiIsImVtYWlsIjoiZW1haWwtMjQ3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4ODR9.DqLYhQi-vsHPqkultJllG9KN9JM1UdYD2X5aXUpeK4w" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "efa28ea3-7803-482c-98bc-43762eafc7ae",
"url": "/v2/spaces/efa28ea3-7803-482c-98bc-43762eafc7ae",
"created_at": "2015-01-27T19:14:44Z",
"updated_at": null
},
"entity": {
"name": "name-1919",
"organization_guid": "0c776125-dabd-4ee0-b2bd-670c41e3b076",
"space_quota_definition_guid": null,
"organization_url": "/v2/organizations/0c776125-dabd-4ee0-b2bd-670c41e3b076",
"developers_url": "/v2/spaces/efa28ea3-7803-482c-98bc-43762eafc7ae/developers",
"managers_url": "/v2/spaces/efa28ea3-7803-482c-98bc-43762eafc7ae/managers",
"auditors_url": "/v2/spaces/efa28ea3-7803-482c-98bc-43762eafc7ae/auditors",
"apps_url": "/v2/spaces/efa28ea3-7803-482c-98bc-43762eafc7ae/apps",
"routes_url": "/v2/spaces/efa28ea3-7803-482c-98bc-43762eafc7ae/routes",
"domains_url": "/v2/spaces/efa28ea3-7803-482c-98bc-43762eafc7ae/domains",
"service_instances_url": "/v2/spaces/efa28ea3-7803-482c-98bc-43762eafc7ae/service_instances",
"app_events_url": "/v2/spaces/efa28ea3-7803-482c-98bc-43762eafc7ae/app_events",
"events_url": "/v2/spaces/efa28ea3-7803-482c-98bc-43762eafc7ae/events",
"security_groups_url": "/v2/spaces/efa28ea3-7803-482c-98bc-43762eafc7ae/security_groups"
}
}