Set a Security Group as a default for staging
PUT /v2/config/staging_security_groups/:guid
Request
Route
PUT /v2/config/staging_security_groups/e5e4d8b1-cde2-4ddf-8121-0fc1b8781ec6
Headers
cURL
curl "https://api.[your-domain.com]/v2/config/staging_security_groups/e5e4d8b1-cde2-4ddf-8121-0fc1b8781ec6" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2IiwiZW1haWwiOiJlbWFpbC0xNkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ0NzgyOTIwfQ.GRu77QBBrSLo9i4yQi7IJXbC7bXLmAFnh7C_DtkYirw" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"metadata": {
"guid": "e5e4d8b1-cde2-4ddf-8121-0fc1b8781ec6",
"url": "/v2/config/staging_security_groups/e5e4d8b1-cde2-4ddf-8121-0fc1b8781ec6",
"created_at": "2015-10-07T00:35:20Z",
"updated_at": "2015-10-07T00:35:20Z"
},
"entity": {
"name": "name-68",
"rules": [
{
"protocol": "udp",
"ports": "8080",
"destination": "198.41.191.47/1"
}
],
"running_default": false,
"staging_default": true
}
}
Headers