Associate Space with the Security Group
PUT /v2/security_groups/:guid/spaces/:space_guid
Request
Route
PUT /v2/security_groups/5b955729-4274-401a-b869-82137b78ecff/spaces/5f91447c-034d-488b-92fc-bcb70b020915
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/5b955729-4274-401a-b869-82137b78ecff/spaces/5f91447c-034d-488b-92fc-bcb70b020915" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ2OSIsImVtYWlsIjoiZW1haWwtMzM3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDl9.7rkHnYWxDRg-vN83A1aM0ThoiTZ-z4-SuPoDb08b_tM" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "5b955729-4274-401a-b869-82137b78ecff",
"url": "/v2/security_groups/5b955729-4274-401a-b869-82137b78ecff",
"created_at": "2015-10-07T00:35:26Z",
"updated_at": null
},
"entity": {
"name": "dummy1",
"rules": [
],
"running_default": false,
"staging_default": false,
"spaces_url": "/v2/security_groups/5b955729-4274-401a-b869-82137b78ecff/spaces"
}
}
Headers