How can server instances be filtered by its availability zone?

asked 2018-02-06 06:26:12 -0500

L4rS gravatar image

If I run openstack action execution run nova.servers_list '{ "search_opts": { "availability_zone": "myzone1" } }' as a non-admin user all instances are returned instead of a filtered list. Is there any possibility to filter instances by AZ without having an admin user?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2018-02-07 08:39:52 -0500

L4rS gravatar image

Use as a non-admin user nova.servers_findall:

openstack action execution run nova.servers_findall '{ "OS-EXT-AZ:availability_zone": "myzone1" }'

edit flag offensive delete link more


What I can't find is how I would do this in Python. Would that be possible?

jengbers gravatar imagejengbers ( 2020-02-25 06:28:39 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2018-02-06 06:26:12 -0500

Seen: 79 times

Last updated: Feb 06 '18