1. Packages
  2. Talos Linux
  3. API Docs
  4. imageFactory
  5. getExtensionsVersions
talos v0.4.1 published on Tuesday, Nov 5, 2024 by Pulumiverse

talos.imageFactory.getExtensionsVersions

Explore with Pulumi AI

talos logo
talos v0.4.1 published on Tuesday, Nov 5, 2024 by Pulumiverse

    The image factory extensions versions data source provides a list of available extensions for a specific talos version from the image factory.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as talos from "@pulumi/talos";
    
    const this = talos.imageFactory.getExtensionsVersions({
        talosVersion: "v1.7.5",
        filters: {
            names: [
                "amdgpu",
                "tailscale",
            ],
        },
    });
    
    import pulumi
    import pulumi_talos as talos
    
    this = talos.imageFactory.get_extensions_versions(talos_version="v1.7.5",
        filters={
            "names": [
                "amdgpu",
                "tailscale",
            ],
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-talos/sdk/go/talos/imageFactory"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := imageFactory.GetExtensionsVersions(ctx, &imagefactory.GetExtensionsVersionsArgs{
    			TalosVersion: "v1.7.5",
    			Filters: imagefactory.GetExtensionsVersionsFilters{
    				Names: []string{
    					"amdgpu",
    					"tailscale",
    				},
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Talos = Pulumi.Talos;
    
    return await Deployment.RunAsync(() => 
    {
        var @this = Talos.ImageFactory.GetExtensionsVersions.Invoke(new()
        {
            TalosVersion = "v1.7.5",
            Filters = new Talos.ImageFactory.Inputs.GetExtensionsVersionsFiltersInputArgs
            {
                Names = new[]
                {
                    "amdgpu",
                    "tailscale",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.talos.imageFactory.ImageFactoryFunctions;
    import com.pulumi.talos.imageFactory.inputs.GetExtensionsVersionsArgs;
    import com.pulumi.talos.imageFactory.inputs.GetExtensionsVersionsFiltersArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var this = ImageFactoryFunctions.getExtensionsVersions(GetExtensionsVersionsArgs.builder()
                .talosVersion("v1.7.5")
                .filters(GetExtensionsVersionsFiltersArgs.builder()
                    .names(                
                        "amdgpu",
                        "tailscale")
                    .build())
                .build());
    
        }
    }
    
    variables:
      this:
        fn::invoke:
          Function: talos:imageFactory:getExtensionsVersions
          Arguments:
            talosVersion: v1.7.5
            filters:
              names:
                - amdgpu
                - tailscale
    

    Using getExtensionsVersions

    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 getExtensionsVersions(args: GetExtensionsVersionsArgs, opts?: InvokeOptions): Promise<GetExtensionsVersionsResult>
    function getExtensionsVersionsOutput(args: GetExtensionsVersionsOutputArgs, opts?: InvokeOptions): Output<GetExtensionsVersionsResult>
    def get_extensions_versions(filters: Optional[_imagefactory.GetExtensionsVersionsFilters] = None,
                                talos_version: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetExtensionsVersionsResult
    def get_extensions_versions_output(filters: Optional[pulumi.Input[_imagefactory.GetExtensionsVersionsFiltersArgs]] = None,
                                talos_version: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetExtensionsVersionsResult]
    func GetExtensionsVersions(ctx *Context, args *GetExtensionsVersionsArgs, opts ...InvokeOption) (*GetExtensionsVersionsResult, error)
    func GetExtensionsVersionsOutput(ctx *Context, args *GetExtensionsVersionsOutputArgs, opts ...InvokeOption) GetExtensionsVersionsResultOutput

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

    public static class GetExtensionsVersions 
    {
        public static Task<GetExtensionsVersionsResult> InvokeAsync(GetExtensionsVersionsArgs args, InvokeOptions? opts = null)
        public static Output<GetExtensionsVersionsResult> Invoke(GetExtensionsVersionsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetExtensionsVersionsResult> getExtensionsVersions(GetExtensionsVersionsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: talos:imageFactory/getExtensionsVersions:getExtensionsVersions
      arguments:
        # arguments dictionary

    The following arguments are supported:

    TalosVersion string
    The talos version to get extensions for.
    Filters Pulumiverse.Talos.ImageFactory.Inputs.GetExtensionsVersionsFilters
    The filter to apply to the extensions list.
    TalosVersion string
    The talos version to get extensions for.
    Filters GetExtensionsVersionsFilters
    The filter to apply to the extensions list.
    talosVersion String
    The talos version to get extensions for.
    filters GetExtensionsVersionsFilters
    The filter to apply to the extensions list.
    talosVersion string
    The talos version to get extensions for.
    filters GetExtensionsVersionsFilters
    The filter to apply to the extensions list.
    talos_version str
    The talos version to get extensions for.
    filters imagefactory.GetExtensionsVersionsFilters
    The filter to apply to the extensions list.
    talosVersion String
    The talos version to get extensions for.
    filters Property Map
    The filter to apply to the extensions list.

    getExtensionsVersions Result

    The following output properties are available:

    ExtensionsInfos List<Pulumiverse.Talos.ImageFactory.Outputs.GetExtensionsVersionsExtensionsInfo>
    The list of available extensions for the specified talos version.
    Id string
    The ID of this resource.
    TalosVersion string
    The talos version to get extensions for.
    Filters Pulumiverse.Talos.ImageFactory.Outputs.GetExtensionsVersionsFilters
    The filter to apply to the extensions list.
    ExtensionsInfos []GetExtensionsVersionsExtensionsInfo
    The list of available extensions for the specified talos version.
    Id string
    The ID of this resource.
    TalosVersion string
    The talos version to get extensions for.
    Filters GetExtensionsVersionsFilters
    The filter to apply to the extensions list.
    extensionsInfos List<GetExtensionsVersionsExtensionsInfo>
    The list of available extensions for the specified talos version.
    id String
    The ID of this resource.
    talosVersion String
    The talos version to get extensions for.
    filters GetExtensionsVersionsFilters
    The filter to apply to the extensions list.
    extensionsInfos GetExtensionsVersionsExtensionsInfo[]
    The list of available extensions for the specified talos version.
    id string
    The ID of this resource.
    talosVersion string
    The talos version to get extensions for.
    filters GetExtensionsVersionsFilters
    The filter to apply to the extensions list.
    extensions_infos Sequence[imagefactory.GetExtensionsVersionsExtensionsInfo]
    The list of available extensions for the specified talos version.
    id str
    The ID of this resource.
    talos_version str
    The talos version to get extensions for.
    filters imagefactory.GetExtensionsVersionsFilters
    The filter to apply to the extensions list.
    extensionsInfos List<Property Map>
    The list of available extensions for the specified talos version.
    id String
    The ID of this resource.
    talosVersion String
    The talos version to get extensions for.
    filters Property Map
    The filter to apply to the extensions list.

    Supporting Types

    GetExtensionsVersionsExtensionsInfo

    Author string
    Description string
    Digest string
    Name string
    Ref string
    Author string
    Description string
    Digest string
    Name string
    Ref string
    author String
    description String
    digest String
    name String
    ref String
    author string
    description string
    digest string
    name string
    ref string
    author str
    description str
    digest str
    name str
    ref str
    author String
    description String
    digest String
    name String
    ref String

    GetExtensionsVersionsFilters

    Names List<string>
    The name of the extension to filter by.
    Names []string
    The name of the extension to filter by.
    names List<String>
    The name of the extension to filter by.
    names string[]
    The name of the extension to filter by.
    names Sequence[str]
    The name of the extension to filter by.
    names List<String>
    The name of the extension to filter by.

    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.4.1 published on Tuesday, Nov 5, 2024 by Pulumiverse