Associate Security Group with the Space
PUT /v2/spaces/:guid/security_groups/:security_group_guid
Request
Route
PUT /v2/spaces/8e95fb81-5ecc-4774-b6c1-ef79afaaa524/security_groups/0f67b8f3-c0c8-44c4-9025-62a75ccbf0b0
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/8e95fb81-5ecc-4774-b6c1-ef79afaaa524/security_groups/0f67b8f3-c0c8-44c4-9025-62a75ccbf0b0" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTY4IiwiZW1haWwiOiJlbWFpbC0zNUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ5NTMxNTA4fQ.a8ep34wlbIxLm_W8Vi0FadKFdmM5pKe4i70Axz7jo2M" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "8e95fb81-5ecc-4774-b6c1-ef79afaaa524",
"url": "/v2/spaces/8e95fb81-5ecc-4774-b6c1-ef79afaaa524",
"created_at": "2015-11-30T23:38:28Z",
"updated_at": null
},
"entity": {
"name": "name-119",
"organization_guid": "d0604aee-cc00-4c83-b076-f02dab55fead",
"space_quota_definition_guid": null,
"allow_ssh": true,
"organization_url": "/v2/organizations/d0604aee-cc00-4c83-b076-f02dab55fead",
"developers_url": "/v2/spaces/8e95fb81-5ecc-4774-b6c1-ef79afaaa524/developers",
"managers_url": "/v2/spaces/8e95fb81-5ecc-4774-b6c1-ef79afaaa524/managers",
"auditors_url": "/v2/spaces/8e95fb81-5ecc-4774-b6c1-ef79afaaa524/auditors",
"apps_url": "/v2/spaces/8e95fb81-5ecc-4774-b6c1-ef79afaaa524/apps",
"routes_url": "/v2/spaces/8e95fb81-5ecc-4774-b6c1-ef79afaaa524/routes",
"domains_url": "/v2/spaces/8e95fb81-5ecc-4774-b6c1-ef79afaaa524/domains",
"service_instances_url": "/v2/spaces/8e95fb81-5ecc-4774-b6c1-ef79afaaa524/service_instances",
"app_events_url": "/v2/spaces/8e95fb81-5ecc-4774-b6c1-ef79afaaa524/app_events",
"events_url": "/v2/spaces/8e95fb81-5ecc-4774-b6c1-ef79afaaa524/events",
"security_groups_url": "/v2/spaces/8e95fb81-5ecc-4774-b6c1-ef79afaaa524/security_groups"
}
}
Headers