Set a Security Group as a default for staging
PUT /v2/config/staging_security_groups/:guid
Request
Route
PUT /v2/config/staging_security_groups/b9b61756-2653-451b-84f4-e82df3e5246b
Headers
cURL
curl "https://api.[your-domain.com]/v2/config/staging_security_groups/b9b61756-2653-451b-84f4-e82df3e5246b" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ2OCIsImVtYWlsIjoiZW1haWwtMzM1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDgwMzg5Nzd9.Sk1GMovj8xQHw7IZcb3vmI4F_zS8-V0PuybJ-tPx8zM" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"metadata": {
"guid": "b9b61756-2653-451b-84f4-e82df3e5246b",
"url": "/v2/config/staging_security_groups/b9b61756-2653-451b-84f4-e82df3e5246b",
"created_at": "2015-11-13T17:02:57Z",
"updated_at": "2015-11-13T17:02:57Z"
},
"entity": {
"name": "name-2571",
"rules": [
{
"protocol": "udp",
"ports": "8080",
"destination": "198.41.191.47/1"
}
],
"running_default": false,
"staging_default": true
}
}
Headers