12.10.2. ストレージドメインの削除
storage_domain 参照は、ストレージドメインの DELETE 要求の本文に渡されます。storage_domain 参照の形式は以下のとおりです。
<storage_domain>
<host id="..."/>
</storage_domain>
<storage_domain>
<host id="..."/>
</storage_domain>
または
ストレージドメインのフォーマット
API ユーザーは、削除後にストレージドメインを フォーマット するかどうかを指定するオプションの format 要素を提供します。
例12.17 削除後のストレージドメインのフォーマット
<storage_domain>
<host id="..."/>
<format>true</format>
</storage_domain>
<storage_domain>
<host id="..."/>
<format>true</format>
</storage_domain>
format 要素が渡されない場合、ストレージドメインはフォーマットされていないままになります。
ストレージドメインの論理削除
API は、ストレージドメインを論理的に削除する機能も提供します。これにより、ストレージドメインのデータがインポート用に保持されます。destroy 要素を使用してストレージドメインを論理的に削除し、データを保持します。
例12.18 ストレージドメインの論理的な削除
<storage_domain>
<host id="..."/>
<destroy>true</destroy>
</storage_domain>
<storage_domain>
<host id="..."/>
<destroy>true</destroy>
</storage_domain>