1. Packages
  2. Talos Linux
  3. API Docs
  4. machine
  5. getDisks
talos v0.6.1 published on Monday, Oct 13, 2025 by Pulumiverse

talos.machine.getDisks

Get Started
talos logo
talos v0.6.1 published on Monday, Oct 13, 2025 by Pulumiverse

    Generate a machine configuration for a node type

    Note: Since Talos natively supports .machine.install.diskSelector, the talos.machine.getDisks data source maybe just used to query disk information that could be used elsewhere. It’s recommended to use machine.install.diskSelector in Talos machine configuration.

    Using getDisks

    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 getDisks(args: GetDisksArgs, opts?: InvokeOptions): Promise<GetDisksResult>
    function getDisksOutput(args: GetDisksOutputArgs, opts?: InvokeOptions): Output<GetDisksResult>
    def get_disks(client_configuration: Optional[GetDisksClientConfiguration] = None,
                  endpoint: Optional[str] = None,
                  node: Optional[str] = None,
                  selector: Optional[str] = None,
                  timeouts: Optional[GetDisksTimeouts] = None,
                  opts: Optional[InvokeOptions] = None) -> GetDisksResult
    def get_disks_output(client_configuration: Optional[pulumi.Input[GetDisksClientConfigurationArgs]] = None,
                  endpoint: Optional[pulumi.Input[str]] = None,
                  node: Optional[pulumi.Input[str]] = None,
                  selector: Optional[pulumi.Input[str]] = None,
                  timeouts: Optional[pulumi.Input[GetDisksTimeoutsArgs]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetDisksResult]
    func GetDisks(ctx *Context, args *GetDisksArgs, opts ...InvokeOption) (*GetDisksResult, error)
    func GetDisksOutput(ctx *Context, args *GetDisksOutputArgs, opts ...InvokeOption) GetDisksResultOutput

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

    public static class GetDisks 
    {
        public static Task<GetDisksResult> InvokeAsync(GetDisksArgs args, InvokeOptions? opts = null)
        public static Output<GetDisksResult> Invoke(GetDisksInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDisksResult> getDisks(GetDisksArgs args, InvokeOptions options)
    public static Output<GetDisksResult> getDisks(GetDisksArgs args, InvokeOptions options)
    
    fn::invoke:
      function: talos:machine/getDisks:getDisks
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ClientConfiguration Pulumiverse.Talos.Machine.Inputs.GetDisksClientConfiguration
    The client configuration data
    Node string
    controlplane node to retrieve the kubeconfig from
    Endpoint string
    endpoint to use for the talosclient. If not set, the node value will be used
    Selector string
    The CEL expression to filter the disks. If not set, all disks will be returned. See CEL documentation.
    Timeouts Pulumiverse.Talos.Machine.Inputs.GetDisksTimeouts
    ClientConfiguration GetDisksClientConfiguration
    The client configuration data
    Node string
    controlplane node to retrieve the kubeconfig from
    Endpoint string
    endpoint to use for the talosclient. If not set, the node value will be used
    Selector string
    The CEL expression to filter the disks. If not set, all disks will be returned. See CEL documentation.
    Timeouts GetDisksTimeouts
    clientConfiguration GetDisksClientConfiguration
    The client configuration data
    node String
    controlplane node to retrieve the kubeconfig from
    endpoint String
    endpoint to use for the talosclient. If not set, the node value will be used
    selector String
    The CEL expression to filter the disks. If not set, all disks will be returned. See CEL documentation.
    timeouts GetDisksTimeouts
    clientConfiguration GetDisksClientConfiguration
    The client configuration data
    node string
    controlplane node to retrieve the kubeconfig from
    endpoint string
    endpoint to use for the talosclient. If not set, the node value will be used
    selector string
    The CEL expression to filter the disks. If not set, all disks will be returned. See CEL documentation.
    timeouts GetDisksTimeouts
    client_configuration GetDisksClientConfiguration
    The client configuration data
    node str
    controlplane node to retrieve the kubeconfig from
    endpoint str
    endpoint to use for the talosclient. If not set, the node value will be used
    selector str
    The CEL expression to filter the disks. If not set, all disks will be returned. See CEL documentation.
    timeouts GetDisksTimeouts
    clientConfiguration Property Map
    The client configuration data
    node String
    controlplane node to retrieve the kubeconfig from
    endpoint String
    endpoint to use for the talosclient. If not set, the node value will be used
    selector String
    The CEL expression to filter the disks. If not set, all disks will be returned. See CEL documentation.
    timeouts Property Map

    getDisks Result

    The following output properties are available:

    ClientConfiguration Pulumiverse.Talos.Machine.Outputs.GetDisksClientConfiguration
    The client configuration data
    Disks List<Pulumiverse.Talos.Machine.Outputs.GetDisksDisk>
    The disks that match the filters
    Endpoint string
    endpoint to use for the talosclient. If not set, the node value will be used
    Id string
    The generated ID of this resource
    Node string
    controlplane node to retrieve the kubeconfig from
    Selector string
    The CEL expression to filter the disks. If not set, all disks will be returned. See CEL documentation.
    Timeouts Pulumiverse.Talos.Machine.Outputs.GetDisksTimeouts
    ClientConfiguration GetDisksClientConfiguration
    The client configuration data
    Disks []GetDisksDisk
    The disks that match the filters
    Endpoint string
    endpoint to use for the talosclient. If not set, the node value will be used
    Id string
    The generated ID of this resource
    Node string
    controlplane node to retrieve the kubeconfig from
    Selector string
    The CEL expression to filter the disks. If not set, all disks will be returned. See CEL documentation.
    Timeouts GetDisksTimeouts
    clientConfiguration GetDisksClientConfiguration
    The client configuration data
    disks List<GetDisksDisk>
    The disks that match the filters
    endpoint String
    endpoint to use for the talosclient. If not set, the node value will be used
    id String
    The generated ID of this resource
    node String
    controlplane node to retrieve the kubeconfig from
    selector String
    The CEL expression to filter the disks. If not set, all disks will be returned. See CEL documentation.
    timeouts GetDisksTimeouts
    clientConfiguration GetDisksClientConfiguration
    The client configuration data
    disks GetDisksDisk[]
    The disks that match the filters
    endpoint string
    endpoint to use for the talosclient. If not set, the node value will be used
    id string
    The generated ID of this resource
    node string
    controlplane node to retrieve the kubeconfig from
    selector string
    The CEL expression to filter the disks. If not set, all disks will be returned. See CEL documentation.
    timeouts GetDisksTimeouts
    client_configuration GetDisksClientConfiguration
    The client configuration data
    disks Sequence[GetDisksDisk]
    The disks that match the filters
    endpoint str
    endpoint to use for the talosclient. If not set, the node value will be used
    id str
    The generated ID of this resource
    node str
    controlplane node to retrieve the kubeconfig from
    selector str
    The CEL expression to filter the disks. If not set, all disks will be returned. See CEL documentation.
    timeouts GetDisksTimeouts
    clientConfiguration Property Map
    The client configuration data
    disks List<Property Map>
    The disks that match the filters
    endpoint String
    endpoint to use for the talosclient. If not set, the node value will be used
    id String
    The generated ID of this resource
    node String
    controlplane node to retrieve the kubeconfig from
    selector String
    The CEL expression to filter the disks. If not set, all disks will be returned. See CEL documentation.
    timeouts Property Map

    Supporting Types

    GetDisksClientConfiguration

    CaCertificate string
    The client CA certificate
    ClientCertificate string
    The client certificate
    ClientKey string
    The client key
    CaCertificate string
    The client CA certificate
    ClientCertificate string
    The client certificate
    ClientKey string
    The client key
    caCertificate String
    The client CA certificate
    clientCertificate String
    The client certificate
    clientKey String
    The client key
    caCertificate string
    The client CA certificate
    clientCertificate string
    The client certificate
    clientKey string
    The client key
    ca_certificate str
    The client CA certificate
    client_certificate str
    The client certificate
    client_key str
    The client key
    caCertificate String
    The client CA certificate
    clientCertificate String
    The client certificate
    clientKey String
    The client key

    GetDisksDisk

    BusPath string
    Cdrom bool
    DevPath string
    IoSize int
    Modalias string
    Model string
    PrettySize string
    Readonly bool
    Rotational bool
    SecondaryDisks List<string>
    SectorSize int
    Serial string
    Size int
    SubSystem string
    Symlinks List<string>
    Transport string
    Uuid string
    Wwid string
    BusPath string
    Cdrom bool
    DevPath string
    IoSize int
    Modalias string
    Model string
    PrettySize string
    Readonly bool
    Rotational bool
    SecondaryDisks []string
    SectorSize int
    Serial string
    Size int
    SubSystem string
    Symlinks []string
    Transport string
    Uuid string
    Wwid string
    busPath String
    cdrom Boolean
    devPath String
    ioSize Integer
    modalias String
    model String
    prettySize String
    readonly Boolean
    rotational Boolean
    secondaryDisks List<String>
    sectorSize Integer
    serial String
    size Integer
    subSystem String
    symlinks List<String>
    transport String
    uuid String
    wwid String
    busPath string
    cdrom boolean
    devPath string
    ioSize number
    modalias string
    model string
    prettySize string
    readonly boolean
    rotational boolean
    secondaryDisks string[]
    sectorSize number
    serial string
    size number
    subSystem string
    symlinks string[]
    transport string
    uuid string
    wwid string
    bus_path str
    cdrom bool
    dev_path str
    io_size int
    modalias str
    model str
    pretty_size str
    readonly bool
    rotational bool
    secondary_disks Sequence[str]
    sector_size int
    serial str
    size int
    sub_system str
    symlinks Sequence[str]
    transport str
    uuid str
    wwid str
    busPath String
    cdrom Boolean
    devPath String
    ioSize Number
    modalias String
    model String
    prettySize String
    readonly Boolean
    rotational Boolean
    secondaryDisks List<String>
    sectorSize Number
    serial String
    size Number
    subSystem String
    symlinks List<String>
    transport String
    uuid String
    wwid String

    GetDisksTimeouts

    Read string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
    Read string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
    read String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
    read string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
    read str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
    read String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.

    Package Details

    Repository
    talos pulumiverse/pulumi-talos
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the talos Terraform Provider.
    talos logo
    talos v0.6.1 published on Monday, Oct 13, 2025 by Pulumiverse
      Meet Neo: Your AI Platform Teammate