linode.getLkeVersion
Explore with Pulumi AI
Provides details about a specific Kubernetes versions available for deployment to a Kubernetes cluster. For more information, see the Linode APIv4 docs.
Example Usage
The following example shows how one might use this data source to access information about a Linode LKE Version.
import * as pulumi from "@pulumi/pulumi";
import * as linode from "@pulumi/linode";
const example = linode.getLkeVersion({
id: "1.31",
});
import pulumi
import pulumi_linode as linode
example = linode.get_lke_version(id="1.31")
package main
import (
"github.com/pulumi/pulumi-linode/sdk/v4/go/linode"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := linode.GetLkeVersion(ctx, &linode.GetLkeVersionArgs{
Id: "1.31",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Linode = Pulumi.Linode;
return await Deployment.RunAsync(() =>
{
var example = Linode.GetLkeVersion.Invoke(new()
{
Id = "1.31",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.linode.LinodeFunctions;
import com.pulumi.linode.inputs.GetLkeVersionArgs;
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 example = LinodeFunctions.getLkeVersion(GetLkeVersionArgs.builder()
.id("1.31")
.build());
}
}
variables:
example:
fn::invoke:
function: linode:getLkeVersion
arguments:
id: '1.31'
The following example shows how one might use this data source to access information about a Linode LKE Version
with additional information about the Linode LKE Version’s tier (enterprise
or standard
).
NOTE: This functionality may not be currently available to all users and can only be used with v4beta.
import * as pulumi from "@pulumi/pulumi";
import * as linode from "@pulumi/linode";
const example = linode.getLkeVersion({
id: "1.31",
tier: "standard",
});
import pulumi
import pulumi_linode as linode
example = linode.get_lke_version(id="1.31",
tier="standard")
package main
import (
"github.com/pulumi/pulumi-linode/sdk/v4/go/linode"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := linode.GetLkeVersion(ctx, &linode.GetLkeVersionArgs{
Id: "1.31",
Tier: pulumi.StringRef("standard"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Linode = Pulumi.Linode;
return await Deployment.RunAsync(() =>
{
var example = Linode.GetLkeVersion.Invoke(new()
{
Id = "1.31",
Tier = "standard",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.linode.LinodeFunctions;
import com.pulumi.linode.inputs.GetLkeVersionArgs;
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 example = LinodeFunctions.getLkeVersion(GetLkeVersionArgs.builder()
.id("1.31")
.tier("standard")
.build());
}
}
variables:
example:
fn::invoke:
function: linode:getLkeVersion
arguments:
id: '1.31'
tier: standard
Using getLkeVersion
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 getLkeVersion(args: GetLkeVersionArgs, opts?: InvokeOptions): Promise<GetLkeVersionResult>
function getLkeVersionOutput(args: GetLkeVersionOutputArgs, opts?: InvokeOptions): Output<GetLkeVersionResult>
def get_lke_version(id: Optional[str] = None,
tier: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLkeVersionResult
def get_lke_version_output(id: Optional[pulumi.Input[str]] = None,
tier: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLkeVersionResult]
func GetLkeVersion(ctx *Context, args *GetLkeVersionArgs, opts ...InvokeOption) (*GetLkeVersionResult, error)
func GetLkeVersionOutput(ctx *Context, args *GetLkeVersionOutputArgs, opts ...InvokeOption) GetLkeVersionResultOutput
> Note: This function is named GetLkeVersion
in the Go SDK.
public static class GetLkeVersion
{
public static Task<GetLkeVersionResult> InvokeAsync(GetLkeVersionArgs args, InvokeOptions? opts = null)
public static Output<GetLkeVersionResult> Invoke(GetLkeVersionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLkeVersionResult> getLkeVersion(GetLkeVersionArgs args, InvokeOptions options)
public static Output<GetLkeVersionResult> getLkeVersion(GetLkeVersionArgs args, InvokeOptions options)
fn::invoke:
function: linode:index/getLkeVersion:getLkeVersion
arguments:
# arguments dictionary
The following arguments are supported:
getLkeVersion Result
The following output properties are available:
Package Details
- Repository
- Linode pulumi/pulumi-linode
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
linode
Terraform Provider.