[ https://issues.apache.org/jira/browse/CLOUDSTACK-9203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15076158#comment-15076158 ]
ASF GitHub Bot commented on CLOUDSTACK-9203: -------------------------------------------- Github user DaanHoogland commented on the pull request: https://github.com/apache/cloudstack/pull/1297#issuecomment-168254041 done some testing: ![screen shot 2015-12-31 at 22 55 55](https://cloud.githubusercontent.com/assets/2486961/12068663/38964556-b012-11e5-83a3-efd0e5be58e7.png) ![screen shot 2015-12-31 at 22 56 20](https://cloud.githubusercontent.com/assets/2486961/12068665/3d2464ae-b012-11e5-8fb8-41fb7fb71cfb.png) with cloudmonkey: ``` 🐵 > update virtualmachine id=39f058ad-3021-4753-9c96-1aa922a74632 securitygroupnames=exceptional Error 431: Virtual machine must be stopped prior to update security groups 🐵 > stop virtualmachine id=39f058ad-3021-4753-9c96-1aa922a74632 ... 🐵 > update virtualmachine id=39f058ad-3021-4753-9c96-1aa922a74632 securitygroupnames=exceptional ... ``` resulting in ![screen shot 2015-12-31 at 22 58 54](https://cloud.githubusercontent.com/assets/2486961/12068669/6b2f229e-b012-11e5-8111-2b0f669aebfa.png) > [API] extend updateVirtualMachine to support updating security groups > --------------------------------------------------------------------- > > Key: CLOUDSTACK-9203 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9203 > Project: CloudStack > Issue Type: New Feature > Security Level: Public(Anyone can view this level - this is the > default.) > Components: API > Reporter: René Moser > Assignee: Daan Hoogland > Priority: Minor > Fix For: Future > > > There is currently no way to change security groups on exisitng VMs. > {{updateVirtualMachine}} should be extended in a similar way as > {{deployVirtualMachine}} which should allow passing a list of IDs or names to > update the security groups as passed: > {{securitygroupids}} parameter > comma separated list of security groups id that going to be applied to the > virtual machine. Should be passed only when vm is created from a zone with > Basic Network support. Mutually exclusive with securitygroupnames parameter, > default: false > {{securitygroupnames}} parameter > comma separated list of security groups names that going to be applied to the > virtual machine. Should be passed only when vm is created from a zone with > Basic Network support. Mutually exclusive with securitygroupids parameter. > default: false > Exoscale did already some work in their branch which we are > [allowed|https://twitter.com/resmo79/status/681428989018267648] to use, see > [https://github.com/exoscale/cloudstack/pull/6/] -- This message was sent by Atlassian JIRA (v6.3.4#6332)