Hetzner Cloud v1.20.4 published on Tuesday, Sep 24, 2024 by Pulumi
hcloud.getServerTypes
Explore with Pulumi AI
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(server_type_ids: Optional[Sequence[str]] = None,
opts: Optional[InvokeOptions] = None) -> GetServerTypesResult
def get_server_types_output(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:
- Server
Type List<string>Ids
- Server
Type []stringIds
- server
Type List<String>Ids
- server
Type string[]Ids
- server_
type_ Sequence[str]ids
- server
Type List<String>Ids
getServerTypes Result
The following output properties are available:
- Descriptions List<string>
- Id string
- The provider-assigned unique ID for this managed resource.
- Names List<string>
- Server
Types List<Pulumi.HCloud. Outputs. Get Server Types Server Type> - (list) List of all server types. See
data.hcloud_server_type
for schema. - Server
Type List<string>Ids
- Descriptions []string
- Id string
- The provider-assigned unique ID for this managed resource.
- Names []string
- Server
Types []GetServer Types Server Type - (list) List of all server types. See
data.hcloud_server_type
for schema. - Server
Type []stringIds
- descriptions List<String>
- id String
- The provider-assigned unique ID for this managed resource.
- names List<String>
- server
Types List<GetServer Types Server Type> - (list) List of all server types. See
data.hcloud_server_type
for schema. - server
Type List<String>Ids
- descriptions string[]
- id string
- The provider-assigned unique ID for this managed resource.
- names string[]
- server
Types GetServer Types Server Type[] - (list) List of all server types. See
data.hcloud_server_type
for schema. - server
Type string[]Ids
- descriptions Sequence[str]
- id str
- The provider-assigned unique ID for this managed resource.
- names Sequence[str]
- server_
types Sequence[GetServer Types Server Type] - (list) List of all server types. See
data.hcloud_server_type
for schema. - server_
type_ Sequence[str]ids
- descriptions List<String>
- id String
- The provider-assigned unique ID for this managed resource.
- names List<String>
- server
Types List<Property Map> - (list) List of all server types. See
data.hcloud_server_type
for schema. - server
Type List<String>Ids
Supporting Types
GetServerTypesServerType
- Architecture string
- Cores int
- Cpu
Type string - Deprecation
Announced string - Description string
- Disk int
- Id int
- Included
Traffic int - Is
Deprecated bool - Memory int
- Name string
- Storage
Type string - string
- Architecture string
- Cores int
- Cpu
Type string - Deprecation
Announced string - Description string
- Disk int
- Id int
- Included
Traffic int - Is
Deprecated bool - Memory int
- Name string
- Storage
Type string - string
- architecture String
- cores Integer
- cpu
Type String - deprecation
Announced String - description String
- disk Integer
- id Integer
- included
Traffic Integer - is
Deprecated Boolean - memory Integer
- name String
- storage
Type String - String
- architecture string
- cores number
- cpu
Type string - deprecation
Announced string - description string
- disk number
- id number
- included
Traffic number - is
Deprecated boolean - memory number
- name string
- storage
Type string - string
- architecture str
- cores int
- cpu_
type str - deprecation_
announced str - description str
- disk int
- id int
- included_
traffic int - is_
deprecated bool - memory int
- name str
- storage_
type str - str
- architecture String
- cores Number
- cpu
Type String - deprecation
Announced String - description String
- disk Number
- id Number
- included
Traffic Number - is
Deprecated Boolean - memory Number
- name String
- storage
Type String - String
Package Details
- Repository
- Hetzner Cloud pulumi/pulumi-hcloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
hcloud
Terraform Provider.