RESTful knowledge exchange
Post Reply
bk@virtualtn.com
Veeam Vanguard
Posts: 36
Liked: 1 time
Joined: Nov 10, 2015 2:13 pm
Full Name: BILKAM
Contact:

VeeamExternalInfrastructureRestProvider API

Post by bk@virtualtn.com »

Hello,

How I can generate JWT to connect to VeeamExternalInfrastructureRestProvider API ?

Regards
BILKAM
vinception.fr

benyoung
Veeam Vanguard
Posts: 144
Liked: 46 times
Joined: May 25, 2016 3:29 am
Full Name: Ben Young
Contact:

Re: VeeamExternalInfrastructureRestProvider API

Post by benyoung »

Do you mean the Enterprise Manager API for Veeam Backup and Replication?

There is no JWT support for that product. You need to log in using Basic Auth first, when successful it will return a Session header token you can use for subsequent request.

1) Login using basic auth https://helpcenter.veeam.com/docs/backu ... ml?ver=100
2) Read back the returned X-RestSvcSessionId header value
3) Pass X-RestSvcSessionId and value for future requests

The sessionid can be reused for a period of time, if not used then it will time out and you would need to login again.

bk@virtualtn.com
Veeam Vanguard
Posts: 36
Liked: 1 time
Joined: Nov 10, 2015 2:13 pm
Full Name: BILKAM
Contact:

Re: VeeamExternalInfrastructureRestProvider API

Post by bk@virtualtn.com »

Thanks @benyoung
No I am not talk about API for Veeam Backup and Replication.
There are new API VeeamExternalInfrastructureRestProvider if you install Nutanix AHV plugin.

Regards
BILKAM
vinception.fr

benyoung
Veeam Vanguard
Posts: 144
Liked: 46 times
Joined: May 25, 2016 3:29 am
Full Name: Ben Young
Contact:

Re: VeeamExternalInfrastructureRestProvider API

Post by benyoung »

no worries, not over that product sorry - perhaps chuck this over on the nutanix forum? nutanix-ahv-f51/

nielsengelen
Veeam Software
Posts: 3673
Liked: 720 times
Joined: Jul 15, 2013 11:09 am
Full Name: Niels Engelen
Contact:

Re: VeeamExternalInfrastructureRestProvider API

Post by nielsengelen »

If I'm correct, there is no REST API for AHV available to be used. What are you trying to achieve exactly?
https://foonet.be

bk@virtualtn.com
Veeam Vanguard
Posts: 36
Liked: 1 time
Joined: Nov 10, 2015 2:13 pm
Full Name: BILKAM
Contact:

Re: VeeamExternalInfrastructureRestProvider API

Post by bk@virtualtn.com »

want to automate some task in particular the possibility of making a veeamZIP of an AHV VM without connecting to the Veeam console
/api/v2/infrastructures/{infrastructureUid}/vms/{objectUid}/veeamZip
BILKAM
vinception.fr

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

Re: VeeamExternalInfrastructureRestProvider API

Post by oleg.feoktistov »

Currently there is no officially supported RESTful API integration with AHV. Thanks!

bk@virtualtn.com
Veeam Vanguard
Posts: 36
Liked: 1 time
Joined: Nov 10, 2015 2:13 pm
Full Name: BILKAM
Contact:

Re: VeeamExternalInfrastructureRestProvider API

Post by bk@virtualtn.com »

Thanks for your answer.
No officially supported but it's work like a charm!
BILKAM
vinception.fr

veremin
Product Manager
Posts: 17881
Liked: 1673 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: VeeamExternalInfrastructureRestProvider API

Post by veremin »

They work smoothly, of course, as this is something we utilize ourselves :)

That's said custom development for them is not supported, meaning you won't get any support assistance, if something goes wrong.

Thanks!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest