Associate Space with the Security Group
PUT /v2/security_groups/:guid/spaces/:space_guid
Request
Route
PUT /v2/security_groups/d74117fc-f8f8-42e4-b155-279a7595990f/spaces/d1b5648d-6d4f-4025-b8bd-4cfa89ab007a
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the Security Group
|
|
|
space_guid
|
The guid of the space
|
|
|
Headers
cURL
curl "https://api.[your-domain.com]/v2/security_groups/d74117fc-f8f8-42e4-b155-279a7595990f/spaces/d1b5648d-6d4f-4025-b8bd-4cfa89ab007a" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzOSIsImVtYWlsIjoiZW1haWwtMTA3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTQ0NTE2MTV9._g4UoZvq-S-1UmygDMHgBjKQavJCnmKjPS6twLla87A" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "d74117fc-f8f8-42e4-b155-279a7595990f",
"url": "/v2/security_groups/d74117fc-f8f8-42e4-b155-279a7595990f",
"created_at": "2016-01-26T22:20:04Z",
"updated_at": null
},
"entity": {
"name": "dummy1",
"rules": [
],
"running_default": false,
"staging_default": false,
"spaces_url": "/v2/security_groups/d74117fc-f8f8-42e4-b155-279a7595990f/spaces"
}
}
Headers