개요
- cf update-security-group
예시
root@zetawiki:~# cf security-group sgredis1
Getting info for security group sgredis1 as testuser03
OK
Name sgredis1
Rules
[
{
"destination": "192.168.1.250/32",
"ports": "32768-61000",
"protocol": "tcp"
}
]
Organization Space
#0 cloudpack testuser01
#1 cloudpack testuser04
#2 cloudpack testuser03
root@zetawiki:~# cat newsg.json
[
{
"destination": "192.168.1.100/32",
"ports": "32768-61000",
"protocol": "tcp"
}
]
root@zetawiki:~# cf update-security-group sgredis1 newsg.json
Updating security group sgredis1 as testuser03
OK
TIP: Changes will not apply to existing running applications until they are restarted.
root@zetawiki:~# cf security-group sgredis1
Getting info for security group sgredis1 as testuser03
OK
Name sgredis1
Rules
[
{
"destination": "192.168.1.100/32",
"ports": "32768-61000",
"protocol": "tcp"
}
]
Organization Space
#0 cloudpack testuser01
#1 cloudpack testuser04
#2 cloudpack testuser03
같이 보기