Set a Security Group as a default for staging
PUT /v2/config/staging_security_groups/:guid
Request
Route
PUT /v2/config/staging_security_groups/eb6a8391-ac1d-46e0-be26-cd55231e2793
Body
Name |
Description |
Default |
Valid Values |
Example Values |
Headers
cURL
curl "https://api.[your-domain.com]/v2/config/staging_security_groups/eb6a8391-ac1d-46e0-be26-cd55231e2793" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3NSIsImVtYWlsIjoiZW1haWwtMjc3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2Nzl9.6jE_rwgV9ewNpiUVqUXuiHtOz8dfzR1phMSeZGj_tGM" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"metadata": {
"guid": "eb6a8391-ac1d-46e0-be26-cd55231e2793",
"url": "/v2/config/staging_security_groups/eb6a8391-ac1d-46e0-be26-cd55231e2793",
"created_at": "2015-03-03T00:51:19Z",
"updated_at": "2015-03-03T00:51:19Z"
},
"entity": {
"name": "name-2048",
"rules": [
{
"protocol": "udp",
"ports": "8080",
"destination": "198.41.191.47/1"
}
],
"running_default": false,
"staging_default": true
}
}
Headers