Associate Space with the Security Group
PUT /v2/security_groups/:guid/spaces/:space_guid
Request
Route
PUT /v2/security_groups/5697b8ff-c2e9-48e3-a3ae-8b57805fd65c/spaces/5cee24a7-88c1-4bf6-8ea8-4aa828625e01
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/5697b8ff-c2e9-48e3-a3ae-8b57805fd65c/spaces/5cee24a7-88c1-4bf6-8ea8-4aa828625e01" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQzOSIsImVtYWlsIjoiZW1haWwtMzEwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTMzMTA5OTV9.hvdv0K98skKMIJ6_QX8YpGB0QPUZlBrljRdzDAJcNps" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "5697b8ff-c2e9-48e3-a3ae-8b57805fd65c",
"url": "/v2/security_groups/5697b8ff-c2e9-48e3-a3ae-8b57805fd65c",
"created_at": "2016-01-13T17:29:54Z",
"updated_at": null
},
"entity": {
"name": "dummy1",
"rules": [
],
"running_default": false,
"staging_default": false,
"spaces_url": "/v2/security_groups/5697b8ff-c2e9-48e3-a3ae-8b57805fd65c/spaces"
}
}
Headers