12.10.2. 删除存储域
storage_domain 引用在存储域的 DELETE 请求正文中传递。storage_domain 引用采用以下格式:
<storage_domain>
<host id="..."/>
</storage_domain>
<storage_domain>
<host id="..."/>
</storage_domain>
或
格式化存储域
API 用户提供了一个可选 格式 元素,用于指定在删除后是否格式化存储域。
例 12.17. 删除后格式化存储域
<storage_domain>
<host id="..."/>
<format>true</format>
</storage_domain>
<storage_domain>
<host id="..."/>
<format>true</format>
</storage_domain>
如果没有传递
格式 元素,则存储域将保持未格式化。
存储域的逻辑删除
API 还提供用于逻辑删除存储域的功能。这会保留存储域的数据来导入。使用 destroy 元素以逻辑方式删除存储域并保留数据。
例 12.18. 对存储域进行逻辑删除
<storage_domain>
<host id="..."/>
<destroy>true</destroy>
</storage_domain>
<storage_domain>
<host id="..."/>
<destroy>true</destroy>
</storage_domain>