2 Replies Latest reply on Apr 10, 2015 12:32 AM by zengfuyang

    Compose a new vApp via vCloud SDK

    zengfuyang Novice

      I want compose a new vApp via vCloud SDK, but I got an error as below: Anybody can help me?

       

      Apr 09, 2015 1:56:53 PM com.vmware.vcloud.sdk.RestUtil post

      INFO: POST URL - https://vcdhttp/api/admin/vdc/3bdc1c1b-dc30-479b-9ad8-071ee39a41cf/action/composeVApp

      Apr 09, 2015 1:56:53 PM com.vmware.vcloud.sdk.RestUtil post

      INFO: POST Request Body - <?xml version="1.0" encoding="UTF-8" standalone="yes"?>

      <ns6:ComposeVAppParams name="NewTestvAPP" xmlns="http://www.vmware.com/vcloud/versions" xmlns:ns6="http://www.vmware.com/vcloud/v1.5" xmlns:ns5="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:ns8="http://schemas.dmtf.org/ovf/environment/1" xmlns:ns7="http://www.vmware.com/schema/ovf" xmlns:ns9="http://www.vmware.com/vcloud/extension/v1.5" xmlns:ns2="http://schemas.dmtf.org/ovf/envelope/1" xmlns:ns4="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:ns3="http://schemas.dmtf.org/wbem/wscim/1/common">

          <ns6:VAppParent href="https://vcdhttp/api/admin/vdc/3bdc1c1b-dc30-479b-9ad8-071ee39a41cf" name="OrgVDC" type="application/vnd.vmware.admin.vdc+xml"/>

          <ns6:InstantiationParams>

              <LeaseSettingsSection ns2:required="false" xmlns="" xmlns:ns10="http://www.vmware.com/vcloud/versions">

                  <ns2:Info>Lease settings</ns2:Info>

                  <ns6:Link rel="edit"/>

                  <ns6:DeploymentLeaseInSeconds>604800</ns6:DeploymentLeaseInSeconds>

                  <ns6:StorageLeaseInSeconds>2592000</ns6:StorageLeaseInSeconds>

                  <ns6:StorageLeaseExpiration>2015-05-08T03:32:16.473+00:04</ns6:StorageLeaseExpiration>

              </LeaseSettingsSection>

          </ns6:InstantiationParams>

          <ns6:AllEULAsAccepted>true</ns6:AllEULAsAccepted>

      </ns6:ComposeVAppParams>

       

      Apr 09, 2015 1:56:53 PM com.vmware.vcloud.sdk.RestUtil post

      INFO: POST Request Content Type - application/vnd.vmware.vcloud.composeVAppParams+xml

      Apr 09, 2015 1:56:54 PM com.vmware.vcloud.sdk.RestUtil post

      INFO: Status Code - 404

      Apr 09, 2015 1:56:54 PM com.vmware.vcloud.sdk.RestUtil post

      INFO: Status - Not Found

      Apr 09, 2015 1:56:54 PM com.vmware.vcloud.sdk.RestUtil post

      INFO: Request Id - X-VMWARE-VCLOUD-REQUEST-ID: 8f573dd9-7579-4520-8c95-038f00d934fe

      Apr 09, 2015 1:56:54 PM com.vmware.vcloud.sdk.RestUtil post

      INFO: Response - <?xml version="1.0" encoding="UTF-8"?>

      <Error xmlns="http://www.vmware.com/vcloud/v1.5" majorErrorCode="404" message="Resource not found" minorErrorCode="RESOURCE_NOT_FOUND" stackTrace="javax.ws.rs.ClientErrorException