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

hcloud.getDatacenters

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 Datacenters.

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

    Using getDatacenters

    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 getDatacenters(opts?: InvokeOptions): Promise<GetDatacentersResult>
    function getDatacentersOutput(opts?: InvokeOptions): Output<GetDatacentersResult>
    def get_datacenters(opts: Optional[InvokeOptions] = None) -> GetDatacentersResult
    def get_datacenters_output(opts: Optional[InvokeOptions] = None) -> Output[GetDatacentersResult]
    func GetDatacenters(ctx *Context, opts ...InvokeOption) (*GetDatacentersResult, error)
    func GetDatacentersOutput(ctx *Context, opts ...InvokeOption) GetDatacentersResultOutput

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

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

    getDatacenters Result

    The following output properties are available:

    DatacenterIds List<string>

    Deprecated: Use datacenters list instead

    Datacenters List<Pulumi.HCloud.Outputs.GetDatacentersDatacenter>
    Descriptions List<string>

    Deprecated: Use datacenters list instead

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

    Deprecated: Use datacenters list instead

    DatacenterIds []string

    Deprecated: Use datacenters list instead

    Datacenters []GetDatacentersDatacenter
    Descriptions []string

    Deprecated: Use datacenters list instead

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

    Deprecated: Use datacenters list instead

    datacenterIds List<String>

    Deprecated: Use datacenters list instead

    datacenters List<GetDatacentersDatacenter>
    descriptions List<String>

    Deprecated: Use datacenters list instead

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

    Deprecated: Use datacenters list instead

    datacenterIds string[]

    Deprecated: Use datacenters list instead

    datacenters GetDatacentersDatacenter[]
    descriptions string[]

    Deprecated: Use datacenters list instead

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

    Deprecated: Use datacenters list instead

    datacenter_ids Sequence[str]

    Deprecated: Use datacenters list instead

    datacenters Sequence[GetDatacentersDatacenter]
    descriptions Sequence[str]

    Deprecated: Use datacenters list instead

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

    Deprecated: Use datacenters list instead

    datacenterIds List<String>

    Deprecated: Use datacenters list instead

    datacenters List<Property Map>
    descriptions List<String>

    Deprecated: Use datacenters list instead

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

    Deprecated: Use datacenters list instead

    Supporting Types

    GetDatacentersDatacenter

    AvailableServerTypeIds List<int>
    List of currently available Server Types in the Datacenter.
    Description string
    Description of the Datacenter.
    Id int
    ID of the Datacenter.
    Location Dictionary<string, string>
    Location of the Datacenter. See the Hetzner Docs for more details about locations.
    Name string
    Name of the Datacenter.
    SupportedServerTypeIds List<int>
    List of supported Server Types in the Datacenter.
    AvailableServerTypeIds []int
    List of currently available Server Types in the Datacenter.
    Description string
    Description of the Datacenter.
    Id int
    ID of the Datacenter.
    Location map[string]string
    Location of the Datacenter. See the Hetzner Docs for more details about locations.
    Name string
    Name of the Datacenter.
    SupportedServerTypeIds []int
    List of supported Server Types in the Datacenter.
    availableServerTypeIds List<Integer>
    List of currently available Server Types in the Datacenter.
    description String
    Description of the Datacenter.
    id Integer
    ID of the Datacenter.
    location Map<String,String>
    Location of the Datacenter. See the Hetzner Docs for more details about locations.
    name String
    Name of the Datacenter.
    supportedServerTypeIds List<Integer>
    List of supported Server Types in the Datacenter.
    availableServerTypeIds number[]
    List of currently available Server Types in the Datacenter.
    description string
    Description of the Datacenter.
    id number
    ID of the Datacenter.
    location {[key: string]: string}
    Location of the Datacenter. See the Hetzner Docs for more details about locations.
    name string
    Name of the Datacenter.
    supportedServerTypeIds number[]
    List of supported Server Types in the Datacenter.
    available_server_type_ids Sequence[int]
    List of currently available Server Types in the Datacenter.
    description str
    Description of the Datacenter.
    id int
    ID of the Datacenter.
    location Mapping[str, str]
    Location of the Datacenter. See the Hetzner Docs for more details about locations.
    name str
    Name of the Datacenter.
    supported_server_type_ids Sequence[int]
    List of supported Server Types in the Datacenter.
    availableServerTypeIds List<Number>
    List of currently available Server Types in the Datacenter.
    description String
    Description of the Datacenter.
    id Number
    ID of the Datacenter.
    location Map<String>
    Location of the Datacenter. See the Hetzner Docs for more details about locations.
    name String
    Name of the Datacenter.
    supportedServerTypeIds List<Number>
    List of supported Server Types in the Datacenter.

    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