<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SOAP call in xml to remove NFS mount in vSphere Management SDK Discussions</title>
    <link>https://communities.vmware.com/t5/vSphere-Management-SDK/SOAP-call-in-xml-to-remove-NFS-mount/m-p/2954650#M14761</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Pass the ManagedObjectReference(MOID) for both HostDatastoreSystem and Datastore( not the datastore name).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://vdc-repo.vmware.com/vmwb-repository/dcr-public/1ef6c336-7bef-477d-b9bb-caa1767d7e30/82521f49-9d9a-42b7-b19b-9e6cd9b30db1/vim.host.DatastoreSystem.html#removeDatastore" target="_blank" rel="noopener"&gt;https://vdc-repo.vmware.com/vmwb-repository/dcr-public/1ef6c336-7bef-477d-b9bb-caa1767d7e30/82521f49-9d9a-42b7-b19b-9e6cd9b30db1/vim.host.DatastoreSystem.html#removeDatastore&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Eg:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;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/"&amp;gt;
    &amp;lt;soap:Body&amp;gt;
        &amp;lt;RemoveDatastore xmlns="urn:internalvim25"&amp;gt;
            &amp;lt;_this xsi:type="HostDatastoreSystem" type="HostDatastoreSystem"&amp;gt;datastoreSystem-200&amp;lt;/_this&amp;gt;
            &amp;lt;datastore xsi:type="Datastore"&amp;gt;datastore-20&amp;lt;/datastore&amp;gt;
        &amp;lt;/RemoveDatastore&amp;gt;
    &amp;lt;/soap:Body&amp;gt;
&amp;lt;/soap:Envelope&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Feb 2023 13:37:02 GMT</pubDate>
    <dc:creator>doskiran</dc:creator>
    <dc:date>2023-02-15T13:37:02Z</dc:date>
    <item>
      <title>SOAP call in xml to remove NFS mount</title>
      <link>https://communities.vmware.com/t5/vSphere-Management-SDK/SOAP-call-in-xml-to-remove-NFS-mount/m-p/2953015#M14755</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Can somebody help&lt;/P&gt;&lt;P&gt;sub createUnmountMessage {&lt;BR /&gt;my $msg = &amp;lt;&amp;lt;SOAP_UNMOUNT_MESSAGE;&lt;BR /&gt;&amp;lt;soap:Envelope xmlns:xsd="&lt;A href="http://www.w3.org/2001/XMLSchema" target="_blank" rel="noopener"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;" xmlns:xsi="&lt;A href="http://www.w3.org/2001/XMLSchema-instance" target="_blank" rel="noopener"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;" xmlns:soap="&lt;A href="http://schemas.xmlsoap.org/soap/envelope/" target="_blank" rel="noopener"&gt;http://schemas.xmlsoap.org/soap/envelope/&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;lt;soap:Body&amp;gt;&lt;BR /&gt;&amp;lt;RemoveDatastore xmlns="urn:internalvim25"&amp;gt;&lt;BR /&gt;&amp;lt;_this xsi:type="HostDatastoreSystem" type="HostDatastoreSystem" serverGuid=""&amp;gt;ha-datastoresystem&amp;lt;/_this&amp;gt;&lt;BR /&gt;&amp;lt;datastore xsi:type="Datastore" type="Datastore"&amp;gt;NFS_HDD&amp;lt;/datastore&amp;gt;&lt;BR /&gt;&amp;lt;/RemoveDatastore&amp;gt;&lt;BR /&gt;&amp;lt;/soap:Body&amp;gt;&lt;BR /&gt;&amp;lt;/soap:Envelope&amp;gt;&lt;BR /&gt;SOAP_UNMOUNT_MESSAGE&lt;/P&gt;&lt;P&gt;return $msg;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 14:04:42 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Management-SDK/SOAP-call-in-xml-to-remove-NFS-mount/m-p/2953015#M14755</guid>
      <dc:creator>t_a_k</dc:creator>
      <dc:date>2023-02-07T14:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: SOAP call in xml to remove NFS mount</title>
      <link>https://communities.vmware.com/t5/vSphere-Management-SDK/SOAP-call-in-xml-to-remove-NFS-mount/m-p/2954650#M14761</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Pass the ManagedObjectReference(MOID) for both HostDatastoreSystem and Datastore( not the datastore name).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://vdc-repo.vmware.com/vmwb-repository/dcr-public/1ef6c336-7bef-477d-b9bb-caa1767d7e30/82521f49-9d9a-42b7-b19b-9e6cd9b30db1/vim.host.DatastoreSystem.html#removeDatastore" target="_blank" rel="noopener"&gt;https://vdc-repo.vmware.com/vmwb-repository/dcr-public/1ef6c336-7bef-477d-b9bb-caa1767d7e30/82521f49-9d9a-42b7-b19b-9e6cd9b30db1/vim.host.DatastoreSystem.html#removeDatastore&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Eg:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;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/"&amp;gt;
    &amp;lt;soap:Body&amp;gt;
        &amp;lt;RemoveDatastore xmlns="urn:internalvim25"&amp;gt;
            &amp;lt;_this xsi:type="HostDatastoreSystem" type="HostDatastoreSystem"&amp;gt;datastoreSystem-200&amp;lt;/_this&amp;gt;
            &amp;lt;datastore xsi:type="Datastore"&amp;gt;datastore-20&amp;lt;/datastore&amp;gt;
        &amp;lt;/RemoveDatastore&amp;gt;
    &amp;lt;/soap:Body&amp;gt;
&amp;lt;/soap:Envelope&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 13:37:02 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Management-SDK/SOAP-call-in-xml-to-remove-NFS-mount/m-p/2954650#M14761</guid>
      <dc:creator>doskiran</dc:creator>
      <dc:date>2023-02-15T13:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: SOAP call in xml to remove NFS mount</title>
      <link>https://communities.vmware.com/t5/vSphere-Management-SDK/SOAP-call-in-xml-to-remove-NFS-mount/m-p/2954748#M14762</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;/P&gt;&lt;P&gt;many thanks! Turns out I am an id...&lt;/P&gt;&lt;P&gt;It is even easier than that. The NFS full-mount description is already the MOID. The reference to ha-datastoresystem is working just fine in this combination.&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;RemoveDatastore xmlns="urn:internalvim25"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;_this xsi:type="HostDatastoreSystem" type="HostDatastoreSystem" serverGuid=""&amp;gt;ha-datastoresystem&amp;lt;/_this&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;datastore xsi:type="Datastore" type="Datastore"&amp;gt;192.168.110.110:/mnt/NFS_HDD&amp;lt;/datastore&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/RemoveDatastore&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Again, many thanks - Only now I started using the mob view on host and than it became obvious &lt;img class="lia-deferred-image lia-image-emoji" src="https://communities.vmware.com/html/@7651DD0E8772B3B5D93ADA9ABA2E067C/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 19:26:07 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Management-SDK/SOAP-call-in-xml-to-remove-NFS-mount/m-p/2954748#M14762</guid>
      <dc:creator>t_a_k</dc:creator>
      <dc:date>2023-02-15T19:26:07Z</dc:date>
    </item>
  </channel>
</rss>

