UNPKG

@pulumi/hcloud

Version:

A Pulumi package for creating and managing hcloud cloud resources.

113 lines 3.59 kB
import * as pulumi from "@pulumi/pulumi"; /** * Provides details about a specific Hetzner Cloud Datacenter. * * Use this resource to get detailed information about a specific Datacenter. * * > The `hcloud.getDatacenter` data source is deprecated, and will be removed after 1 Oct. 2026. * After this date, requests to the datacenters API endpoints will return `HTTP 410 Gone`. * Please use the `hcloud.getLocation` data source instead. * See the [changelog](https://docs.hetzner.cloud/changelog#2026-06-02-datacenters-deprecated) for more details. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as hcloud from "@pulumi/hcloud"; * * const byId = hcloud.getDatacenter({ * id: 4, * }); * const byName = hcloud.getDatacenter({ * name: "fsn1-dc14", * }); * ``` */ export declare function getDatacenter(args?: GetDatacenterArgs, opts?: pulumi.InvokeOptions): Promise<GetDatacenterResult>; /** * A collection of arguments for invoking getDatacenter. */ export interface GetDatacenterArgs { /** * ID of the Datacenter. */ id?: number; /** * Name of the Datacenter. */ name?: string; } /** * A collection of values returned by getDatacenter. */ export interface GetDatacenterResult { /** * List of currently available Server Types in the Datacenter. * * @deprecated This attribute is deprecated and will be dropped after 2026-10-01. Use hcloud_server_types[].locations[].available instead. */ readonly availableServerTypeIds: number[]; /** * Description of the Datacenter. */ readonly description: string; /** * ID of the Datacenter. */ readonly id?: number; /** * Location of the Datacenter. See the [Hetzner Docs](https://docs.hetzner.com/cloud/general/locations/#what-locations-are-there) for more details about locations. */ readonly location: { [key: string]: string; }; /** * Name of the Datacenter. */ readonly name?: string; /** * List of supported Server Types in the Datacenter. * * @deprecated This attribute is deprecated and will be dropped after 2026-10-01. Use hcloud_server_types[].locations[] instead. */ readonly supportedServerTypeIds: number[]; } /** * Provides details about a specific Hetzner Cloud Datacenter. * * Use this resource to get detailed information about a specific Datacenter. * * > The `hcloud.getDatacenter` data source is deprecated, and will be removed after 1 Oct. 2026. * After this date, requests to the datacenters API endpoints will return `HTTP 410 Gone`. * Please use the `hcloud.getLocation` data source instead. * See the [changelog](https://docs.hetzner.cloud/changelog#2026-06-02-datacenters-deprecated) for more details. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as hcloud from "@pulumi/hcloud"; * * const byId = hcloud.getDatacenter({ * id: 4, * }); * const byName = hcloud.getDatacenter({ * name: "fsn1-dc14", * }); * ``` */ export declare function getDatacenterOutput(args?: GetDatacenterOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDatacenterResult>; /** * A collection of arguments for invoking getDatacenter. */ export interface GetDatacenterOutputArgs { /** * ID of the Datacenter. */ id?: pulumi.Input<number | undefined>; /** * Name of the Datacenter. */ name?: pulumi.Input<string | undefined>; } //# sourceMappingURL=getDatacenter.d.ts.map