REST API knowledge exchange
Post Reply
chrisnowa
Novice
Posts: 3
Liked: never
Joined: Jun 06, 2018 8:05 am
Full Name: ChrisNowa
Contact:

GET /backups and /catalog/vms seems empty

Post by chrisnowa »

Hello everybody, I have to figure out, how many vms every tenant use. I read a few posts here and try to:

Code: Select all

https://my-server:9398/api/backups
than I get:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<EntityReferences
	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"/>
The same thing by:
○ /Vmrestorepoints
○ /catalog/vms
○ /backupsessions

It seems like I have to do something in the settings.
Hope you can help me.

Chris
benyoung
Veeam Software
Posts: 149
Liked: 47 times
Joined: May 25, 2016 3:29 am
Full Name: Ben Young
Contact:

Re: GET /backups and /catalog/vms seems empty

Post by benyoung » 1 person likes this post

Hi Chris - I am gathering this server is used for Cloud Connect only hence no results on the restore points/vms and backup sessions

You can view tenants using /cloud/tenants and then /cloud/tenants/{id} to return info on each tenant such as below around total servers/workstations are being accounted for

<CloudTenant>

.... I have removed bits here around resources and hardware plans to make it more readable

<ThrottlingEnabled>false</ThrottlingEnabled>
<ThrottlingSpeedLimit>10</ThrottlingSpeedLimit>
<ThrottlingSpeedUnit>MBps</ThrottlingSpeedUnit>
<PublicIpCount>2</PublicIpCount>
<BackupCount>1</BackupCount>
<ReplicaCount>2</ReplicaCount>
<MaxConcurrentTasks>2</MaxConcurrentTasks>
<WorkStationBackupCount>1</WorkStationBackupCount>
<ServerBackupCount>1</ServerBackupCount>
<BackupProtectionEnabled>true</BackupProtectionEnabled>
<BackupProtectionPeriod>5</BackupProtectionPeriod>
</CloudTenant>

Unfortunately CloudSessions are not exposed via the API as yet, you can view Cloud Replica points though
chrisnowa
Novice
Posts: 3
Liked: never
Joined: Jun 06, 2018 8:05 am
Full Name: ChrisNowa
Contact:

Re: GET /backups and /catalog/vms seems empty

Post by chrisnowa »

Hi Ben, thanks for your help. I've been on this point too. But I don't understand which infos are imported for my problem. Is the WorkStationBackupCount the number of my machines? I saw the CloudReplicaPoints but dont know how to match them with my tenants.
benyoung
Veeam Software
Posts: 149
Liked: 47 times
Joined: May 25, 2016 3:29 am
Full Name: Ben Young
Contact:

Re: GET /backups and /catalog/vms seems empty

Post by benyoung » 1 person likes this post

Hi Chris are your clients just using you as a backup target i.e for a copy job? Or have you got clients who also replicate to you?

Someone from Veeam will probably best confirm this licensing/count portion as it doesn't appear to be on the documentation for the tenant entity but I believe ServerBackupCount is the number of servers protected in the tenancy, workstations is just that. If you have a couple of sample jobs knowing what is in it, i.e 3 servers, see if the 3 appears in the ServerBackupCount - sorry i can't confirm this I don't typically deal with the licensing side of Veeam (thankfully)

the VAC product documentation with similar naming certainly aligns with the above thoughts

...

cloudconnectBackupWorkstationCount, integer, Number of workstations protected by tenants in Veeam Cloud Connect.

cloudconnectBackupServerCount, integer, Number of servers protected by tenants in Veeam Cloud Connect.

sourced from
https://helpcenter.veeam.com/docs/vac/r ... tml?ver=20
veremin
Product Manager
Posts: 20413
Liked: 2301 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: GET /backups and /catalog/vms seems empty

Post by veremin » 1 person likes this post

Below are the properties you should be looking at:

Code: Select all

<BackupCount></BackupCount>
<ReplicaCount></ReplicaCount> 
<WorkStationBackupCount></WorkStationBackupCount>
<ServerBackupCount></ServerBackupCount>
Thanks.
chrisnowa
Novice
Posts: 3
Liked: never
Joined: Jun 06, 2018 8:05 am
Full Name: ChrisNowa
Contact:

Re: GET /backups and /catalog/vms seems empty

Post by chrisnowa »

Thank you for your help. I could solve my problem with the BackupCounts.
veremin
Product Manager
Posts: 20413
Liked: 2301 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: GET /backups and /catalog/vms seems empty

Post by veremin » 1 person likes this post

You're welcome. Feel free to ask for additional help, if needed. Thanks.
Albeck
Novice
Posts: 9
Liked: never
Joined: Dec 15, 2017 9:34 am
Full Name: Florian Albeck
Contact:

[MERGED] Get VM count for replication tenant

Post by Albeck »

Hi all,

I would like to know if there is an api call to find out how many VMs a cloud replication enabled tenant is replicating.

We need this information for billing.


From the Veeam Help Center (https://helpcenter.veeam.com/docs/backu ... tml?ver=95) it seems that this is missing.
veremin
Product Manager
Posts: 20413
Liked: 2301 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: GET /backups and /catalog/vms seems empty

Post by veremin »

Take a look at ReplicaCount property mentioned above. Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests