Associate Space with the Security Group
PUT /v2/security_groups/:guid/spaces/:space_guid
Request
Route
PUT /v2/security_groups/3e4f9d08-a7f0-44f5-9296-46042127bf36/spaces/29761961-a9d5-4572-877a-9c8f85f91469
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/3e4f9d08-a7f0-44f5-9296-46042127bf36/spaces/29761961-a9d5-4572-877a-9c8f85f91469" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0MSIsImVtYWlsIjoiZW1haWwtMTAzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjczMjM5NjR9.nJLhb2loGXBgbTrhMOjQAeNy-YM-CE7W14SiWKb_ImU" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "3e4f9d08-a7f0-44f5-9296-46042127bf36",
"url": "/v2/security_groups/3e4f9d08-a7f0-44f5-9296-46042127bf36",
"created_at": "2015-03-18T22:52:38Z",
"updated_at": null
},
"entity": {
"name": "dummy1",
"rules": [
],
"running_default": false,
"staging_default": false,
"spaces_url": "/v2/security_groups/3e4f9d08-a7f0-44f5-9296-46042127bf36/spaces"
}
}
Headers