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/0b01769e-6e56-486e-8368-8f682cb707cc/spaces/efd83b6d-d2fd-4070-8a48-cdac52efbf0f
cURL
curl "https://api.[your-domain.com]/v2/security_groups/0b01769e-6e56-486e-8368-8f682cb707cc/spaces/efd83b6d-d2fd-4070-8a48-cdac52efbf0f" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyNSIsImVtYWlsIjoiZW1haWwtMjQ2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjIzMjM1NTN9.LU2HTW7uGUq-PbzsP0nAJ1SDJ-qX8M6oDk1AilRbr5A" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "0b01769e-6e56-486e-8368-8f682cb707cc",
"url": "/v2/security_groups/0b01769e-6e56-486e-8368-8f682cb707cc",
"created_at": "2015-01-20T01:52:15+00:00",
"updated_at": null
},
"entity": {
"name": "dummy1",
"rules": [
],
"running_default": false,
"staging_default": false,
"spaces_url": "/v2/security_groups/0b01769e-6e56-486e-8368-8f682cb707cc/spaces"
}
}