Set a Security Group as a default for staging
PUT /v2/config/staging_security_groups/:guid
Request
Route
PUT /v2/config/staging_security_groups/65126d32-11e8-44e4-a756-7d16412d9657
Headers
cURL
curl "https://api.[your-domain.com]/v2/config/staging_security_groups/65126d32-11e8-44e4-a756-7d16412d9657" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5MiIsImVtYWlsIjoiZW1haWwtMjgyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDE2NjI2MTd9.jiRMcYn4-_q8WPlA1mOMi6abI10aFu8lEz0bxzBv5bQ" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"metadata": {
"guid": "65126d32-11e8-44e4-a756-7d16412d9657",
"url": "/v2/config/staging_security_groups/65126d32-11e8-44e4-a756-7d16412d9657",
"created_at": "2015-08-31T21:50:17Z",
"updated_at": "2015-08-31T21:50:17Z"
},
"entity": {
"name": "name-2351",
"rules": [
{
"protocol": "udp",
"ports": "8080",
"destination": "198.41.191.47/1"
}
],
"running_default": false,
"staging_default": true
}
}
Headers