1 Reply Latest reply on Mar 19, 2015 7:13 AM by srmdocs

    Create the ProviderVDC vai vCloud API

    zengfuyang Novice

      I want to user vCloud API to create the ProviderVDC, but there is an error, everybody can help me? Thanks!

       

      The XML as beolw:

      Mar 19, 2015 2:27:21 PM com.vmware.vcloud.sdk.admin.extensions.VcloudAdminExtension createVMWProviderVdc

      INFO: POST URL - https://10.0.70.23/api/admin/extension/providervdcsparams

      Mar 19, 2015 2:27:21 PM com.vmware.vcloud.sdk.RestUtil post

      INFO: POST URL - https://10.0.70.23/api/admin/extension/providervdcsparams

      Mar 19, 2015 2:27:21 PM com.vmware.vcloud.sdk.RestUtil post

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

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

          <ns9:ResourcePoolRefs>

              <ns9:VimObjectRef>

                  <ns9:VimServerRef href="https://10.0.70.48"/>

                  <ns9:MoRef>Cluster</ns9:MoRef>

                  <ns9:VimObjectType>RESOURCE_POOL</ns9:VimObjectType>

              </ns9:VimObjectRef>

          </ns9:ResourcePoolRefs>

          <ns9:VimServer href="https://10.0.70.48"/>

          <ns9:StorageProfile>* (any)</ns9:StorageProfile>

      </ns9:VMWProviderVdcParams>

       

      Mar 19, 2015 2:27:21 PM com.vmware.vcloud.sdk.RestUtil post

      INFO: POST Request Content Type - application/vnd.vmware.admin.createProviderVdcParams+xml

      Mar 19, 2015 2:27:21 PM com.vmware.vcloud.sdk.RestUtil post

      INFO: Status Code - 400

      Mar 19, 2015 2:27:21 PM com.vmware.vcloud.sdk.RestUtil post

      INFO: Status - Bad Request

      Mar 19, 2015 2:27:21 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="400" message="The reference https://10.0.70.48 cannot be parsed correctly" minorErrorCode="INVALID_REFERENCE" stackTrace="com.vmware.vcloud.api.rest.handlers.exceptions.InvalidReferenceRestApiException: The reference https://10.0.70.48 cannot be parsed correctly