1. Packages
  2. Vkcs Provider
  3. API Docs
  4. getKubernetesClustertemplates
vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs

vkcs.getKubernetesClustertemplates

Explore with Pulumi AI

vkcs logo
vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs

    Use this data source to get a list of available VKCS Kubernetes Cluster Templates. To get details about each cluster template the data source can be combined with the vkcs.getKubernetesClustertemplate data source.

    Example Usage

    Enabled VKCS Kubernetes Cluster Templates:

    import * as pulumi from "@pulumi/pulumi";
    import * as vkcs from "@pulumi/vkcs";
    
    const templates = vkcs.getKubernetesClustertemplates({});
    export const availableTemplatesByName = templates.then(templates => .map(template => ({
        name: template.name,
        version: template.version,
    })));
    
    import pulumi
    import pulumi_vkcs as vkcs
    
    templates = vkcs.get_kubernetes_clustertemplates()
    pulumi.export("availableTemplatesByName", [{
        "name": template.name,
        "version": template.version,
    } for template in templates.cluster_templates])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/vkcs/vkcs"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		templates, err := vkcs.GetKubernetesClustertemplates(ctx, &vkcs.GetKubernetesClustertemplatesArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("availableTemplatesByName", pulumi.StringMapArray("TODO: For expression"))
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Vkcs = Pulumi.Vkcs;
    
    return await Deployment.RunAsync(() => 
    {
        var templates = Vkcs.GetKubernetesClustertemplates.Invoke();
    
        return new Dictionary<string, object?>
        {
            ["availableTemplatesByName"] = .Select(template => 
            {
                return 
                {
                    { "name", template.Name },
                    { "version", template.Version },
                };
            }).ToList(),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vkcs.VkcsFunctions;
    import com.pulumi.vkcs.inputs.GetKubernetesClustertemplatesArgs;
    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 templates = VkcsFunctions.getKubernetesClustertemplates();
    
            ctx.export("availableTemplatesByName", "TODO: ForExpression");
        }
    }
    
    Coming soon!
    

    Using getKubernetesClustertemplates

    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 getKubernetesClustertemplates(args: GetKubernetesClustertemplatesArgs, opts?: InvokeOptions): Promise<GetKubernetesClustertemplatesResult>
    function getKubernetesClustertemplatesOutput(args: GetKubernetesClustertemplatesOutputArgs, opts?: InvokeOptions): Output<GetKubernetesClustertemplatesResult>
    def get_kubernetes_clustertemplates(region: Optional[str] = None,
                                        opts: Optional[InvokeOptions] = None) -> GetKubernetesClustertemplatesResult
    def get_kubernetes_clustertemplates_output(region: Optional[pulumi.Input[str]] = None,
                                        opts: Optional[InvokeOptions] = None) -> Output[GetKubernetesClustertemplatesResult]
    func GetKubernetesClustertemplates(ctx *Context, args *GetKubernetesClustertemplatesArgs, opts ...InvokeOption) (*GetKubernetesClustertemplatesResult, error)
    func GetKubernetesClustertemplatesOutput(ctx *Context, args *GetKubernetesClustertemplatesOutputArgs, opts ...InvokeOption) GetKubernetesClustertemplatesResultOutput

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

    public static class GetKubernetesClustertemplates 
    {
        public static Task<GetKubernetesClustertemplatesResult> InvokeAsync(GetKubernetesClustertemplatesArgs args, InvokeOptions? opts = null)
        public static Output<GetKubernetesClustertemplatesResult> Invoke(GetKubernetesClustertemplatesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetKubernetesClustertemplatesResult> getKubernetesClustertemplates(GetKubernetesClustertemplatesArgs args, InvokeOptions options)
    public static Output<GetKubernetesClustertemplatesResult> getKubernetesClustertemplates(GetKubernetesClustertemplatesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: vkcs:index/getKubernetesClustertemplates:getKubernetesClustertemplates
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Region string
    optional string → The region to obtain the service client. If omitted, the region argument of the provider is used.New since v0.3.0.
    Region string
    optional string → The region to obtain the service client. If omitted, the region argument of the provider is used.New since v0.3.0.
    region String
    optional string → The region to obtain the service client. If omitted, the region argument of the provider is used.New since v0.3.0.
    region string
    optional string → The region to obtain the service client. If omitted, the region argument of the provider is used.New since v0.3.0.
    region str
    optional string → The region to obtain the service client. If omitted, the region argument of the provider is used.New since v0.3.0.
    region String
    optional string → The region to obtain the service client. If omitted, the region argument of the provider is used.New since v0.3.0.

    getKubernetesClustertemplates Result

    The following output properties are available:

    ClusterTemplates List<GetKubernetesClustertemplatesClusterTemplate>
    list → Available kubernetes cluster templates.
    Id string
    string → Random identifier of the data source.
    Region string
    ClusterTemplates []GetKubernetesClustertemplatesClusterTemplate
    list → Available kubernetes cluster templates.
    Id string
    string → Random identifier of the data source.
    Region string
    clusterTemplates List<GetKubernetesClustertemplatesClusterTemplate>
    list → Available kubernetes cluster templates.
    id String
    string → Random identifier of the data source.
    region String
    clusterTemplates GetKubernetesClustertemplatesClusterTemplate[]
    list → Available kubernetes cluster templates.
    id string
    string → Random identifier of the data source.
    region string
    cluster_templates Sequence[GetKubernetesClustertemplatesClusterTemplate]
    list → Available kubernetes cluster templates.
    id str
    string → Random identifier of the data source.
    region str
    clusterTemplates List<Property Map>
    list → Available kubernetes cluster templates.
    id String
    string → Random identifier of the data source.
    region String

    Supporting Types

    GetKubernetesClustertemplatesClusterTemplate

    ClusterTemplateUuid string
    string → UUID of a cluster template.
    Name string
    string → Name of a cluster template.
    Version string
    string → Version of a cluster template.
    ClusterTemplateUuid string
    string → UUID of a cluster template.
    Name string
    string → Name of a cluster template.
    Version string
    string → Version of a cluster template.
    clusterTemplateUuid String
    string → UUID of a cluster template.
    name String
    string → Name of a cluster template.
    version String
    string → Version of a cluster template.
    clusterTemplateUuid string
    string → UUID of a cluster template.
    name string
    string → Name of a cluster template.
    version string
    string → Version of a cluster template.
    cluster_template_uuid str
    string → UUID of a cluster template.
    name str
    string → Name of a cluster template.
    version str
    string → Version of a cluster template.
    clusterTemplateUuid String
    string → UUID of a cluster template.
    name String
    string → Name of a cluster template.
    version String
    string → Version of a cluster template.

    Package Details

    Repository
    vkcs vk-cs/terraform-provider-vkcs
    License
    Notes
    This Pulumi package is based on the vkcs Terraform Provider.
    vkcs logo
    vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs