Monitoring and reporting for Veeam Data Platform
Post Reply
vcd1
Novice
Posts: 3
Liked: never
Joined: Jun 27, 2023 7:36 am
Full Name: Ed Collins
Contact:

api to connect to my.veeam?

Post by vcd1 »

Hi,

I'm looking to automate/use command line to get status of support tickets in my.veeam.com. I'm looking to check daily the status if tickets and can't seem to find any details on an api. Anyone know of a way to do this?
jorgedlcruz
Veeam Software
Posts: 1372
Liked: 619 times
Joined: Jul 17, 2015 6:54 pm
Full Name: Jorge de la Cruz
Contact:

Re: api to connect to my.veeam?

Post by jorgedlcruz »

Hello,
This is not a Veeam ONE question per-se but more a generic one. I am not aware of any public API for tickets. But of course everything is based in APIs, so even if not public, I can see the next calls:

Code: Select all

curl 'https://my.veeam.com/api/support-cases/get-all-tickets?accountId=YOURACCOUNTID'
The problem is how to properly authenticate and get the required tokens, and access keys to pass to that URL. I can see the next after introducing user/password, but still I do not know what to take from this:

Code: Select all

curl 'https://login.veeam.com/auth/realms/veeamsso/login-actions/authenticate?session_code=ABCDEFGHJ&execution=1212121212&client_id=my-veeam-com&tab_id=12121212' -X POST 
Quite tricky, I think you might get better results using https://www.selenium.dev/documentation/webdriver/ which you can embed into powershell or pythong, and it navigates the website by itself, and can pass to console, or to anywhere, the results of the page.

Thank you
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
vcd1
Novice
Posts: 3
Liked: never
Joined: Jun 27, 2023 7:36 am
Full Name: Ed Collins
Contact:

Re: api to connect to my.veeam?

Post by vcd1 »

Thanks for your response Jorge, was looking into that way too but seems a bit tricky alright.
jorgedlcruz
Veeam Software
Posts: 1372
Liked: 619 times
Joined: Jul 17, 2015 6:54 pm
Full Name: Jorge de la Cruz
Contact:

Re: api to connect to my.veeam?

Post by jorgedlcruz »

Take a look at the Selenium way of doing things, you might find that easier. It is like a navigating it yourself, and then extracts data, etc.
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
RomanK
Veeam Software
Posts: 641
Liked: 168 times
Joined: Nov 01, 2016 11:26 am
Contact:

Re: api to connect to my.veeam?

Post by RomanK »

Hello Ed,

As an idea, all support cases generate emails from support@veeam.com there could be status changes inside. Maybe it would be simple to track or parse Outlook emails with Powershell or similar.

Thanks
vcd1
Novice
Posts: 3
Liked: never
Joined: Jun 27, 2023 7:36 am
Full Name: Ed Collins
Contact:

Re: api to connect to my.veeam?

Post by vcd1 »

Thanks Roman will look inot this as a workaround.

We get the emails but some are being missed so looking to automate a daily report, could look at an outlook solution but was hoping to get something straight from veeam.
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 10 guests