REST API knowledge exchange
Post Reply
HalYaman
Influencer
Posts: 16
Liked: 1 time
Joined: Feb 13, 2022 11:02 am
Full Name: Hal
Contact:

Source - individual VM size - API

Post by HalYaman »

Hi All,

Is there a way to get each individual VM size on the job using the API (EM)? (not the total size)

Thanks in advance
HY
HannesK
Product Manager
Posts: 14844
Liked: 3086 times
Joined: Sep 01, 2014 11:46 am
Full Name: Hannes Kasparick
Location: Austria
Contact:

Re: Source - individual VM size - API

Post by HannesK »

Hello,
I would try VCenter APIs for details about VMs

Best regards,
Hannes
neerajkhosla
Novice
Posts: 4
Liked: 1 time
Joined: Feb 20, 2022 9:32 am
Full Name: Neeraj Khosla
Contact:

Re: Source - individual VM size - API

Post by neerajkhosla »

Thanks Hannes

I am not aware of VCenter APIs. Can you please provide some more information which API to use ?

Thanks
Neeraj
wishr
Veteran
Posts: 3077
Liked: 455 times
Joined: Aug 07, 2018 3:11 pm
Full Name: Fedor Maslov
Contact:

Re: Source - individual VM size - API

Post by wishr »

Hi,

This information is available in the vSphere documentation.

Thanks
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 670 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Source - individual VM size - API

Post by oleg.feoktistov »

Hi Neeraj,

This info is, indeed, not implemented in EM REST. The closest place I could find where it is supported is in VBR REST. See this reference. Otherwise, as my colleagues suggested above, VCenter API could be the way to go here.

Best regards,
Oleg
HalYaman
Influencer
Posts: 16
Liked: 1 time
Joined: Feb 13, 2022 11:02 am
Full Name: Hal
Contact:

Re: Source - individual VM size - API

Post by HalYaman »

Thanks, @HannesK,

I was hoping the Veeam API would provide such info.

Thanks a lot, we will keep digging for the best solution :)

HY.
neerajkhosla
Novice
Posts: 4
Liked: 1 time
Joined: Feb 20, 2022 9:32 am
Full Name: Neeraj Khosla
Contact:

Re: Source - individual VM size - API

Post by neerajkhosla » 1 person likes this post

This forum is proving a life saver for me. Thanks for the help.

I am able to get the VM sizes for VMs included in a backup job, but how to get the size of VM for an agent job ? Also, is there a way to get the NAS size too ?

Thanks in advance
Neeraj
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 670 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Source - individual VM size - API

Post by oleg.feoktistov »

Hi,

I'm afraid this info is not available via EM REST as it is not even in EM UI. Usually would involve adding it there first. However, it makes sense to add such info to VBR REST API as original size is reflected in VBR UI, so noted.

Thanks,
Oleg
HalYaman
Influencer
Posts: 16
Liked: 1 time
Joined: Feb 13, 2022 11:02 am
Full Name: Hal
Contact:

Re: Source - individual VM size - API

Post by HalYaman »

Thanks Oleg,

If this is something you/Veeam are looking to add, any ETA?

Thanks
HY.
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 670 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Source - individual VM size - API

Post by oleg.feoktistov »

Can't share any ETA, but we didn't plan this for VBR REST API in v12 as we didn't plan on adding any nas/agent support yet. Nonetheless, I noted it for future releases. Thanks!
HalYaman
Influencer
Posts: 16
Liked: 1 time
Joined: Feb 13, 2022 11:02 am
Full Name: Hal
Contact:

Re: Source - individual VM size - API

Post by HalYaman »

Hi @Oleg any update on this request "add VM size within the API" - currently, I'm using VMware connection alongside my code and I wish not to, as i wish to reduce complexity
jorgedlcruz
Veeam Software
Posts: 1495
Liked: 655 times
Joined: Jul 17, 2015 6:54 pm
Full Name: Jorge de la Cruz
Contact:

Re: Source - individual VM size - API

Post by jorgedlcruz »

Hello Hal,
Another good option for this or other requests, is to query upcoming VONE API, that will give you objectrepos, VM sizes and confislg like cpu, etc. Restore points and pretty much all you need to build a portal, as vone looks across all products, VB365, VBR, VBCloud and others. So the effort is less, just querying one API, not different products.

Send me an email and I can send you the json swagger so take a look for vone v12. Jorge.delacruz the rest the usual.

Thanks
Jorge de la Cruz
Senior Product Manager | Veeam ONE @ Veeam Software

@jorgedlcruz
https://www.jorgedelacruz.es / https://jorgedelacruz.uk
vExpert 2014-2024 / InfluxAce / Grafana Champion
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 670 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Source - individual VM size - API

Post by oleg.feoktistov »

Hi Hal,

No changes in this regard. As I mentioned earlier, we didn't plan to add this info in REST APIs in v12.

Best regards,
Oleg
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests