附录 B. 枚举的值转换
B.1. 枚举的值转换
API 使用 Red Hat Virtualization Query 语言来执行搜索查询。有关查询语言的更多信息,请参阅 Red Hat Virtualization 管理指南中的 执行搜索的完整规格。
请注意,API 中的一些枚举值在使用 Query 语言时需要不同的搜索查询。下表提供了这些键枚举的值的转换。
资源类型
|
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 |