Set a Security Group as a default for staging
PUT /v2/config/staging_security_groups/:guid
Request
Route
PUT /v2/config/staging_security_groups/ae13161d-b1cb-49fc-9046-78c62fbec2f9
Headers
cURL
curl "https://api.[your-domain.com]/v2/config/staging_security_groups/ae13161d-b1cb-49fc-9046-78c62fbec2f9" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ3MCIsImVtYWlsIjoiZW1haWwtMzM4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTY0NTIyNDl9.krZ9aUdy44Q-lvTEfF7NgMOfw-2UDmzWzQCViKGNjFQ" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"metadata": {
"guid": "ae13161d-b1cb-49fc-9046-78c62fbec2f9",
"url": "/v2/config/staging_security_groups/ae13161d-b1cb-49fc-9046-78c62fbec2f9",
"created_at": "2016-02-19T02:04:09Z",
"updated_at": "2016-02-19T02:04:09Z"
},
"entity": {
"name": "name-2684",
"rules": [
{
"protocol": "udp",
"ports": "8080",
"destination": "198.41.191.47/1"
}
],
"running_default": false,
"staging_default": true
}
}
Headers