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",
});
import pulumi
import pulumi_vkcs as vkcs
k8s31 = vkcs.get_kubernetes_clustertemplate(version="1.31")
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
})
}
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",
});
});
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());
}
}
variables:
k8s31:
fn::invoke:
function: vkcs:getKubernetesClustertemplate
arguments:
version: '1.31'
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>
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]
func GetKubernetesClustertemplate(ctx *Context, args *GetKubernetesClustertemplateArgs, opts ...InvokeOption) (*GetKubernetesClustertemplateResult, error)
func GetKubernetesClustertemplateOutput(ctx *Context, args *GetKubernetesClustertemplateOutputArgs, opts ...InvokeOption) GetKubernetesClustertemplateResultOutput
> 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)
}
public static CompletableFuture<GetKubernetesClustertemplateResult> getKubernetesClustertemplate(GetKubernetesClustertemplateArgs args, InvokeOptions options)
public static Output<GetKubernetesClustertemplateResult> getKubernetesClustertemplate(GetKubernetesClustertemplateArgs args, InvokeOptions options)
fn::invoke:
function: vkcs:index/getKubernetesClustertemplate:getKubernetesClustertemplate
arguments:
# arguments dictionary
The following arguments are supported:
- Cluster
Template stringUuid - optional deprecated string → The UUID of the cluster template. Note: Only one of
name
,version
, orcluster_template_uuid
must be specified. Deprecated This argument is deprecated, please, use theid
attribute instead. - Id string
- optional string → The UUID of the cluster template. Note: Only one of
name
,version
orid
must be specified. - Name string
- optional string → The name of the cluster template. Note: Only one of
name
,version
orid
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
orid
must be specified.
- Cluster
Template stringUuid - optional deprecated string → The UUID of the cluster template. Note: Only one of
name
,version
, orcluster_template_uuid
must be specified. Deprecated This argument is deprecated, please, use theid
attribute instead. - Id string
- optional string → The UUID of the cluster template. Note: Only one of
name
,version
orid
must be specified. - Name string
- optional string → The name of the cluster template. Note: Only one of
name
,version
orid
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
orid
must be specified.
- cluster
Template StringUuid - optional deprecated string → The UUID of the cluster template. Note: Only one of
name
,version
, orcluster_template_uuid
must be specified. Deprecated This argument is deprecated, please, use theid
attribute instead. - id String
- optional string → The UUID of the cluster template. Note: Only one of
name
,version
orid
must be specified. - name String
- optional string → The name of the cluster template. Note: Only one of
name
,version
orid
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
orid
must be specified.
- cluster
Template stringUuid - optional deprecated string → The UUID of the cluster template. Note: Only one of
name
,version
, orcluster_template_uuid
must be specified. Deprecated This argument is deprecated, please, use theid
attribute instead. - id string
- optional string → The UUID of the cluster template. Note: Only one of
name
,version
orid
must be specified. - name string
- optional string → The name of the cluster template. Note: Only one of
name
,version
orid
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
orid
must be specified.
- cluster_
template_ struuid - optional deprecated string → The UUID of the cluster template. Note: Only one of
name
,version
, orcluster_template_uuid
must be specified. Deprecated This argument is deprecated, please, use theid
attribute instead. - id str
- optional string → The UUID of the cluster template. Note: Only one of
name
,version
orid
must be specified. - name str
- optional string → The name of the cluster template. Note: Only one of
name
,version
orid
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
orid
must be specified.
- cluster
Template StringUuid - optional deprecated string → The UUID of the cluster template. Note: Only one of
name
,version
, orcluster_template_uuid
must be specified. Deprecated This argument is deprecated, please, use theid
attribute instead. - id String
- optional string → The UUID of the cluster template. Note: Only one of
name
,version
orid
must be specified. - name String
- optional string → The name of the cluster template. Note: Only one of
name
,version
orid
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
orid
must be specified.
getKubernetesClustertemplate Result
The following output properties are available:
- Apiserver
Port double - number → The API server port for the Container Orchestration Engine for this cluster template.
- Cluster
Distro string - string → The distro for the cluster (fedora-atomic, coreos, etc.).
- Cluster
Template stringUuid - Created
At string - string → The time at which cluster template was created.
- Deprecated
At string - string → The time at which the cluster template is deprecated.
- Dns
Nameserver string - string → Address of the DNS nameserver that is used in nodes of the cluster.
- Docker
Storage stringDriver - string → Docker storage driver. Changing this updates the Docker storage driver of the existing cluster template.
- Docker
Volume doubleSize - number → The size (in GB) of the Docker volume.
- External
Network stringId - 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.
- Floating
Ip boolEnabled - 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.
- Insecure
Registry string - string → The insecure registry URL for the cluster template.
- Keypair
Id 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.
- Master
Flavor string - string → The ID of flavor for the master nodes.
- Master
Lb boolEnabled - boolean → Indicates whether created cluster should has a loadbalancer for master nodes or not.
- Name string
- Network
Driver string - string → The name of the driver for the container network.
- No
Proxy string - string → A comma-separated list of IP addresses that shouldn't be used in the cluster.
- Project
Id string - string → The project of the cluster template.
- Public bool
- boolean → Indicates whether cluster template should be public.
- Region string
- Registry
Enabled bool - boolean → Indicates whether Docker registry is enabled in the cluster.
- Server
Type string - string → The server type for the cluster template.
- Tls
Disabled bool - boolean → Indicates whether the TLS should be disabled in the cluster.
- Updated
At string - string → The time at which cluster template was updated.
- User
Id string - string → The user of the cluster template.
- Version string
- Volume
Driver string - string → The name of the driver that is used for the volumes of the cluster nodes.
- Apiserver
Port float64 - number → The API server port for the Container Orchestration Engine for this cluster template.
- Cluster
Distro string - string → The distro for the cluster (fedora-atomic, coreos, etc.).
- Cluster
Template stringUuid - Created
At string - string → The time at which cluster template was created.
- Deprecated
At string - string → The time at which the cluster template is deprecated.
- Dns
Nameserver string - string → Address of the DNS nameserver that is used in nodes of the cluster.
- Docker
Storage stringDriver - string → Docker storage driver. Changing this updates the Docker storage driver of the existing cluster template.
- Docker
Volume float64Size - number → The size (in GB) of the Docker volume.
- External
Network stringId - 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.
- Floating
Ip boolEnabled - 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.
- Insecure
Registry string - string → The insecure registry URL for the cluster template.
- Keypair
Id 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.
- Master
Flavor string - string → The ID of flavor for the master nodes.
- Master
Lb boolEnabled - boolean → Indicates whether created cluster should has a loadbalancer for master nodes or not.
- Name string
- Network
Driver string - string → The name of the driver for the container network.
- No
Proxy string - string → A comma-separated list of IP addresses that shouldn't be used in the cluster.
- Project
Id string - string → The project of the cluster template.
- Public bool
- boolean → Indicates whether cluster template should be public.
- Region string
- Registry
Enabled bool - boolean → Indicates whether Docker registry is enabled in the cluster.
- Server
Type string - string → The server type for the cluster template.
- Tls
Disabled bool - boolean → Indicates whether the TLS should be disabled in the cluster.
- Updated
At string - string → The time at which cluster template was updated.
- User
Id string - string → The user of the cluster template.
- Version string
- Volume
Driver string - string → The name of the driver that is used for the volumes of the cluster nodes.
- apiserver
Port Double - number → The API server port for the Container Orchestration Engine for this cluster template.
- cluster
Distro String - string → The distro for the cluster (fedora-atomic, coreos, etc.).
- cluster
Template StringUuid - created
At String - string → The time at which cluster template was created.
- deprecated
At String - string → The time at which the cluster template is deprecated.
- dns
Nameserver String - string → Address of the DNS nameserver that is used in nodes of the cluster.
- docker
Storage StringDriver - string → Docker storage driver. Changing this updates the Docker storage driver of the existing cluster template.
- docker
Volume DoubleSize - number → The size (in GB) of the Docker volume.
- external
Network StringId - 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.
- floating
Ip BooleanEnabled - 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.
- insecure
Registry String - string → The insecure registry URL for the cluster template.
- keypair
Id 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.
- master
Flavor String - string → The ID of flavor for the master nodes.
- master
Lb BooleanEnabled - boolean → Indicates whether created cluster should has a loadbalancer for master nodes or not.
- name String
- network
Driver String - string → The name of the driver for the container network.
- no
Proxy String - string → A comma-separated list of IP addresses that shouldn't be used in the cluster.
- project
Id String - string → The project of the cluster template.
- public_ Boolean
- boolean → Indicates whether cluster template should be public.
- region String
- registry
Enabled Boolean - boolean → Indicates whether Docker registry is enabled in the cluster.
- server
Type String - string → The server type for the cluster template.
- tls
Disabled Boolean - boolean → Indicates whether the TLS should be disabled in the cluster.
- updated
At String - string → The time at which cluster template was updated.
- user
Id String - string → The user of the cluster template.
- version String
- volume
Driver String - string → The name of the driver that is used for the volumes of the cluster nodes.
- apiserver
Port number - number → The API server port for the Container Orchestration Engine for this cluster template.
- cluster
Distro string - string → The distro for the cluster (fedora-atomic, coreos, etc.).
- cluster
Template stringUuid - created
At string - string → The time at which cluster template was created.
- deprecated
At string - string → The time at which the cluster template is deprecated.
- dns
Nameserver string - string → Address of the DNS nameserver that is used in nodes of the cluster.
- docker
Storage stringDriver - string → Docker storage driver. Changing this updates the Docker storage driver of the existing cluster template.
- docker
Volume numberSize - number → The size (in GB) of the Docker volume.
- external
Network stringId - 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.
- floating
Ip booleanEnabled - 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.
- insecure
Registry string - string → The insecure registry URL for the cluster template.
- keypair
Id 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.
- master
Flavor string - string → The ID of flavor for the master nodes.
- master
Lb booleanEnabled - boolean → Indicates whether created cluster should has a loadbalancer for master nodes or not.
- name string
- network
Driver string - string → The name of the driver for the container network.
- no
Proxy string - string → A comma-separated list of IP addresses that shouldn't be used in the cluster.
- project
Id string - string → The project of the cluster template.
- public boolean
- boolean → Indicates whether cluster template should be public.
- region string
- registry
Enabled boolean - boolean → Indicates whether Docker registry is enabled in the cluster.
- server
Type string - string → The server type for the cluster template.
- tls
Disabled boolean - boolean → Indicates whether the TLS should be disabled in the cluster.
- updated
At string - string → The time at which cluster template was updated.
- user
Id string - string → The user of the cluster template.
- version string
- volume
Driver 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_ struuid - 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_ strdriver - string → Docker storage driver. Changing this updates the Docker storage driver of the existing cluster template.
- docker_
volume_ floatsize - number → The size (in GB) of the Docker volume.
- external_
network_ strid - 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_ boolenabled - 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_ boolenabled - 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.
- apiserver
Port Number - number → The API server port for the Container Orchestration Engine for this cluster template.
- cluster
Distro String - string → The distro for the cluster (fedora-atomic, coreos, etc.).
- cluster
Template StringUuid - created
At String - string → The time at which cluster template was created.
- deprecated
At String - string → The time at which the cluster template is deprecated.
- dns
Nameserver String - string → Address of the DNS nameserver that is used in nodes of the cluster.
- docker
Storage StringDriver - string → Docker storage driver. Changing this updates the Docker storage driver of the existing cluster template.
- docker
Volume NumberSize - number → The size (in GB) of the Docker volume.
- external
Network StringId - 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.
- floating
Ip BooleanEnabled - 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.
- insecure
Registry String - string → The insecure registry URL for the cluster template.
- keypair
Id 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.
- master
Flavor String - string → The ID of flavor for the master nodes.
- master
Lb BooleanEnabled - boolean → Indicates whether created cluster should has a loadbalancer for master nodes or not.
- name String
- network
Driver String - string → The name of the driver for the container network.
- no
Proxy String - string → A comma-separated list of IP addresses that shouldn't be used in the cluster.
- project
Id String - string → The project of the cluster template.
- public Boolean
- boolean → Indicates whether cluster template should be public.
- region String
- registry
Enabled Boolean - boolean → Indicates whether Docker registry is enabled in the cluster.
- server
Type String - string → The server type for the cluster template.
- tls
Disabled Boolean - boolean → Indicates whether the TLS should be disabled in the cluster.
- updated
At String - string → The time at which cluster template was updated.
- user
Id String - string → The user of the cluster template.
- version String
- volume
Driver 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.