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/d31fda7d-926c-4864-b302-e54c2ecb8a24
Headers
cURL
curl "https://api.[your-domain.com]/v2/config/running_security_groups/d31fda7d-926c-4864-b302-e54c2ecb8a24" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTciLCJlbWFpbCI6ImVtYWlsLTdAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NDc4MjkxOX0.9KKATPPuzXNNm44-Qhj239yDLcFtaArwG_IIWQ6KX7I" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"metadata": {
"guid": "d31fda7d-926c-4864-b302-e54c2ecb8a24",
"url": "/v2/config/running_security_groups/d31fda7d-926c-4864-b302-e54c2ecb8a24",
"created_at": "2015-10-07T00:35:19Z",
"updated_at": "2015-10-07T00:35:19Z"
},
"entity": {
"name": "name-30",
"rules": [
{
"protocol": "udp",
"ports": "8080",
"destination": "198.41.191.47/1"
}
],
"running_default": true,
"staging_default": false
}
}
Headers