附录 B. 枚举的值转换


B.1. 枚举的值转换

API 使用 Red Hat Virtualization Query 语言来执行搜索查询。有关查询语言的更多信息,请参阅 Red Hat Virtualization 管理指南中的 执行搜索的完整规格。
请注意,API 中的一些枚举值在使用 Query 语言时需要不同的搜索查询。下表提供了这些键枚举的值的转换。
表 B.1. 枚举的值转换
资源类型
API 可枚举的类型
API 可枚举的值
查询语言属性
查询语言值
数据中心
data_center_states not_operational status notoperational
主机
host_states non_responsive status nonresponsive
install_failed installfailed
preparing_for_maintenance preparingformaintenance
non_operational nonoperational
pending_approval pendingapproval
虚拟机
vm_states powering_up status poweringup
powering_down poweringdown
迁移 migratingfrom
迁移 migratingto
not_responding Notresponding
wait_for_launch waitforlaunch
reboot_in_progress rebootinprogress
saving_state savingstate
restoring_state restoringstate
image_locked imagelocked
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.