简体   繁体   English

如何获得具有特定标签的RackSpace服务器?

[英]How to get RackSpace servers with a certain tag?

Trying to fetch all the servers registered to our RackSpace account under a certain tag. 尝试在特定标记下获取注册到我们的RackSpace帐户的所有服务器。

Using RackSpace's Python bindings for OpenStack, pyrax , we haven't found a way to do this. 使用RackSpace的Python绑定到OpenStack, pyrax ,我们还没有找到办法。 Is there some way to achieve it with that library, or is there another Python library that would do that? 有没有办法用这个库实现它,还是有另一个Python库可以做到这一点?

Thanks very much! 非常感谢!

I'm the author of pyrax . 我是pyrax的作者。 Currently there is no way to access tag information via pyrax, as that information is not returned from the API. 目前无法通过pyrax访问标签信息,因为该信息不是从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. 您可以使用pxrax列出服务器并过滤元数据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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