新しいストレージドメインを追加します。
新しい StorageDomain を作成するには、名前
、タイプ
、ホスト
、および ストレージ
属性が必要です。id
または name
属性で host
属性を特定します。oVirt 3.6 以降では、ストレージドメインでデフォルトで削除後にワイプオプションを有効にできます。これを設定するには、POST 要求で wipe_after_delete
を指定します。このオプションは、ドメインの作成後に編集することが可能ですが、その場合にはすでに存在していたディスクの削除後にワイププロパティーは変更されません。
指定の 名前
、タイプ、storage.type
、storage.address
、storage.
path
、および ID 123
のホストを使用して新しいストレージドメインを追加するには、以下のように要求を送信します。
POST /ovirt-engine/api/storagedomains
POST /ovirt-engine/api/storagedomains
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
リクエスト本文の場合は、以下のようになります。
<storage_domain>
<name>mydata</name>
<type>data</type>
<storage>
<type>nfs</type>
<address>mynfs.example.com</address>
<path>/exports/mydata</path>
</storage>
<host>
<name>myhost</name>
</host>
</storage_domain>
<storage_domain>
<name>mydata</name>
<type>data</type>
<storage>
<type>nfs</type>
<address>mynfs.example.com</address>
<path>/exports/mydata</path>
</storage>
<host>
<name>myhost</name>
</host>
</storage_domain>
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
新しい NFS ISO ストレージドメインを作成するには、次のような要求を送信します。
<storage_domain>
<name>myisos</name>
<type>iso</type>
<storage>
<type>nfs</type>
<address>mynfs.example.com</address>
<path>/export/myisos</path>
</storage>
<host>
<name>myhost</name>
</host>
</storage_domain>
<storage_domain>
<name>myisos</name>
<type>iso</type>
<storage>
<type>nfs</type>
<address>mynfs.example.com</address>
<path>/export/myisos</path>
</storage>
<host>
<name>myhost</name>
</host>
</storage_domain>
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
新しい iSCSI ストレージドメインを作成するには、次のような要求を送信します。
<storage_domain>
<name>myiscsi</name>
<type>data</type>
<storage>
<type>iscsi</type>
<logical_units>
<logical_unit id="3600144f09dbd050000004eedbd340001"/>
<logical_unit id="3600144f09dbd050000004eedbd340002"/>
</logical_units>
</storage>
<host>
<name>myhost</name>
</host>
</storage_domain>
<storage_domain>
<name>myiscsi</name>
<type>data</type>
<storage>
<type>iscsi</type>
<logical_units>
<logical_unit id="3600144f09dbd050000004eedbd340001"/>
<logical_unit id="3600144f09dbd050000004eedbd340002"/>
</logical_units>
</storage>
<host>
<name>myhost</name>
</host>
</storage_domain>
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow