VMware Solutions Discussions

fileCloneOffload in RCU 3.0

batmanppc
2,200 Views

Has anyone successfully used the fileCloneOffload call in RCU 3.0?

I'm trying to use it in a PERL script and am getting back an error that "ServiceUrl must not be null".

Below is the SOAP request:

<?xml version="1.0" encoding="utf-8"?>
  <soap:Body>
    <tns:fileCloneOffload>
      <arg0>
        <sourcePath xsi:type="xsd:string">[Vol_TestDev_VMDKs] test1-www1/test1-www1.vmdk</sourcePath>
        <destDatastoreSpec>
          <controller>
            <ipAddress xsi:type="xsd:string">****</ipAddress>
            <username xsi:type="xsd:string">****</username>
            <password xsi:type="xsd:string">****</password>
            <ssl xsi:type="xsd:boolean">true</ssl>
          </controller>
          <mor xsi:type="xsd:string">Datastore:datastore-210</mor>
          <numDatastores xsi:type="xsd:int">0</numDatastores>
          <thinProvision xsi:type="xsd:boolean">true</thinProvision>
          <volAutoGrow xsi:type="xsd:boolean">false</volAutoGrow>
        </destDatastoreSpec>
      </arg0>
      <arg1>
        <sourcePath xsi:type="xsd:string">[Vol_TestDev_VMDKs] test1-www1/test1-www1_clone.vmdk</sourcePath>
        <destDatastoreSpec>
          <controller>
            <ipAddress xsi:type="xsd:string">****</ipAddress>
            <username xsi:type="xsd:string">****</username>
            <password xsi:type="xsd:string">****</password>
            <ssl xsi:type="xsd:boolean">true</ssl>
          </controller>
          <mor xsi:type="xsd:string">Datastore:datastore-210</mor>
          <numDatastores xsi:type="xsd:int">0</numDatastores>
          <thinProvision xsi:type="xsd:boolean">true</thinProvision>
          <volAutoGrow xsi:type="xsd:boolean">false</volAutoGrow>
        </destDatastoreSpec>
      </arg1>
      <arg2 xsi:type="xsd:boolean">false</arg2>
      <arg3>
        <serviceUrl xsi:type="xsd:string">https://####/sdk</serviceUrl>
        <vcPassword xsi:type="xsd:string">####</vcPassword>
        <vcUser xsi:type="xsd:string">####</vcUser>
      </arg3>
    </tns:fileCloneOffload>
  </soap:Body>
</soap:Envelope>
1 REPLY 1

batmanppc
2,200 Views

Sorry. The problem was that I had the last two argument swapped. Thanks.

Public