Set a Security Group as a default for running Apps
PUT /v2/config/running_security_groups/:guid
Fields
Name |
Description |
Default |
Valid Values |
Example Values |
Request
Headers
Route
PUT /v2/config/running_security_groups/e4f5f417-802d-4eb3-a1e6-ecd40eb3db62
cURL
curl "https://api.[your-domain.com]/v2/config/running_security_groups/e4f5f417-802d-4eb3-a1e6-ecd40eb3db62" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1NCIsImVtYWlsIjoiZW1haWwtMTk0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjIzMjM1NTB9.GEeM80V4A56ZsVx1F_H1ozON9eU8VogeVs4fCY_4HmI" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
200 OK
Body
{
"metadata": {
"guid": "e4f5f417-802d-4eb3-a1e6-ecd40eb3db62",
"url": "/v2/config/running_security_groups/e4f5f417-802d-4eb3-a1e6-ecd40eb3db62",
"created_at": "2015-01-20T01:52:30+00:00",
"updated_at": "2015-01-20T01:52:30+00:00"
},
"entity": {
"name": "name-1796",
"rules": [
{
"protocol": "udp",
"ports": "8080",
"destination": "198.41.191.47/1"
}
],
"running_default": true,
"staging_default": false
}
}