Set a Security Group as a default for running Apps
PUT /v2/config/running_security_groups/:guid
Request
Route
PUT /v2/config/running_security_groups/9a8b70e0-3785-412a-b57f-d48faf3330a8
Headers
cURL
curl "https://api.[your-domain.com]/v2/config/running_security_groups/9a8b70e0-3785-412a-b57f-d48faf3330a8" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQyMCIsImVtYWlsIjoiZW1haWwtMjg5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDgwMzg5NzN9.gFAenzDoXeEIempwi5fzuEszTWW-oYjZcGWOh9sOxGw" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"metadata": {
"guid": "9a8b70e0-3785-412a-b57f-d48faf3330a8",
"url": "/v2/config/running_security_groups/9a8b70e0-3785-412a-b57f-d48faf3330a8",
"created_at": "2015-11-13T17:02:53Z",
"updated_at": "2015-11-13T17:02:53Z"
},
"entity": {
"name": "name-2356",
"rules": [
{
"protocol": "udp",
"ports": "8080",
"destination": "198.41.191.47/1"
}
],
"running_default": true,
"staging_default": false
}
}
Headers