Associate Space with the Security Group
PUT /v2/security_groups/:guid/spaces/:space_guid
Request
Route
PUT /v2/security_groups/f331aa11-b39e-4577-8c80-59d374f28364/spaces/cabdd30b-fb46-41eb-b44d-c6114c80586d
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the Security Group
|
|
|
space_guid
|
The guid of the space
|
|
|
Headers
cURL
curl "https://api.[your-domain.com]/v2/security_groups/f331aa11-b39e-4577-8c80-59d374f28364/spaces/cabdd30b-fb46-41eb-b44d-c6114c80586d" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwMCIsImVtYWlsIjoiZW1haWwtMTYzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4NDF9.nyR7NCzJQez95lnx-jUCihrspjCv1jmOqIJGxFC0Bh0" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "f331aa11-b39e-4577-8c80-59d374f28364",
"url": "/v2/security_groups/f331aa11-b39e-4577-8c80-59d374f28364",
"created_at": "2015-11-03T00:53:43Z",
"updated_at": null
},
"entity": {
"name": "dummy1",
"rules": [
],
"running_default": false,
"staging_default": false,
"spaces_url": "/v2/security_groups/f331aa11-b39e-4577-8c80-59d374f28364/spaces"
}
}
Headers