srvdev
Contributor
Contributor

API HostDiskManager Endpoint / AcquireLeaseExt

hi,

there seems to be a method to receive the vmdk mappings for a virtual disk on a vmfs filesystem, the soap request in question looks like:

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body>
<AcquireLeaseExt xmlns="urn:vim25"> <_this
type="HostDiskManager">DiskManager</_this> <snapshot
type="VirtualMachineSnapshot">snapshot-4007</snapshot>
<diskPath>[nimesx-vol1] nimblevm1/nimblevm1.vmdk</diskPath>
<readOnly>true</readOnly> </AcquireLeaseExt> </soap:Body>
</soap:Envelope>
</xml>

 

A response responds with the information i would require:

 

<AcquireLeaseExtResponse xmlns="urn:vim25">
<returnval>
<lease type="HostDiskManagerLease">session[52f597a3-8f1c-740c-a539-432613e6ba4d]527ea5eb-173c-638d-3bca-4bacb6fa8401</lease>
<ddbOption>
<key>ddb.adapterType</key>
<value xsi:type="xsd:string">lsilogic</value>
</ddbOption>

[..]

 

But i did not find any information in the api/sdk documentation how to access

or request a HostDiskManager lease, how does it work?

Reply
0 Kudos
srvdev
Contributor
Contributor

Hi again,

of course it is possible to send the required soap requests directly to the SDK to get the desired information, but are these api endpoints documented somewhere and supposed to be used by third party programs? Are those official functions?

Reply
0 Kudos
25421
Contributor
Contributor

Hi srvdev,

We are currently experiencing a related problem, so I came to ask you if you have found a way to do this? By the way, I would also like to ask you how you send the request to the SDK?

Reply
0 Kudos