Associate Security Group with the Space
PUT /v2/spaces/:guid/security_groups/:security_group_guid
Request
Route
PUT /v2/spaces/0c3561f7-bbaa-405f-977d-fcf6f02b855e/security_groups/638aa5e4-2281-4636-b4cd-eb7373d9e154
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/0c3561f7-bbaa-405f-977d-fcf6f02b855e/security_groups/638aa5e4-2281-4636-b4cd-eb7373d9e154" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTY0IiwiZW1haWwiOiJlbWFpbC02MkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI2NjMzODk4fQ.h1JfASO9IRQtHsFg_Br85CGxbG9HlfBAFsY9jHe24H4" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "0c3561f7-bbaa-405f-977d-fcf6f02b855e",
"url": "/v2/spaces/0c3561f7-bbaa-405f-977d-fcf6f02b855e",
"created_at": "2015-03-10T23:11:38Z",
"updated_at": null
},
"entity": {
"name": "name-243",
"organization_guid": "3283c62b-2f24-41c4-9747-a2170fd557f7",
"space_quota_definition_guid": null,
"organization_url": "/v2/organizations/3283c62b-2f24-41c4-9747-a2170fd557f7",
"developers_url": "/v2/spaces/0c3561f7-bbaa-405f-977d-fcf6f02b855e/developers",
"managers_url": "/v2/spaces/0c3561f7-bbaa-405f-977d-fcf6f02b855e/managers",
"auditors_url": "/v2/spaces/0c3561f7-bbaa-405f-977d-fcf6f02b855e/auditors",
"apps_url": "/v2/spaces/0c3561f7-bbaa-405f-977d-fcf6f02b855e/apps",
"routes_url": "/v2/spaces/0c3561f7-bbaa-405f-977d-fcf6f02b855e/routes",
"domains_url": "/v2/spaces/0c3561f7-bbaa-405f-977d-fcf6f02b855e/domains",
"service_instances_url": "/v2/spaces/0c3561f7-bbaa-405f-977d-fcf6f02b855e/service_instances",
"app_events_url": "/v2/spaces/0c3561f7-bbaa-405f-977d-fcf6f02b855e/app_events",
"events_url": "/v2/spaces/0c3561f7-bbaa-405f-977d-fcf6f02b855e/events",
"security_groups_url": "/v2/spaces/0c3561f7-bbaa-405f-977d-fcf6f02b855e/security_groups"
}
}
Headers