I want to know what is wrong in this request.
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<CreateCloudTenantSpec xmlns="http://www.veeam.com/ent/v1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <Name>tenant01</Name>
 <Description>tenant01-company-A</Description>
 <Password>tenant01-pass</Passworad>
 <Enabled>true</Enabled>
 <LeaseExpirationDate>2016-12-31T00:00:00</LeaseExpirationDate>
 <Resources>
   <BackupResource>
     <Name>Cloud Repository</Name>
     <RepositoryUid>urn:veeam:Repository:2582dfa9-247e-4053-9597-640fbca522a9</RepositoryUid>
     <QuotaMb>307200</QuotaMb>
   </BackupResource>
 </Resources>
 <ComputeResources>
   <ComputeResource>
     <CloudHardwarePlanUid>
 </CloudHardwarePlanUid>
     <PlatformType>HyperV</PlatformType>
     <UseNetworkFailoverResources>false</UseNetworkFailoverResources>
   </ComputeResource>
 </ComputeResources>
 <ThrottlingEnabled>false</ThrottlingEnabled>
 <ThrottlingSpeedLimit>1</ThrottlingSpeedLimit>
 <ThrottlingSpeedUnit>MBps</ThrottlingSpeedUnit>
 <PublicIpCount>0</PublicIpCount>
 <BackupServerUid>urn:veeam:BackupServer:6db752e7-d9a6-48ba-8e6d-da16e315cf0c</BackupServerUid>
</CreateCloudTenantSpec>
~this results in a erorr like this:
Code: Select all
<?xml version="1.0" encoding="utf-8"?><Error StatusCode="500" Message="Cannot parse 'EntityUid'. String: "
	 "" xmlns="http://www.veeam.com/ent/v1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><FirstChanceExceptionMessage>Cannot parse 'EntityUid'. String: "
 "</FirstChanceExceptionMessage><StackTrace>Veeam.Backup.Interaction.RestAPI.CRestAPICommunicationException: Cannot parse 'EntityUid'. String: "
 " ---> System.Exception: Cannot parse 'EntityUid'. String: "
 "
   at Veeam.Backup.Interaction.RestAPI.EntityUid.Parse(String entityUidStr)
   at Veeam.Backup.Interaction.RestAPI.EntityUid.ParseAndCheck(String entityUidStr, EntityTypes type, Boolean shouldBeGuidIdentifier)
   at Veeam.Backup.Enterprise.RestAPIService.CRestApiCloudTenantsScope.ComputeResourceCreateSpecToInfo(CloudTenantComputeResourceCreateListType resources)
   at Veeam.Backup.Enterprise.RestAPIService.CRestApiCloudTenantsScope.CreateCloudTenant(CreateCloudTenantSpecType spec)
   at Veeam.Backup.Enterprise.RestAPIService.CEnterpriseRestServiceStub.CreateCloudTenant(CreateCloudTenantSpecType spec)
   at SyncInvokeCreateCloudTenant(Object , Object[] , Object[] )
   at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
   at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
   --- End of inner exception stack trace ---</StackTrace></Error>
has anyone got a working example/code -- preferably PHP .. The above is from a software that I am using to test basic API functionality.
Thanks,