Associate Space with the Security Group
PUT /v2/security_groups/:guid/spaces/:space_guid
Request
Route
PUT /v2/security_groups/28448490-1f15-4265-aac2-a8d8afb6fe70/spaces/7d75c446-378f-4d5e-87b8-f646ec5a69f1
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the Security Group
|
|
|
space_guid
|
The guid of the Space
|
|
|
Body
Name |
Description |
Default |
Valid Values |
Example Values |
Headers
cURL
curl "https://api.[your-domain.com]/v2/security_groups/28448490-1f15-4265-aac2-a8d8afb6fe70/spaces/7d75c446-378f-4d5e-87b8-f646ec5a69f1" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3NCIsImVtYWlsIjoiZW1haWwtMjc1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjkwMzg3MjF9.Ul6xqyFxGbDzzSHhnsYViajK5jIFDEtDUrCP8kxJ8YE" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "28448490-1f15-4265-aac2-a8d8afb6fe70",
"url": "/v2/security_groups/28448490-1f15-4265-aac2-a8d8afb6fe70",
"created_at": "2015-04-07T19:11:49Z",
"updated_at": null
},
"entity": {
"name": "dummy1",
"rules": [
],
"running_default": false,
"staging_default": false,
"spaces_url": "/v2/security_groups/28448490-1f15-4265-aac2-a8d8afb6fe70/spaces"
}
}
Headers