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/db5aef91-6316-4645-a538-5a2443501a07
Headers
cURL
curl "https://api.[your-domain.com]/v2/config/running_security_groups/db5aef91-6316-4645-a538-5a2443501a07" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4OCIsImVtYWlsIjoiZW1haWwtMTg1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NDl9.U5LQK_oR5OzWQhbjreV7OrP0zcy3lRMXWopJ6HeInr8" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"metadata": {
"guid": "db5aef91-6316-4645-a538-5a2443501a07",
"url": "/v2/config/running_security_groups/db5aef91-6316-4645-a538-5a2443501a07",
"created_at": "2015-09-30T23:30:49Z",
"updated_at": "2015-09-30T23:30:49Z"
},
"entity": {
"name": "name-1624",
"rules": [
{
"protocol": "udp",
"ports": "8080",
"destination": "198.41.191.47/1"
}
],
"running_default": true,
"staging_default": false
}
}
Headers