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

Asked by Nelvin Driz

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:
Last query:
Last reply:
Revision history for this message
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

Revision history for this message
Nelvin Driz (nelvindriz) said :
#2

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

Revision history for this message
Nelvin Driz (nelvindriz) said :
#3

Thanks Russell Bryant, that solved my question.