6.133. InstanceTypes
名前 | 概要 |
---|---|
| 新しいインスタンスタイプを作成します。 |
| システム内の既存のすべてのインスタンスタイプを一覧表示します。 |
6.133.1. add POST
新しいインスタンスタイプを作成します。
これには name 属性のみが必要であり、仮想マシンのすべてのハードウェア設定を含めることができます。
POST /ovirt-engine/api/instancetypes
リクエスト本文は以下のようになります。
<instance_type> <name>myinstancetype</name> </template>
次のようなリクエスト本文を使用して、すべてのハードウェア設定でインスタンスタイプを作成します。
<instance_type> <name>myinstancetype</name> <console> <enabled>true</enabled> </console> <cpu> <topology> <cores>2</cores> <sockets>2</sockets> <threads>1</threads> </topology> </cpu> <custom_cpu_model>AMD Opteron_G2</custom_cpu_model> <custom_emulated_machine>q35</custom_emulated_machine> <display> <monitors>1</monitors> <single_qxl_pci>true</single_qxl_pci> <smartcard_enabled>true</smartcard_enabled> <type>spice</type> </display> <high_availability> <enabled>true</enabled> <priority>1</priority> </high_availability> <io> <threads>2</threads> </io> <memory>4294967296</memory> <memory_policy> <ballooning>true</ballooning> <guaranteed>268435456</guaranteed> </memory_policy> <migration> <auto_converge>inherit</auto_converge> <compressed>inherit</compressed> <policy id="00000000-0000-0000-0000-000000000000"/> </migration> <migration_downtime>2</migration_downtime> <os> <boot> <devices> <device>hd</device> </devices> </boot> </os> <rng_device> <rate> <bytes>200</bytes> <period>2</period> </rate> <source>urandom</source> </rng_device> <soundcard_enabled>true</soundcard_enabled> <usb> <enabled>true</enabled> <type>native</type> </usb> <virtio_scsi> <enabled>true</enabled> </virtio_scsi> </instance_type>
名前 | タイプ | 方向 | 概要 |
---|---|---|---|
| In/Out |
6.133.2. list GET
システム内の既存のすべてのインスタンスタイプを一覧表示します。
返されるインスタンスタイプ一覧の順序は保証されません。
名前 | タイプ | 方向 | 概要 |
---|---|---|---|
| In |
| |
| In | たどる 必要のある内部リンクを指定します。 | |
| Out | ||
| In | 返すインスタンスタイプの最大数を設定します。 | |
| In | 返されたボリュームを制限するために使用されるクエリー文字列です。 |
6.133.2.1. case_sensitive
search
パラメーターを使用して実行する検索を、大文字と小文字を区別して実行する必要があるかどうかを示します。デフォルト値は true
です。つまり、大文字と小文字の区別が考慮されます。ケースを無視する場合は、false
に設定します。
6.133.2.2. follow
たどる 必要のある内部リンクを指定します。これらのリンクで参照されるオブジェクトは、現在の要求の一部としてフェッチされます。詳細は、こちら を参照してください。
6.133.2.3. max
返すインスタンスタイプの最大数を設定します。指定しない場合、すべてのインスタンスタイプが返されます。