Agentless, cloud-native backup for Amazon Web Services (AWS)
Post Reply
asoucase
Influencer
Posts: 13
Liked: never
Joined: Nov 02, 2021 4:22 pm
Contact:

List Availability Zones in API

Post by asoucase »

Hi,

When requesting the list of Availability Zones in a particular region through the API endpoint /api/v1/cloudInfrastructure/regions/{regionId}/zones in a recently deployed Veeam instance, the reply is that there are no AZs in any of the regions.
It's only after configuring a worker through the UI that the instance scans through AWS regions and indexes the AZs.
Is there an endpoint in the API that forces that same scanning?

Thanks.
nielsengelen
Product Manager
Posts: 5797
Liked: 1215 times
Joined: Jul 15, 2013 11:09 am
Full Name: Niels Engelen
Contact:

Re: List Availability Zones in API

Post by nielsengelen »

Hi,

Looks like infrastructure rescan didn’t happen when u called the API. Can u check in the session log (via UI), if this already happened?
Personal blog: https://foonet.be
GitHub: https://github.com/nielsengelen
asoucase
Influencer
Posts: 13
Liked: never
Joined: Nov 02, 2021 4:22 pm
Contact:

Re: List Availability Zones in API

Post by asoucase »

Two infrastructure scans appear in the session log, both with "Success" status.
If I query the regions through /api/v1/cloudInfrastructure/regions I do receive a list of all the regions but no zones in /api/v1/cloudInfrastructure/regions/{regionId}/zones
nielsengelen
Product Manager
Posts: 5797
Liked: 1215 times
Joined: Jul 15, 2013 11:09 am
Full Name: Niels Engelen
Contact:

Re: List Availability Zones in API

Post by nielsengelen »

I believe u can get the zones loaded via /amazonConnections/{amazonConnectionId}/availabilityZones and from there on utilise them.
Personal blog: https://foonet.be
GitHub: https://github.com/nielsengelen
asoucase
Influencer
Posts: 13
Liked: never
Joined: Nov 02, 2021 4:22 pm
Contact:

Re: List Availability Zones in API

Post by asoucase »

Yes I can.
It's a bit convoluted, as I need to add a new "amazon connection" but it works.
Thanks.
nielsengelen
Product Manager
Posts: 5797
Liked: 1215 times
Joined: Jul 15, 2013 11:09 am
Full Name: Niels Engelen
Contact:

Re: List Availability Zones in API

Post by nielsengelen »

We will look into enhancing this in a future release to make it more clear on how to perform these tasks. Thanks for the feedback and if u have any other questions, please let us know!
Personal blog: https://foonet.be
GitHub: https://github.com/nielsengelen
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests