How to get RackSpace servers with a certain tag?

552 views Asked by At

Trying to fetch all the servers registered to our RackSpace account under a certain tag.

Using RackSpace's Python bindings for OpenStack, pyrax, we haven't found a way to do this. Is there some way to achieve it with that library, or is there another Python library that would do that?

Thanks very much!

2

There are 2 answers

3
Ed Leafe On BEST ANSWER

I'm the author of pyrax. Currently there is no way to access tag information via pyrax, as that information is not returned from the API. But I agree that that would be useful information, so I'm talking to the various teams involved to see what might be possible. When I hear something I'll follow up here.

0
user2646497 On

It looks to me like the metadata for cloud servers is currently available, which appears to contain the labels of the server.

You could list servers using pxrax and filter on the metadata.