I'm trying to get a count of VMs backed up by a tenant (known as VMCount in powershell when using the Get-VBRCloutTenant cmdlet)
There appears no way to get this through the RESTful API. The XML returned by the API call includes a <BackupCount>0</BackupCount> element that I was hoping would be the number of VMs backed up, but this has always been 0 in my testing, even if the tenant has backed up VMs.
Code: Select all
GET https://host:9398/api/cloud/tenants/b367de72-5396-4ea4-94a3-e14d83e540b0?format=Entity
<?xml version="1.0" encoding="utf-8"?>
<CloudTenant Type="CloudTenant" Href="https://host:9398/api/cloud/tenants/b367de72-5396-4ea4-94a3-e14d83e540b0?format=Entity" Name="VCC_1746234-OWN-MEL" UID="urn:veeam:CloudTenant:b367de72-5396-4ea4-94a3-e14d83e540b0" 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">
  <Password />
  <Description>Created by at 27/07/2016 4:12:50 PM</Description>
  <Enabled>true</Enabled>
  <LeaseOptions Enabled="false" />
  <Resources>
    <CloudTenantResource Type="CloudTenantResource" Href="https://host:9398/api/cloud/tenants/b367de72-5396-4ea4-94a3-e14d83e540b0/resources/3b322ce1-dd4e-40d5-8158-2d40d4277828" Id="3b322ce1-dd4e-40d5-8158-2d40d4277828">
      <RepositoryQuota>
        <DisplayName>VCC_1746234-OWN-MEL</DisplayName>
        <RepositoryUid>urn:veeam:Repository:aa7441e1-f466-495b-9302-db0034979516</RepositoryUid>
        <Quota>512000</Quota>
        <UsedQuota>30</UsedQuota>
      </RepositoryQuota>
    </CloudTenantResource>
  </Resources>
  <LastResult>Success</LastResult>
  <LastActive>2016-07-27T08:22:18Z</LastActive>
  <ComputeResources />
  <ThrottlingEnabled>false</ThrottlingEnabled>
  <ThrottlingSpeedLimit>1</ThrottlingSpeedLimit>
  <ThrottlingSpeedUnit>MBps</ThrottlingSpeedUnit>
  <PublicIpCount>0</PublicIpCount>
  <BackupCount>0</BackupCount>
  <ReplicaCount>0</ReplicaCount>
</CloudTenant>