Show Table of Contents
第5章 CLI クエリー
5.1. クエリーの構文
CLI の
list コマンドは --query 属性を使用してサーバー側のクエリーを実行します。このコマンドは、Red Hat Virtualization Manager の検索クエリー言語と同じ形式を使用します。
表5.1 検索クエリーの例
| コレクション | 条件 | 結果 |
|---|---|---|
hosts | vms.status=up | up 状態の仮想マシンを実行中の全ホストの一覧を表示 |
vms | domain=qa.company.com | 指定したドメインで稼働中の全仮想マシンの一覧を表示 |
vms | users.name=mary | ユーザー名が mary のユーザーに属する全仮想マシンの一覧を表示 |
events | severity>normal sortby time | 重大度が normal を超えるすべての events の一覧を表示し、time 要素値でソート |
events | severity>normal sortby time desc | 重大度が normal を超えるすべての events の一覧を表示し、time 要素値の降順にソート |

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.