Set a Security Group as a default for staging
PUT /v2/config/staging_security_groups/:guid
Request
Route
PUT /v2/config/staging_security_groups/ef96c395-b4be-4783-8eaf-e0a10941061b
Headers
cURL
curl "https://api.[your-domain.com]/v2/config/staging_security_groups/ef96c395-b4be-4783-8eaf-e0a10941061b" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5MSIsImVtYWlsIjoiZW1haWwtMTk3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2OTF9.LdB7nIMVCO8Z9Kj2dDbIUzBL-2c4quefuGC-3WUTCP0" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"metadata": {
"guid": "ef96c395-b4be-4783-8eaf-e0a10941061b",
"url": "/v2/config/staging_security_groups/ef96c395-b4be-4783-8eaf-e0a10941061b",
"created_at": "2015-12-22T18:28:11Z",
"updated_at": "2015-12-22T18:28:11Z"
},
"entity": {
"name": "name-948",
"rules": [
{
"protocol": "udp",
"ports": "8080",
"destination": "198.41.191.47/1"
}
],
"running_default": false,
"staging_default": true
}
}
Headers