Set a Security Group as a default for staging
PUT /v2/config/staging_security_groups/:guid
Fields
Name |
Description |
Default |
Valid Values |
Example Values |
Request
Headers
Route
PUT /v2/config/staging_security_groups/b63a2f44-0dc9-4160-a42e-14093e4f4f12
cURL
curl "https://api.[your-domain.com]/v2/config/staging_security_groups/b63a2f44-0dc9-4160-a42e-14093e4f4f12" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzMyIsImVtYWlsIjoiZW1haWwtMTc0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4NzZ9.Y9ysA0ROXkBwsdVUvy891al9iKzOLGDyAjWeHs-WMUE" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
200 OK
Body
{
"metadata": {
"guid": "b63a2f44-0dc9-4160-a42e-14093e4f4f12",
"url": "/v2/config/staging_security_groups/b63a2f44-0dc9-4160-a42e-14093e4f4f12",
"created_at": "2015-01-27T19:14:36Z",
"updated_at": "2015-01-27T19:14:36Z"
},
"entity": {
"name": "name-1432",
"rules": [
{
"protocol": "udp",
"ports": "8080",
"destination": "198.41.191.47/1"
}
],
"running_default": false,
"staging_default": true
}
}