Set a Security Group as a default for staging
PUT /v2/config/staging_security_groups/:guid
Request
Route
PUT /v2/config/staging_security_groups/4d6bef5c-8bbf-499b-b56b-a66eb32f4b46
Body
Name |
Description |
Default |
Valid Values |
Example Values |
Headers
cURL
curl "https://api.[your-domain.com]/v2/config/staging_security_groups/4d6bef5c-8bbf-499b-b56b-a66eb32f4b46" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzNSIsImVtYWlsIjoiZW1haWwtMTU2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjk2NjQxNDJ9.VAjWrlWIjC9a-VnO7FSYKjDhUziN7EpwHkthb1Wg_zw" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"metadata": {
"guid": "4d6bef5c-8bbf-499b-b56b-a66eb32f4b46",
"url": "/v2/config/staging_security_groups/4d6bef5c-8bbf-499b-b56b-a66eb32f4b46",
"created_at": "2015-04-15T00:55:42Z",
"updated_at": "2015-04-15T00:55:42Z"
},
"entity": {
"name": "name-1466",
"rules": [
{
"protocol": "udp",
"ports": "8080",
"destination": "198.41.191.47/1"
}
],
"running_default": false,
"staging_default": true
}
}
Headers