Set a Security Group as a default for staging
PUT /v2/config/staging_security_groups/:guid
Request
Route
PUT /v2/config/staging_security_groups/f93a181a-59ec-41bc-ae6d-e8a5b84265db
Headers
cURL
curl "https://api.[your-domain.com]/v2/config/staging_security_groups/f93a181a-59ec-41bc-ae6d-e8a5b84265db" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQxNSIsImVtYWlsIjoiZW1haWwtMzEyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg1OTk0NTR9.UPw2Sm3L3CnwjHbut2BmQN1JBgHAyCKB3Yax36xrOig" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"metadata": {
"guid": "f93a181a-59ec-41bc-ae6d-e8a5b84265db",
"url": "/v2/config/staging_security_groups/f93a181a-59ec-41bc-ae6d-e8a5b84265db",
"created_at": "2016-03-14T22:30:54Z",
"updated_at": "2016-03-14T22:30:54Z"
},
"entity": {
"name": "name-2525",
"rules": [
{
"protocol": "udp",
"ports": "8080",
"destination": "198.41.191.47/1"
}
],
"running_default": false,
"staging_default": true
}
}
Headers