Skip to main content

get_hetzner_regions_dynamic

Function get_hetzner_regions_dynamic 

Source
pub async fn get_hetzner_regions_dynamic(
    client: &PlatformApiClient,
    project_id: &str,
) -> HetznerFetchResult<Vec<DynamicCloudRegion>>
Expand description

Fetch Hetzner regions dynamically with REAL-TIME availability

Uses the /api/deployments/availability/locations endpoint which checks Hetzner’s datacenter API for actual capacity - not just what exists. Returns only regions where server types are CURRENTLY available.

§Errors

Returns error if credentials are missing or API call fails.