Hetzner Cloud v1.21.1 published on Friday, Nov 22, 2024 by Pulumi
hcloud.getLocations
Explore with Pulumi AI
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>
- Id string
- The ID of this resource.
- Location
Ids List<string> - Locations
List<Pulumi.
HCloud. Outputs. Get Locations Location> - Names List<string>
- Descriptions []string
- Id string
- The ID of this resource.
- Location
Ids []string - Locations
[]Get
Locations Location - Names []string
- descriptions List<String>
- id String
- The ID of this resource.
- location
Ids List<String> - locations
List<Get
Locations Location> - names List<String>
- descriptions string[]
- id string
- The ID of this resource.
- location
Ids string[] - locations
Get
Locations Location[] - names string[]
- descriptions Sequence[str]
- id str
- The ID of this resource.
- location_
ids Sequence[str] - locations
Sequence[Get
Locations Location] - names Sequence[str]
- descriptions List<String>
- id String
- The ID of this resource.
- location
Ids List<String> - locations List<Property Map>
- names List<String>
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.
- Network
Zone 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.
- Network
Zone 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.
- network
Zone 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.
- network
Zone 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.
- network
Zone 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.