import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * Provides details about a specific Hetzner Cloud Server Type. * * Use this resource to get detailed information about specific Server Type. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as hcloud from "@pulumi/hcloud"; * * const byId = hcloud.getServerType({ * id: 22, * }); * const byName = hcloud.getServerType({ * name: "cx23", * }); * const main = new hcloud.Server("main", { * name: "my-server", * location: "fsn1", * image: "debian-12", * serverType: byName.then(byName => byName.name), * }); * ``` */ export declare function getServerType(args?: GetServerTypeArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getServerType. */ export interface GetServerTypeArgs { /** * ID of the Server Type. */ id?: number; /** * Name of the Server Type. */ name?: string; } /** * A collection of values returned by getServerType. */ export interface GetServerTypeResult { /** * Architecture of the cpu for a Server of this type. */ readonly architecture: string; /** * Category of the Server Type. */ readonly category: string; /** * Number of cpu cores for a Server of this type. */ readonly cores: number; /** * Type of cpu for a Server of this type. */ readonly cpuType: string; /** * Date of the Server Type deprecation announcement. * * @deprecated The field is deprecated and will gradually be phased out starting 2025-09-24. Use the deprecation in the locations list instead. */ readonly deprecationAnnounced: string; /** * Description of the Server Type. */ readonly description: string; /** * Disk size in GB for a Server of this type. */ readonly disk: number; /** * ID of the Server Type. */ readonly id?: number; /** * @deprecated The field is deprecated and will always report 0 after 2024-08-05. */ readonly includedTraffic: number; /** * Whether the Server Type is deprecated. * * @deprecated The field is deprecated and will gradually be phased out starting 2025-09-24. Use the deprecation in the locations list instead. */ readonly isDeprecated: boolean; /** * List of supported Locations for this Server Type. */ readonly locations: outputs.GetServerTypeLocation[]; /** * Memory in GB for a Server of this type. */ readonly memory: number; /** * Name of the Server Type. */ readonly name?: string; /** * Type of boot drive for a Server of this type. */ readonly storageType: string; /** * Date of the Server Type removal. After this date, the Server Type cannot be used anymore. * * @deprecated The field is deprecated and will gradually be phased out starting 2025-09-24. Use the deprecation in the locations list instead. */ readonly unavailableAfter: string; } /** * Provides details about a specific Hetzner Cloud Server Type. * * Use this resource to get detailed information about specific Server Type. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as hcloud from "@pulumi/hcloud"; * * const byId = hcloud.getServerType({ * id: 22, * }); * const byName = hcloud.getServerType({ * name: "cx23", * }); * const main = new hcloud.Server("main", { * name: "my-server", * location: "fsn1", * image: "debian-12", * serverType: byName.then(byName => byName.name), * }); * ``` */ export declare function getServerTypeOutput(args?: GetServerTypeOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getServerType. */ export interface GetServerTypeOutputArgs { /** * ID of the Server Type. */ id?: pulumi.Input; /** * Name of the Server Type. */ name?: pulumi.Input; }