Set a Security Group as a default for staging
PUT /v2/config/staging_security_groups/:guid
Request
Route
PUT /v2/config/staging_security_groups/da33779d-ab56-4fdb-91d7-6f1825721b52
Headers
cURL
curl "https://api.[your-domain.com]/v2/config/staging_security_groups/da33779d-ab56-4fdb-91d7-6f1825721b52" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMCIsImVtYWlsIjoiZW1haWwtNzVAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2NjAwODg4N30.r4CUgvz5Um2DqY7HqEMfiBL3e-nV4u7XAfINzpWdwOU" \
-H "Host: example.org" \
-H "Content-Type: application/json" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"metadata": {
"guid": "da33779d-ab56-4fdb-91d7-6f1825721b52",
"url": "/v2/config/staging_security_groups/da33779d-ab56-4fdb-91d7-6f1825721b52",
"created_at": "2016-06-08T16:41:27Z",
"updated_at": "2016-06-08T16:41:27Z"
},
"entity": {
"name": "name-1369",
"rules": [
{
"protocol": "udp",
"ports": "8080",
"destination": "198.41.191.47/1"
}
],
"running_default": false,
"staging_default": true
}
}
Headers