talos v0.4.1 published on Tuesday, Nov 5, 2024 by Pulumiverse
talos.imageFactory.getExtensionsVersions
Explore with Pulumi AI
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:
- Talos
Version string - The talos version to get extensions for.
- Filters
Pulumiverse.
Talos. Image Factory. Inputs. Get Extensions Versions Filters - The filter to apply to the extensions list.
- Talos
Version string - The talos version to get extensions for.
- Filters
Get
Extensions Versions Filters - The filter to apply to the extensions list.
- talos
Version String - The talos version to get extensions for.
- filters
Get
Extensions Versions Filters - The filter to apply to the extensions list.
- talos
Version string - The talos version to get extensions for.
- filters
Get
Extensions Versions Filters - The filter to apply to the extensions list.
- talos_
version str - The talos version to get extensions for.
- filters
imagefactory.
Get Extensions Versions Filters - The filter to apply to the extensions list.
- talos
Version 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:
- Extensions
Infos List<Pulumiverse.Talos. Image Factory. Outputs. Get Extensions Versions Extensions Info> - The list of available extensions for the specified talos version.
- Id string
- The ID of this resource.
- Talos
Version string - The talos version to get extensions for.
- Filters
Pulumiverse.
Talos. Image Factory. Outputs. Get Extensions Versions Filters - The filter to apply to the extensions list.
- Extensions
Infos []GetExtensions Versions Extensions Info - The list of available extensions for the specified talos version.
- Id string
- The ID of this resource.
- Talos
Version string - The talos version to get extensions for.
- Filters
Get
Extensions Versions Filters - The filter to apply to the extensions list.
- extensions
Infos List<GetExtensions Versions Extensions Info> - The list of available extensions for the specified talos version.
- id String
- The ID of this resource.
- talos
Version String - The talos version to get extensions for.
- filters
Get
Extensions Versions Filters - The filter to apply to the extensions list.
- extensions
Infos GetExtensions Versions Extensions Info[] - The list of available extensions for the specified talos version.
- id string
- The ID of this resource.
- talos
Version string - The talos version to get extensions for.
- filters
Get
Extensions Versions Filters - The filter to apply to the extensions list.
- extensions_
infos Sequence[imagefactory.Get Extensions Versions Extensions Info] - 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.
Get Extensions Versions Filters - The filter to apply to the extensions list.
- extensions
Infos List<Property Map> - The list of available extensions for the specified talos version.
- id String
- The ID of this resource.
- talos
Version String - The talos version to get extensions for.
- filters Property Map
- The filter to apply to the extensions list.
Supporting Types
GetExtensionsVersionsExtensionsInfo
- string
- Description string
- Digest string
- Name string
- Ref string
- string
- Description string
- Digest string
- Name string
- Ref string
- String
- description String
- digest String
- name String
- ref String
- string
- description string
- digest string
- name string
- ref string
- str
- description str
- digest str
- name str
- ref str
- 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.