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

vkcs.getKubernetesClustertemplate

Explore with Pulumi AI

Use this data source to get the ID of an available VKCS kubernetes cluster template.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as vkcs from "@pulumi/vkcs";

const k8s31 = vkcs.getKubernetesClustertemplate({
    version: "1.31",
});
Copy
import pulumi
import pulumi_vkcs as vkcs

k8s31 = vkcs.get_kubernetes_clustertemplate(version="1.31")
Copy
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 {
		_, err := vkcs.GetKubernetesClustertemplate(ctx, &vkcs.GetKubernetesClustertemplateArgs{
			Version: pulumi.StringRef("1.31"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vkcs = Pulumi.Vkcs;

return await Deployment.RunAsync(() => 
{
    var k8s31 = Vkcs.GetKubernetesClustertemplate.Invoke(new()
    {
        Version = "1.31",
    });

});
Copy
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.GetKubernetesClustertemplateArgs;
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 k8s31 = VkcsFunctions.getKubernetesClustertemplate(GetKubernetesClustertemplateArgs.builder()
            .version("1.31")
            .build());

    }
}
Copy
variables:
  k8s31:
    fn::invoke:
      function: vkcs:getKubernetesClustertemplate
      arguments:
        version: '1.31'
Copy

Using getKubernetesClustertemplate

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 getKubernetesClustertemplate(args: GetKubernetesClustertemplateArgs, opts?: InvokeOptions): Promise<GetKubernetesClustertemplateResult>
function getKubernetesClustertemplateOutput(args: GetKubernetesClustertemplateOutputArgs, opts?: InvokeOptions): Output<GetKubernetesClustertemplateResult>
Copy
def get_kubernetes_clustertemplate(cluster_template_uuid: Optional[str] = None,
                                   id: Optional[str] = None,
                                   name: Optional[str] = None,
                                   region: Optional[str] = None,
                                   version: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetKubernetesClustertemplateResult
def get_kubernetes_clustertemplate_output(cluster_template_uuid: Optional[pulumi.Input[str]] = None,
                                   id: Optional[pulumi.Input[str]] = None,
                                   name: Optional[pulumi.Input[str]] = None,
                                   region: Optional[pulumi.Input[str]] = None,
                                   version: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetKubernetesClustertemplateResult]
Copy
func GetKubernetesClustertemplate(ctx *Context, args *GetKubernetesClustertemplateArgs, opts ...InvokeOption) (*GetKubernetesClustertemplateResult, error)
func GetKubernetesClustertemplateOutput(ctx *Context, args *GetKubernetesClustertemplateOutputArgs, opts ...InvokeOption) GetKubernetesClustertemplateResultOutput
Copy

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

public static class GetKubernetesClustertemplate 
{
    public static Task<GetKubernetesClustertemplateResult> InvokeAsync(GetKubernetesClustertemplateArgs args, InvokeOptions? opts = null)
    public static Output<GetKubernetesClustertemplateResult> Invoke(GetKubernetesClustertemplateInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetKubernetesClustertemplateResult> getKubernetesClustertemplate(GetKubernetesClustertemplateArgs args, InvokeOptions options)
public static Output<GetKubernetesClustertemplateResult> getKubernetesClustertemplate(GetKubernetesClustertemplateArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: vkcs:index/getKubernetesClustertemplate:getKubernetesClustertemplate
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ClusterTemplateUuid string
optional deprecated string → The UUID of the cluster template. Note: Only one of name, version, or cluster_template_uuid must be specified. Deprecated This argument is deprecated, please, use the id attribute instead.

Deprecated: Deprecated

Id string
optional string → The UUID of the cluster template. Note: Only one of name, version or id must be specified.
Name string
optional string → The name of the cluster template. Note: Only one of name, version or id must be specified.
Region string
optional string → The region in which to obtain the V1 Container Infra client. If omitted, the region argument of the provider is used.
Version string
optional string → Kubernetes version of the cluster. Note: Only one of name, version or id must be specified.
ClusterTemplateUuid string
optional deprecated string → The UUID of the cluster template. Note: Only one of name, version, or cluster_template_uuid must be specified. Deprecated This argument is deprecated, please, use the id attribute instead.

Deprecated: Deprecated

Id string
optional string → The UUID of the cluster template. Note: Only one of name, version or id must be specified.
Name string
optional string → The name of the cluster template. Note: Only one of name, version or id must be specified.
Region string
optional string → The region in which to obtain the V1 Container Infra client. If omitted, the region argument of the provider is used.
Version string
optional string → Kubernetes version of the cluster. Note: Only one of name, version or id must be specified.
clusterTemplateUuid String
optional deprecated string → The UUID of the cluster template. Note: Only one of name, version, or cluster_template_uuid must be specified. Deprecated This argument is deprecated, please, use the id attribute instead.

Deprecated: Deprecated

id String
optional string → The UUID of the cluster template. Note: Only one of name, version or id must be specified.
name String
optional string → The name of the cluster template. Note: Only one of name, version or id must be specified.
region String
optional string → The region in which to obtain the V1 Container Infra client. If omitted, the region argument of the provider is used.
version String
optional string → Kubernetes version of the cluster. Note: Only one of name, version or id must be specified.
clusterTemplateUuid string
optional deprecated string → The UUID of the cluster template. Note: Only one of name, version, or cluster_template_uuid must be specified. Deprecated This argument is deprecated, please, use the id attribute instead.

Deprecated: Deprecated

id string
optional string → The UUID of the cluster template. Note: Only one of name, version or id must be specified.
name string
optional string → The name of the cluster template. Note: Only one of name, version or id must be specified.
region string
optional string → The region in which to obtain the V1 Container Infra client. If omitted, the region argument of the provider is used.
version string
optional string → Kubernetes version of the cluster. Note: Only one of name, version or id must be specified.
cluster_template_uuid str
optional deprecated string → The UUID of the cluster template. Note: Only one of name, version, or cluster_template_uuid must be specified. Deprecated This argument is deprecated, please, use the id attribute instead.

Deprecated: Deprecated

id str
optional string → The UUID of the cluster template. Note: Only one of name, version or id must be specified.
name str
optional string → The name of the cluster template. Note: Only one of name, version or id must be specified.
region str
optional string → The region in which to obtain the V1 Container Infra client. If omitted, the region argument of the provider is used.
version str
optional string → Kubernetes version of the cluster. Note: Only one of name, version or id must be specified.
clusterTemplateUuid String
optional deprecated string → The UUID of the cluster template. Note: Only one of name, version, or cluster_template_uuid must be specified. Deprecated This argument is deprecated, please, use the id attribute instead.

Deprecated: Deprecated

id String
optional string → The UUID of the cluster template. Note: Only one of name, version or id must be specified.
name String
optional string → The name of the cluster template. Note: Only one of name, version or id must be specified.
region String
optional string → The region in which to obtain the V1 Container Infra client. If omitted, the region argument of the provider is used.
version String
optional string → Kubernetes version of the cluster. Note: Only one of name, version or id must be specified.

getKubernetesClustertemplate Result

The following output properties are available:

ApiserverPort double
number → The API server port for the Container Orchestration Engine for this cluster template.
ClusterDistro string
string → The distro for the cluster (fedora-atomic, coreos, etc.).
ClusterTemplateUuid string

Deprecated: Deprecated

CreatedAt string
string → The time at which cluster template was created.
DeprecatedAt string
string → The time at which the cluster template is deprecated.
DnsNameserver string
string → Address of the DNS nameserver that is used in nodes of the cluster.
DockerStorageDriver string
string → Docker storage driver. Changing this updates the Docker storage driver of the existing cluster template.
DockerVolumeSize double
number → The size (in GB) of the Docker volume.
ExternalNetworkId string
string → The ID of the external network that will be used for the cluster.
Flavor string
string → The ID of flavor for the nodes of the cluster.
FloatingIpEnabled bool
boolean → Indicates whether created cluster should create IP floating IP for every node or not.
Id string
Image string
string → The reference to an image that is used for nodes of the cluster.
InsecureRegistry string
string → The insecure registry URL for the cluster template.
KeypairId string
string → The name of the Compute service SSH keypair.
Labels Dictionary<string, string>
map of string → The list of key value pairs representing additional properties of the cluster template.
MasterFlavor string
string → The ID of flavor for the master nodes.
MasterLbEnabled bool
boolean → Indicates whether created cluster should has a loadbalancer for master nodes or not.
Name string
NetworkDriver string
string → The name of the driver for the container network.
NoProxy string
string → A comma-separated list of IP addresses that shouldn't be used in the cluster.
ProjectId string
string → The project of the cluster template.
Public bool
boolean → Indicates whether cluster template should be public.
Region string
RegistryEnabled bool
boolean → Indicates whether Docker registry is enabled in the cluster.
ServerType string
string → The server type for the cluster template.
TlsDisabled bool
boolean → Indicates whether the TLS should be disabled in the cluster.
UpdatedAt string
string → The time at which cluster template was updated.
UserId string
string → The user of the cluster template.
Version string
VolumeDriver string
string → The name of the driver that is used for the volumes of the cluster nodes.
ApiserverPort float64
number → The API server port for the Container Orchestration Engine for this cluster template.
ClusterDistro string
string → The distro for the cluster (fedora-atomic, coreos, etc.).
ClusterTemplateUuid string

Deprecated: Deprecated

CreatedAt string
string → The time at which cluster template was created.
DeprecatedAt string
string → The time at which the cluster template is deprecated.
DnsNameserver string
string → Address of the DNS nameserver that is used in nodes of the cluster.
DockerStorageDriver string
string → Docker storage driver. Changing this updates the Docker storage driver of the existing cluster template.
DockerVolumeSize float64
number → The size (in GB) of the Docker volume.
ExternalNetworkId string
string → The ID of the external network that will be used for the cluster.
Flavor string
string → The ID of flavor for the nodes of the cluster.
FloatingIpEnabled bool
boolean → Indicates whether created cluster should create IP floating IP for every node or not.
Id string
Image string
string → The reference to an image that is used for nodes of the cluster.
InsecureRegistry string
string → The insecure registry URL for the cluster template.
KeypairId string
string → The name of the Compute service SSH keypair.
Labels map[string]string
map of string → The list of key value pairs representing additional properties of the cluster template.
MasterFlavor string
string → The ID of flavor for the master nodes.
MasterLbEnabled bool
boolean → Indicates whether created cluster should has a loadbalancer for master nodes or not.
Name string
NetworkDriver string
string → The name of the driver for the container network.
NoProxy string
string → A comma-separated list of IP addresses that shouldn't be used in the cluster.
ProjectId string
string → The project of the cluster template.
Public bool
boolean → Indicates whether cluster template should be public.
Region string
RegistryEnabled bool
boolean → Indicates whether Docker registry is enabled in the cluster.
ServerType string
string → The server type for the cluster template.
TlsDisabled bool
boolean → Indicates whether the TLS should be disabled in the cluster.
UpdatedAt string
string → The time at which cluster template was updated.
UserId string
string → The user of the cluster template.
Version string
VolumeDriver string
string → The name of the driver that is used for the volumes of the cluster nodes.
apiserverPort Double
number → The API server port for the Container Orchestration Engine for this cluster template.
clusterDistro String
string → The distro for the cluster (fedora-atomic, coreos, etc.).
clusterTemplateUuid String

Deprecated: Deprecated

createdAt String
string → The time at which cluster template was created.
deprecatedAt String
string → The time at which the cluster template is deprecated.
dnsNameserver String
string → Address of the DNS nameserver that is used in nodes of the cluster.
dockerStorageDriver String
string → Docker storage driver. Changing this updates the Docker storage driver of the existing cluster template.
dockerVolumeSize Double
number → The size (in GB) of the Docker volume.
externalNetworkId String
string → The ID of the external network that will be used for the cluster.
flavor String
string → The ID of flavor for the nodes of the cluster.
floatingIpEnabled Boolean
boolean → Indicates whether created cluster should create IP floating IP for every node or not.
id String
image String
string → The reference to an image that is used for nodes of the cluster.
insecureRegistry String
string → The insecure registry URL for the cluster template.
keypairId String
string → The name of the Compute service SSH keypair.
labels Map<String,String>
map of string → The list of key value pairs representing additional properties of the cluster template.
masterFlavor String
string → The ID of flavor for the master nodes.
masterLbEnabled Boolean
boolean → Indicates whether created cluster should has a loadbalancer for master nodes or not.
name String
networkDriver String
string → The name of the driver for the container network.
noProxy String
string → A comma-separated list of IP addresses that shouldn't be used in the cluster.
projectId String
string → The project of the cluster template.
public_ Boolean
boolean → Indicates whether cluster template should be public.
region String
registryEnabled Boolean
boolean → Indicates whether Docker registry is enabled in the cluster.
serverType String
string → The server type for the cluster template.
tlsDisabled Boolean
boolean → Indicates whether the TLS should be disabled in the cluster.
updatedAt String
string → The time at which cluster template was updated.
userId String
string → The user of the cluster template.
version String
volumeDriver String
string → The name of the driver that is used for the volumes of the cluster nodes.
apiserverPort number
number → The API server port for the Container Orchestration Engine for this cluster template.
clusterDistro string
string → The distro for the cluster (fedora-atomic, coreos, etc.).
clusterTemplateUuid string

Deprecated: Deprecated

createdAt string
string → The time at which cluster template was created.
deprecatedAt string
string → The time at which the cluster template is deprecated.
dnsNameserver string
string → Address of the DNS nameserver that is used in nodes of the cluster.
dockerStorageDriver string
string → Docker storage driver. Changing this updates the Docker storage driver of the existing cluster template.
dockerVolumeSize number
number → The size (in GB) of the Docker volume.
externalNetworkId string
string → The ID of the external network that will be used for the cluster.
flavor string
string → The ID of flavor for the nodes of the cluster.
floatingIpEnabled boolean
boolean → Indicates whether created cluster should create IP floating IP for every node or not.
id string
image string
string → The reference to an image that is used for nodes of the cluster.
insecureRegistry string
string → The insecure registry URL for the cluster template.
keypairId string
string → The name of the Compute service SSH keypair.
labels {[key: string]: string}
map of string → The list of key value pairs representing additional properties of the cluster template.
masterFlavor string
string → The ID of flavor for the master nodes.
masterLbEnabled boolean
boolean → Indicates whether created cluster should has a loadbalancer for master nodes or not.
name string
networkDriver string
string → The name of the driver for the container network.
noProxy string
string → A comma-separated list of IP addresses that shouldn't be used in the cluster.
projectId string
string → The project of the cluster template.
public boolean
boolean → Indicates whether cluster template should be public.
region string
registryEnabled boolean
boolean → Indicates whether Docker registry is enabled in the cluster.
serverType string
string → The server type for the cluster template.
tlsDisabled boolean
boolean → Indicates whether the TLS should be disabled in the cluster.
updatedAt string
string → The time at which cluster template was updated.
userId string
string → The user of the cluster template.
version string
volumeDriver string
string → The name of the driver that is used for the volumes of the cluster nodes.
apiserver_port float
number → The API server port for the Container Orchestration Engine for this cluster template.
cluster_distro str
string → The distro for the cluster (fedora-atomic, coreos, etc.).
cluster_template_uuid str

Deprecated: Deprecated

created_at str
string → The time at which cluster template was created.
deprecated_at str
string → The time at which the cluster template is deprecated.
dns_nameserver str
string → Address of the DNS nameserver that is used in nodes of the cluster.
docker_storage_driver str
string → Docker storage driver. Changing this updates the Docker storage driver of the existing cluster template.
docker_volume_size float
number → The size (in GB) of the Docker volume.
external_network_id str
string → The ID of the external network that will be used for the cluster.
flavor str
string → The ID of flavor for the nodes of the cluster.
floating_ip_enabled bool
boolean → Indicates whether created cluster should create IP floating IP for every node or not.
id str
image str
string → The reference to an image that is used for nodes of the cluster.
insecure_registry str
string → The insecure registry URL for the cluster template.
keypair_id str
string → The name of the Compute service SSH keypair.
labels Mapping[str, str]
map of string → The list of key value pairs representing additional properties of the cluster template.
master_flavor str
string → The ID of flavor for the master nodes.
master_lb_enabled bool
boolean → Indicates whether created cluster should has a loadbalancer for master nodes or not.
name str
network_driver str
string → The name of the driver for the container network.
no_proxy str
string → A comma-separated list of IP addresses that shouldn't be used in the cluster.
project_id str
string → The project of the cluster template.
public bool
boolean → Indicates whether cluster template should be public.
region str
registry_enabled bool
boolean → Indicates whether Docker registry is enabled in the cluster.
server_type str
string → The server type for the cluster template.
tls_disabled bool
boolean → Indicates whether the TLS should be disabled in the cluster.
updated_at str
string → The time at which cluster template was updated.
user_id str
string → The user of the cluster template.
version str
volume_driver str
string → The name of the driver that is used for the volumes of the cluster nodes.
apiserverPort Number
number → The API server port for the Container Orchestration Engine for this cluster template.
clusterDistro String
string → The distro for the cluster (fedora-atomic, coreos, etc.).
clusterTemplateUuid String

Deprecated: Deprecated

createdAt String
string → The time at which cluster template was created.
deprecatedAt String
string → The time at which the cluster template is deprecated.
dnsNameserver String
string → Address of the DNS nameserver that is used in nodes of the cluster.
dockerStorageDriver String
string → Docker storage driver. Changing this updates the Docker storage driver of the existing cluster template.
dockerVolumeSize Number
number → The size (in GB) of the Docker volume.
externalNetworkId String
string → The ID of the external network that will be used for the cluster.
flavor String
string → The ID of flavor for the nodes of the cluster.
floatingIpEnabled Boolean
boolean → Indicates whether created cluster should create IP floating IP for every node or not.
id String
image String
string → The reference to an image that is used for nodes of the cluster.
insecureRegistry String
string → The insecure registry URL for the cluster template.
keypairId String
string → The name of the Compute service SSH keypair.
labels Map<String>
map of string → The list of key value pairs representing additional properties of the cluster template.
masterFlavor String
string → The ID of flavor for the master nodes.
masterLbEnabled Boolean
boolean → Indicates whether created cluster should has a loadbalancer for master nodes or not.
name String
networkDriver String
string → The name of the driver for the container network.
noProxy String
string → A comma-separated list of IP addresses that shouldn't be used in the cluster.
projectId String
string → The project of the cluster template.
public Boolean
boolean → Indicates whether cluster template should be public.
region String
registryEnabled Boolean
boolean → Indicates whether Docker registry is enabled in the cluster.
serverType String
string → The server type for the cluster template.
tlsDisabled Boolean
boolean → Indicates whether the TLS should be disabled in the cluster.
updatedAt String
string → The time at which cluster template was updated.
userId String
string → The user of the cluster template.
version String
volumeDriver String
string → The name of the driver that is used for the volumes of the cluster nodes.

Package Details

Repository
vkcs vk-cs/terraform-provider-vkcs
License
Notes
This Pulumi package is based on the vkcs Terraform Provider.