13.3. Methods
13.3.1. 创建新存储连接 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
创建新存储连接需要
POST 请求。
可以在不添加存储域的情况下创建新的存储连接。主机
id 或 name 是可选的;提供它将尝试通过主机连接到存储。
例 13.2. 创建新存储连接
POST /ovirt-engine/api/storageconnections HTTP/1.1
Accept: application/xml
Content-type: application/xml
<storage_connection>
<type>nfs</type>
<address>domain.example.com</address>
<path>/export/storagedata/username/data</path>
<host>
<name>Host_Name</name>
</host>
</storage_connection>