Set a Security Group as a default for staging
PUT /v2/config/staging_security_groups/:guid
Request
Route
PUT /v2/config/staging_security_groups/c73e64ba-7041-40b9-98b7-bf07444cba92
Headers
cURL
curl "https://api.[your-domain.com]/v2/config/staging_security_groups/c73e64ba-7041-40b9-98b7-bf07444cba92" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyOCIsImVtYWlsIjoiZW1haWwtOTVAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1MzMxMDk3N30.c5jHJuCoR-xHVFbN-StqWCNKL5YnOYYE8RK0VjIaJ4Y" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"metadata": {
"guid": "c73e64ba-7041-40b9-98b7-bf07444cba92",
"url": "/v2/config/staging_security_groups/c73e64ba-7041-40b9-98b7-bf07444cba92",
"created_at": "2016-01-13T17:29:37Z",
"updated_at": "2016-01-13T17:29:37Z"
},
"entity": {
"name": "name-477",
"rules": [
{
"protocol": "udp",
"ports": "8080",
"destination": "198.41.191.47/1"
}
],
"running_default": false,
"staging_default": true
}
}
Headers