Associate Space with the Security Group
PUT /v2/security_groups/:guid/spaces/:space_guid
Request
Route
PUT /v2/security_groups/59705ec4-a8fe-49a5-816b-98ab5370be0a/spaces/0cacda68-d7a6-4ea0-ae11-a5f43f300ef4
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the Security Group
|
|
|
space_guid
|
The guid of the space
|
|
|
space_guid
|
The guid of the Space
|
|
|
Headers
cURL
curl "https://api.[your-domain.com]/v2/security_groups/59705ec4-a8fe-49a5-816b-98ab5370be0a/spaces/0cacda68-d7a6-4ea0-ae11-a5f43f300ef4" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3NCIsImVtYWlsIjoiZW1haWwtMjc2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5Njl9.l7RcMJcwIbIN1orThlvKXO1kBbMjyDADGg5YQ1U6SIc" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "59705ec4-a8fe-49a5-816b-98ab5370be0a",
"url": "/v2/security_groups/59705ec4-a8fe-49a5-816b-98ab5370be0a",
"created_at": "2015-10-15T23:52:47Z",
"updated_at": null
},
"entity": {
"name": "dummy1",
"rules": [
],
"running_default": false,
"staging_default": false,
"spaces_url": "/v2/security_groups/59705ec4-a8fe-49a5-816b-98ab5370be0a/spaces"
}
}
Headers