Set a Security Group as a default for staging
PUT /v2/config/staging_security_groups/:guid
Request
Route
PUT /v2/config/staging_security_groups/6a5aca8b-b0cb-4513-854f-9261a2db1386
Headers
cURL
curl "https://api.[your-domain.com]/v2/config/staging_security_groups/6a5aca8b-b0cb-4513-854f-9261a2db1386" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzNSIsImVtYWlsIjoiZW1haWwtMTAzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjE5NTgzOTd9.yHDIlSdBJHa75ehyVBfQn5X-l25TCmjaeq2OInE8Nmk" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"metadata": {
"guid": "6a5aca8b-b0cb-4513-854f-9261a2db1386",
"url": "/v2/config/staging_security_groups/6a5aca8b-b0cb-4513-854f-9261a2db1386",
"created_at": "2016-04-22T19:33:16Z",
"updated_at": "2016-04-22T19:33:16Z"
},
"entity": {
"name": "name-340",
"rules": [
{
"protocol": "udp",
"ports": "8080",
"destination": "198.41.191.47/1"
}
],
"running_default": false,
"staging_default": true
}
}
Headers