Associate Security Group with the Space
PUT /v2/spaces/:guid/security_groups/:security_group_guid
Request
Route
PUT /v2/spaces/6ac4712b-ef73-4b8e-b691-6154da5c82ce/security_groups/215a4ba4-9f81-4429-b311-4bc05be72985
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/6ac4712b-ef73-4b8e-b691-6154da5c82ce/security_groups/215a4ba4-9f81-4429-b311-4bc05be72985" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTU1IiwiZW1haWwiOiJlbWFpbC0zNEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ0NzgyOTIxfQ.vHpyBLvfGNWxfT_XG3P7MH2PsDZzylupapL6LEB1EtI" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "6ac4712b-ef73-4b8e-b691-6154da5c82ce",
"url": "/v2/spaces/6ac4712b-ef73-4b8e-b691-6154da5c82ce",
"created_at": "2015-10-07T00:35:21Z",
"updated_at": null
},
"entity": {
"name": "name-124",
"organization_guid": "78b9d246-a506-4257-924e-6fe97ad3e34e",
"space_quota_definition_guid": null,
"allow_ssh": true,
"organization_url": "/v2/organizations/78b9d246-a506-4257-924e-6fe97ad3e34e",
"developers_url": "/v2/spaces/6ac4712b-ef73-4b8e-b691-6154da5c82ce/developers",
"managers_url": "/v2/spaces/6ac4712b-ef73-4b8e-b691-6154da5c82ce/managers",
"auditors_url": "/v2/spaces/6ac4712b-ef73-4b8e-b691-6154da5c82ce/auditors",
"apps_url": "/v2/spaces/6ac4712b-ef73-4b8e-b691-6154da5c82ce/apps",
"routes_url": "/v2/spaces/6ac4712b-ef73-4b8e-b691-6154da5c82ce/routes",
"domains_url": "/v2/spaces/6ac4712b-ef73-4b8e-b691-6154da5c82ce/domains",
"service_instances_url": "/v2/spaces/6ac4712b-ef73-4b8e-b691-6154da5c82ce/service_instances",
"app_events_url": "/v2/spaces/6ac4712b-ef73-4b8e-b691-6154da5c82ce/app_events",
"events_url": "/v2/spaces/6ac4712b-ef73-4b8e-b691-6154da5c82ce/events",
"security_groups_url": "/v2/spaces/6ac4712b-ef73-4b8e-b691-6154da5c82ce/security_groups"
}
}
Headers