Reply to Message

View discussion in a popup

Replying to:
t_a_k
Contributor
Contributor

SOAP call in xml to remove NFS mount

Hello,

I am trying to remove a mounted NFS datastore but I am not able to get my head around the manganged reference to the datastore.

Can somebody help

sub createUnmountMessage {
my $msg = <<SOAP_UNMOUNT_MESSAGE;
<soap:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<RemoveDatastore xmlns="urn:internalvim25">
<_this xsi:type="HostDatastoreSystem" type="HostDatastoreSystem" serverGuid="">ha-datastoresystem</_this>
<datastore xsi:type="Datastore" type="Datastore">NFS_HDD</datastore>
</RemoveDatastore>
</soap:Body>
</soap:Envelope>
SOAP_UNMOUNT_MESSAGE

return $msg;
}

 

Kind regards

Thomas

Reply
0 Kudos