You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jclouds.apache.org by bat desso <ba...@abv.bg> on 2014/11/19 10:51:49 UTC
How to change the security group of an existing server in openstack via jclouds?
Hi all,
Can you please help me with this topic - I would like to do the following – I want to change the security group of an existing server in openstack. I could not find any documentation how to do that using jclouds.
Which API I need to use?
Best regards - batdesso
Re: How to change the security group of an existing server in
openstack via jclouds?
Posted by Everett Toews <ev...@RACKSPACE.COM>.
For jclouds 1.8.1.
If you're dealing with Nova security groups, you need this SecurityGroupApi [1].
SecurityGroupApi securityGroupApi = novaApi.getSecurityGroupExtensionForZone(“region").get();
If you're dealing with Neutron security groups, you need this SecurityGroupApi [2].
SecurityGroupApi securityGroupApi = neutronApi.getSecurityGroupApi(“region").get();
Everett
[1] http://jclouds.apache.org/reference/javadoc/1.8.x/org/jclouds/openstack/nova/v2_0/extensions/SecurityGroupApi.html
[2] http://jclouds.apache.org/reference/javadoc/1.8.x/org/jclouds/openstack/neutron/v2/extensions/SecurityGroupApi.html
On Nov 19, 2014, at 3:51 AM, bat desso <ba...@abv.bg> wrote:
> Hi all,
>
> Can you please help me with this topic - I would like to do the following – I want to change the security group of an existing server in openstack.
> I could not find any documentation how to do that using jclouds. Which API I need to use?
>
> Best regards - batdesso