2 Replies Latest reply on Sep 28, 2020 12:29 AM by ibrahimMlx

    vCloud Director - API - Create VDC - Error - Cannot find the provider VDC storage policy

    ibrahimMlx Lurker

      I am working on an assignment to test the API’s of vCD using Postman, while testing creates an Organization VDC using Postman I am getting error message as com.vmware.vcloud.api.presentation.service.BadRequestException: Cannot find the provider VDC storage policy "urn:uuid:8acc7829-4e1a-447c-9a21-d2ee8235db5a. The Request URL is https://MyHost/api/admin/org/xxxxxxxx-ad2f-4e9d-b7d4-4832c843487c/vdcsparamsvdcsparams

      Request Body:

      <?xml version="1.0" encoding="UTF-8"?><CreateVdcParams name="org26vdc1" xmlns="http://www.vmware.com/vcloud/v1.5"><Description>Example vDC</Description><AllocationModel>AllocationVApp</AllocationModel><ComputeCapacity><Cpu><Units>MHz</Units><Allocated>0</Allocated><Limit>0</Limit></Cpu><Memory><Units>MB</Units><Allocated>0</Allocated><Limit>0</Limit></Memory></ComputeCapacity><NicQuota>0</NicQuota><NetworkQuota>50</NetworkQuota><VdcStorageProfile><Enabled>true</Enabled><Units>MB</Units><Limit>0</Limit><Default>true</Default><ProviderVdcStorageProfile href="https://MyHost/api/admin/pvdcStorageProfile/8acc7829-4e1a-447c-9a21-d2ee8235db5a" /></VdcStorageProfile><ResourceGuaranteedMemory>1.0</ResourceGuaranteedMemory><ResourceGuaranteedCpu>0.10</ResourceGuaranteedCpu><VCpuInMhz>2000</VCpuInMhz><IsThinProvision>true</IsThinProvision><NetworkPoolReference href="https://MyHost/api/admin/extension/networkPool/9c5d76f4-c70b-4fb6-848f-bac0dbbb0278"/><ProviderVdcReference type="application/vnd.vmware.admin.providervdc+xml" name="TestPvDC" href="https://MyHost/api/admin/providervdc/3bd02fe2-cb97-4a86-8f4e-6a79ee56842c" /><UsesFastProvisioning>false</UsesFastProvisioning></CreateVdcParams>


      API Version 33.0 - Product v10.0, please assist.