REST API knowledge exchange
Post Reply
FredSOSSON
Lurker
Posts: 2
Liked: 1 time
Joined: May 13, 2024 12:17 pm
Contact:

VM Orignial Size

Post by FredSOSSON »

Hello,

I need the REST API request to get the original size of the VMs like shown in GUI in 'Backups' - 'Disks' then Backup Properties.

Your help is much appreciated.

Thanks

Fred
david.domask
Veeam Software
Posts: 2597
Liked: 606 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: VM Orignial Size

Post by david.domask »

Hi Fred,

Few ways you can approach this: Veeam Backup and Replication or Veeam One APIs

VBR: https://helpcenter.veeam.com/docs/backu ... oryObjects
VeeamOne: https://helpcenter.veeam.com/docs/one/r ... tVSphereVm

I tested first endpoint just now to get you an example output and you should see an output like the following in the response:
{"data":[{"type":"VirtualMachine","hostName":"some-vcenter-host.local","name":"StoreOnce-VSA-4.2.1","objectId":"vm-33057","urn":"vc:some-vcenter-host.local;folder:group-d1;datacenter:datacenter-2;folder:group-h4;clustercomputeresource:domain-c61;resourcepool:resgroup-203;virtualmachine:vm-33057","platform":"VMware","size":"1.1 TB"}
Note that the examples will have some additional filters which you can edit; for example, on the first example of getting small VMware vms based on an object ID, I just removed the filters from the example for my test. Play with those endpoints a bit for your reporting and see which works best for you.
David Domask | Product Management: Principal Analyst
FredSOSSON
Lurker
Posts: 2
Liked: 1 time
Joined: May 13, 2024 12:17 pm
Contact:

Re: VM Orignial Size

Post by FredSOSSON » 1 person likes this post

Hi David,

Thanks a lot for your answer, much appreciated. I will test very quickly.
Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests