1. Packages
  2. Hcloud Provider
  3. API Docs
  4. getServerTypes
Hetzner Cloud v1.21.0 published on Tuesday, Nov 12, 2024 by Pulumi

hcloud.getServerTypes

Explore with Pulumi AI

hcloud logo
Hetzner Cloud v1.21.0 published on Tuesday, Nov 12, 2024 by Pulumi

    Provides a list of available Hetzner Cloud Server Types.

    Using getServerTypes

    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 getServerTypes(args: GetServerTypesArgs, opts?: InvokeOptions): Promise<GetServerTypesResult>
    function getServerTypesOutput(args: GetServerTypesOutputArgs, opts?: InvokeOptions): Output<GetServerTypesResult>
    def get_server_types(descriptions: Optional[Sequence[str]] = None,
                         id: Optional[str] = None,
                         names: Optional[Sequence[str]] = None,
                         server_type_ids: Optional[Sequence[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> GetServerTypesResult
    def get_server_types_output(descriptions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                         id: Optional[pulumi.Input[str]] = None,
                         names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                         server_type_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetServerTypesResult]
    func GetServerTypes(ctx *Context, args *GetServerTypesArgs, opts ...InvokeOption) (*GetServerTypesResult, error)
    func GetServerTypesOutput(ctx *Context, args *GetServerTypesOutputArgs, opts ...InvokeOption) GetServerTypesResultOutput

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

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

    The following arguments are supported:

    Descriptions List<string>

    Deprecated: Use server_types list instead

    Id string
    Names List<string>

    Deprecated: Use server_types list instead

    ServerTypeIds List<string>

    Deprecated: Use server_types list instead

    Descriptions []string

    Deprecated: Use server_types list instead

    Id string
    Names []string

    Deprecated: Use server_types list instead

    ServerTypeIds []string

    Deprecated: Use server_types list instead

    descriptions List<String>

    Deprecated: Use server_types list instead

    id String
    names List<String>

    Deprecated: Use server_types list instead

    serverTypeIds List<String>

    Deprecated: Use server_types list instead

    descriptions string[]

    Deprecated: Use server_types list instead

    id string
    names string[]

    Deprecated: Use server_types list instead

    serverTypeIds string[]

    Deprecated: Use server_types list instead

    descriptions Sequence[str]

    Deprecated: Use server_types list instead

    id str
    names Sequence[str]

    Deprecated: Use server_types list instead

    server_type_ids Sequence[str]

    Deprecated: Use server_types list instead

    descriptions List<String>

    Deprecated: Use server_types list instead

    id String
    names List<String>

    Deprecated: Use server_types list instead

    serverTypeIds List<String>

    Deprecated: Use server_types list instead

    getServerTypes Result

    The following output properties are available:

    ServerTypes List<Pulumi.HCloud.Outputs.GetServerTypesServerType>
    (list) List of all server types. See data.hcloud_server_type for schema.
    Descriptions List<string>

    Deprecated: Use server_types list instead

    Id string
    Names List<string>

    Deprecated: Use server_types list instead

    ServerTypeIds List<string>

    Deprecated: Use server_types list instead

    ServerTypes []GetServerTypesServerType
    (list) List of all server types. See data.hcloud_server_type for schema.
    Descriptions []string

    Deprecated: Use server_types list instead

    Id string
    Names []string

    Deprecated: Use server_types list instead

    ServerTypeIds []string

    Deprecated: Use server_types list instead

    serverTypes List<GetServerTypesServerType>
    (list) List of all server types. See data.hcloud_server_type for schema.
    descriptions List<String>

    Deprecated: Use server_types list instead

    id String
    names List<String>

    Deprecated: Use server_types list instead

    serverTypeIds List<String>

    Deprecated: Use server_types list instead

    serverTypes GetServerTypesServerType[]
    (list) List of all server types. See data.hcloud_server_type for schema.
    descriptions string[]

    Deprecated: Use server_types list instead

    id string
    names string[]

    Deprecated: Use server_types list instead

    serverTypeIds string[]

    Deprecated: Use server_types list instead

    server_types Sequence[GetServerTypesServerType]
    (list) List of all server types. See data.hcloud_server_type for schema.
    descriptions Sequence[str]

    Deprecated: Use server_types list instead

    id str
    names Sequence[str]

    Deprecated: Use server_types list instead

    server_type_ids Sequence[str]

    Deprecated: Use server_types list instead

    serverTypes List<Property Map>
    (list) List of all server types. See data.hcloud_server_type for schema.
    descriptions List<String>

    Deprecated: Use server_types list instead

    id String
    names List<String>

    Deprecated: Use server_types list instead

    serverTypeIds List<String>

    Deprecated: Use server_types list instead

    Supporting Types

    GetServerTypesServerType

    Architecture string
    Cores double
    CpuType string
    DeprecationAnnounced string
    Description string
    Disk double
    Id int
    IncludedTraffic int

    Deprecated: The field is deprecated and will always report 0 after 2024-08-05.

    IsDeprecated bool
    Memory double
    Name string
    StorageType string
    UnavailableAfter string
    Architecture string
    Cores float64
    CpuType string
    DeprecationAnnounced string
    Description string
    Disk float64
    Id int
    IncludedTraffic int

    Deprecated: The field is deprecated and will always report 0 after 2024-08-05.

    IsDeprecated bool
    Memory float64
    Name string
    StorageType string
    UnavailableAfter string
    architecture String
    cores Double
    cpuType String
    deprecationAnnounced String
    description String
    disk Double
    id Integer
    includedTraffic Integer

    Deprecated: The field is deprecated and will always report 0 after 2024-08-05.

    isDeprecated Boolean
    memory Double
    name String
    storageType String
    unavailableAfter String
    architecture string
    cores number
    cpuType string
    deprecationAnnounced string
    description string
    disk number
    id number
    includedTraffic number

    Deprecated: The field is deprecated and will always report 0 after 2024-08-05.

    isDeprecated boolean
    memory number
    name string
    storageType string
    unavailableAfter string
    architecture str
    cores float
    cpu_type str
    deprecation_announced str
    description str
    disk float
    id int
    included_traffic int

    Deprecated: The field is deprecated and will always report 0 after 2024-08-05.

    is_deprecated bool
    memory float
    name str
    storage_type str
    unavailable_after str
    architecture String
    cores Number
    cpuType String
    deprecationAnnounced String
    description String
    disk Number
    id Number
    includedTraffic Number

    Deprecated: The field is deprecated and will always report 0 after 2024-08-05.

    isDeprecated Boolean
    memory Number
    name String
    storageType String
    unavailableAfter String

    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.0 published on Tuesday, Nov 12, 2024 by Pulumi