Hetzner Cloud v1.21.1 published on Friday, Nov 22, 2024 by Pulumi
hcloud.getDatacenters
Explore with Pulumi AI
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:
- Datacenter
Ids List<string> - Datacenters
List<Pulumi.
HCloud. Outputs. Get Datacenters Datacenter> - Descriptions List<string>
- Id string
- The ID of this resource.
- Names List<string>
- Datacenter
Ids []string - Datacenters
[]Get
Datacenters Datacenter - Descriptions []string
- Id string
- The ID of this resource.
- Names []string
- datacenter
Ids List<String> - datacenters
List<Get
Datacenters Datacenter> - descriptions List<String>
- id String
- The ID of this resource.
- names List<String>
- datacenter
Ids string[] - datacenters
Get
Datacenters Datacenter[] - descriptions string[]
- id string
- The ID of this resource.
- names string[]
- datacenter_
ids Sequence[str] - datacenters
Sequence[Get
Datacenters Datacenter] - descriptions Sequence[str]
- id str
- The ID of this resource.
- names Sequence[str]
- datacenter
Ids List<String> - datacenters List<Property Map>
- descriptions List<String>
- id String
- The ID of this resource.
- names List<String>
Supporting Types
GetDatacentersDatacenter
- Available
Server List<int>Type Ids - 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.
- Supported
Server List<int>Type Ids - List of supported Server Types in the Datacenter.
- Available
Server []intType Ids - 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.
- Supported
Server []intType Ids - List of supported Server Types in the Datacenter.
- available
Server List<Integer>Type Ids - 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.
- supported
Server List<Integer>Type Ids - List of supported Server Types in the Datacenter.
- available
Server number[]Type Ids - 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.
- supported
Server number[]Type Ids - List of supported Server Types in the Datacenter.
- available_
server_ Sequence[int]type_ ids - 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_ Sequence[int]type_ ids - List of supported Server Types in the Datacenter.
- available
Server List<Number>Type Ids - 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.
- supported
Server List<Number>Type Ids - 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.