Associate Space with the Security Group
PUT /v2/security_groups/:guid/spaces/:space_guid
Request
Route
PUT /v2/security_groups/a3715004-6a1a-4291-b252-3966d7fa89de/spaces/a363ac08-e2f8-4263-996a-941200495894
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/a3715004-6a1a-4291-b252-3966d7fa89de/spaces/a363ac08-e2f8-4263-996a-941200495894" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzNCIsImVtYWlsIjoiZW1haWwtMjMyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDI2MDE1NDV9.G9sxBYt77OOCq7V5Bk_7iz95L5Y7vCq_S1tN6cWjHBo" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "a3715004-6a1a-4291-b252-3966d7fa89de",
"url": "/v2/security_groups/a3715004-6a1a-4291-b252-3966d7fa89de",
"created_at": "2015-09-11T18:38:57Z",
"updated_at": null
},
"entity": {
"name": "dummy1",
"rules": [
],
"running_default": false,
"staging_default": false,
"spaces_url": "/v2/security_groups/a3715004-6a1a-4291-b252-3966d7fa89de/spaces"
}
}
Headers