Associate Space with the Security Group
PUT /v2/security_groups/:guid/spaces/:space_guid
Fields
Name |
Description |
Default |
Valid Values |
Example Values |
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the Security Group
|
|
|
space_guid
|
The guid of the Space
|
|
|
Request
Headers
Route
PUT /v2/security_groups/479b592b-f278-430f-9745-624de4c93fd8/spaces/4271a477-e2fe-4b64-8e35-3845b4988461
cURL
curl "https://api.[your-domain.com]/v2/security_groups/479b592b-f278-430f-9745-624de4c93fd8/spaces/4271a477-e2fe-4b64-8e35-3845b4988461" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTc5IiwiZW1haWwiOiJlbWFpbC01MEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI0MzEwMTIyfQ.tHdd4sdlJ3OICHk1FjF9DiycS5Ch_4a1n-E-N_pKsqk" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "479b592b-f278-430f-9745-624de4c93fd8",
"url": "/v2/security_groups/479b592b-f278-430f-9745-624de4c93fd8",
"created_at": "2015-02-12T01:41:57Z",
"updated_at": null
},
"entity": {
"name": "dummy1",
"rules": [
],
"running_default": false,
"staging_default": false,
"spaces_url": "/v2/security_groups/479b592b-f278-430f-9745-624de4c93fd8/spaces"
}
}