Set a Security Group as a default for staging
PUT /v2/config/staging_security_groups/:guid
Request
Route
PUT /v2/config/staging_security_groups/a454dcf4-7bb2-4dc8-ad08-38892759307e
Headers
cURL
curl "https://api.[your-domain.com]/v2/config/staging_security_groups/a454dcf4-7bb2-4dc8-ad08-38892759307e" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxNyIsImVtYWlsIjoiZW1haWwtMjIwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NjB9.xXeP7ZL6R0zfCeUIAllmaBtBc_-vuk0-AmohQLe8PdQ" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"metadata": {
"guid": "a454dcf4-7bb2-4dc8-ad08-38892759307e",
"url": "/v2/config/staging_security_groups/a454dcf4-7bb2-4dc8-ad08-38892759307e",
"created_at": "2015-10-15T23:52:40Z",
"updated_at": "2015-10-15T23:52:40Z"
},
"entity": {
"name": "name-2128",
"rules": [
{
"protocol": "udp",
"ports": "8080",
"destination": "198.41.191.47/1"
}
],
"running_default": false,
"staging_default": true
}
}
Headers