1. Packages
  2. Hcloud Provider
  3. API Docs
  4. getLocations
Hetzner Cloud v1.21.1 published on Friday, Nov 22, 2024 by Pulumi

hcloud.getLocations

Explore with Pulumi AI

hcloud logo
Hetzner Cloud v1.21.1 published on Friday, Nov 22, 2024 by Pulumi

    Provides a list of available Hetzner Cloud Locations.

    This resource may be useful to create highly available infrastructure, distributed across several locations.

    Using getLocations

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getLocations(opts?: InvokeOptions): Promise<GetLocationsResult>
    function getLocationsOutput(opts?: InvokeOptions): Output<GetLocationsResult>
    def get_locations(opts: Optional[InvokeOptions] = None) -> GetLocationsResult
    def get_locations_output(opts: Optional[InvokeOptions] = None) -> Output[GetLocationsResult]
    func GetLocations(ctx *Context, opts ...InvokeOption) (*GetLocationsResult, error)
    func GetLocationsOutput(ctx *Context, opts ...InvokeOption) GetLocationsResultOutput

    > Note: This function is named GetLocations in the Go SDK.

    public static class GetLocations 
    {
        public static Task<GetLocationsResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetLocationsResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLocationsResult> getLocations(InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: hcloud:index/getLocations:getLocations
      arguments:
        # arguments dictionary

    getLocations Result

    The following output properties are available:

    Descriptions List<string>

    Deprecated: Use locations list instead

    Id string
    The ID of this resource.
    LocationIds List<string>

    Deprecated: Use locations list instead

    Locations List<Pulumi.HCloud.Outputs.GetLocationsLocation>
    Names List<string>

    Deprecated: Use locations list instead

    Descriptions []string

    Deprecated: Use locations list instead

    Id string
    The ID of this resource.
    LocationIds []string

    Deprecated: Use locations list instead

    Locations []GetLocationsLocation
    Names []string

    Deprecated: Use locations list instead

    descriptions List<String>

    Deprecated: Use locations list instead

    id String
    The ID of this resource.
    locationIds List<String>

    Deprecated: Use locations list instead

    locations List<GetLocationsLocation>
    names List<String>

    Deprecated: Use locations list instead

    descriptions string[]

    Deprecated: Use locations list instead

    id string
    The ID of this resource.
    locationIds string[]

    Deprecated: Use locations list instead

    locations GetLocationsLocation[]
    names string[]

    Deprecated: Use locations list instead

    descriptions Sequence[str]

    Deprecated: Use locations list instead

    id str
    The ID of this resource.
    location_ids Sequence[str]

    Deprecated: Use locations list instead

    locations Sequence[GetLocationsLocation]
    names Sequence[str]

    Deprecated: Use locations list instead

    descriptions List<String>

    Deprecated: Use locations list instead

    id String
    The ID of this resource.
    locationIds List<String>

    Deprecated: Use locations list instead

    locations List<Property Map>
    names List<String>

    Deprecated: Use locations list instead

    Supporting Types

    GetLocationsLocation

    City string
    Name of the closest city to the Location. City name and optionally state in short form.
    Country string
    Country the Location resides in. ISO 3166-1 alpha-2 code of the country.
    Description string
    Description of the Location.
    Id int
    ID of the Location.
    Latitude double
    Latitude of the city closest to the Location.
    Longitude double
    Longitude of the city closest to the Location.
    Name string
    Name of the Location.
    NetworkZone string
    Name of the Network Zone this Location resides in.
    City string
    Name of the closest city to the Location. City name and optionally state in short form.
    Country string
    Country the Location resides in. ISO 3166-1 alpha-2 code of the country.
    Description string
    Description of the Location.
    Id int
    ID of the Location.
    Latitude float64
    Latitude of the city closest to the Location.
    Longitude float64
    Longitude of the city closest to the Location.
    Name string
    Name of the Location.
    NetworkZone string
    Name of the Network Zone this Location resides in.
    city String
    Name of the closest city to the Location. City name and optionally state in short form.
    country String
    Country the Location resides in. ISO 3166-1 alpha-2 code of the country.
    description String
    Description of the Location.
    id Integer
    ID of the Location.
    latitude Double
    Latitude of the city closest to the Location.
    longitude Double
    Longitude of the city closest to the Location.
    name String
    Name of the Location.
    networkZone String
    Name of the Network Zone this Location resides in.
    city string
    Name of the closest city to the Location. City name and optionally state in short form.
    country string
    Country the Location resides in. ISO 3166-1 alpha-2 code of the country.
    description string
    Description of the Location.
    id number
    ID of the Location.
    latitude number
    Latitude of the city closest to the Location.
    longitude number
    Longitude of the city closest to the Location.
    name string
    Name of the Location.
    networkZone string
    Name of the Network Zone this Location resides in.
    city str
    Name of the closest city to the Location. City name and optionally state in short form.
    country str
    Country the Location resides in. ISO 3166-1 alpha-2 code of the country.
    description str
    Description of the Location.
    id int
    ID of the Location.
    latitude float
    Latitude of the city closest to the Location.
    longitude float
    Longitude of the city closest to the Location.
    name str
    Name of the Location.
    network_zone str
    Name of the Network Zone this Location resides in.
    city String
    Name of the closest city to the Location. City name and optionally state in short form.
    country String
    Country the Location resides in. ISO 3166-1 alpha-2 code of the country.
    description String
    Description of the Location.
    id Number
    ID of the Location.
    latitude Number
    Latitude of the city closest to the Location.
    longitude Number
    Longitude of the city closest to the Location.
    name String
    Name of the Location.
    networkZone String
    Name of the Network Zone this Location resides in.

    Package Details

    Repository
    Hetzner Cloud pulumi/pulumi-hcloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the hcloud Terraform Provider.
    hcloud logo
    Hetzner Cloud v1.21.1 published on Friday, Nov 22, 2024 by Pulumi