简体   繁体   中英

How to get RackSpace servers with a certain tag?

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!

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM