OpenStack Compute (Nova)

How to know which security groups are applied to a VM through API

Asked by Nelvin Driz on 2012-04-20

Been using your API and there seems to be no confirmation on the retuned value upon creation of the server nor when we query for the list of servers or on its own.

Is this data available somewhere?

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Russell Bryant
Solved:
2012-04-21
Last query:
2012-04-21
Last reply:
2012-04-21
Best Russell Bryant (russellb) said : #1

Take a look at the security groups API extension. You can find some information about how to use it on http://api.openstack.org/. There is an API call to get the list of security groups for a server.

v1.1/{tenant_id}/servers/{server_id}/os-security-groups

Nelvin Driz (nelvindriz) said : #2

Thanks, didn't notice the new changes on http://api.openstack.org/. In any case checking. :)

Nelvin Driz (nelvindriz) said : #3

Thanks Russell Bryant, that solved my question.