Associate Space with the Security Group
PUT /v2/security_groups/:guid/spaces/:space_guid
Request
Route
PUT /v2/security_groups/6e52c9ae-50df-44a0-949a-032b4c292156/spaces/9d0c61be-075a-4a1d-8fba-7ebcf380b847
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/6e52c9ae-50df-44a0-949a-032b4c292156/spaces/9d0c61be-075a-4a1d-8fba-7ebcf380b847" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2MCIsImVtYWlsIjoiZW1haWwtMjI5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDgwMzg5NjR9.dCNd5_NzB0hj-s24LGHt4KREZbph654sODSPvgLUOH4" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "6e52c9ae-50df-44a0-949a-032b4c292156",
"url": "/v2/security_groups/6e52c9ae-50df-44a0-949a-032b4c292156",
"created_at": "2015-11-13T17:02:37Z",
"updated_at": null
},
"entity": {
"name": "dummy1",
"rules": [
],
"running_default": false,
"staging_default": false,
"spaces_url": "/v2/security_groups/6e52c9ae-50df-44a0-949a-032b4c292156/spaces"
}
}
Headers