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/43e0441d-c9c1-4250-b8d5-7fb624379e02
Headers
cURL
curl "https://api.[your-domain.com]/v2/config/running_security_groups/43e0441d-c9c1-4250-b8d5-7fb624379e02" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEiLCJlbWFpbCI6ImVtYWlsLTFAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2NjAwODg4MX0.m6GtgViLS5lBqIPzeb9qNBVw8RqNwAMMIrLChYXCmg4" \
-H "Host: example.org" \
-H "Content-Type: application/json" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"metadata": {
"guid": "43e0441d-c9c1-4250-b8d5-7fb624379e02",
"url": "/v2/config/running_security_groups/43e0441d-c9c1-4250-b8d5-7fb624379e02",
"created_at": "2016-06-08T16:41:21Z",
"updated_at": "2016-06-08T16:41:21Z"
},
"entity": {
"name": "name-1",
"rules": [
{
"protocol": "udp",
"ports": "8080",
"destination": "198.41.191.47/1"
}
],
"running_default": true,
"staging_default": false
}
}
Headers