Linode v4.22.0 published on Tuesday, Jun 25, 2024 by Pulumi
linode.getKernel
Explore with Pulumi AI
Provides information about a Linode kernel
Example Usage
The following example shows how one might use this data source to access information about a Linode kernel.
import * as pulumi from "@pulumi/pulumi";
import * as linode from "@pulumi/linode";
const latest = linode.getKernel({
    id: "linode/latest-64bit",
});
import pulumi
import pulumi_linode as linode
latest = linode.get_kernel(id="linode/latest-64bit")
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.GetKernel(ctx, &linode.GetKernelArgs{
			Id: "linode/latest-64bit",
		}, 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 latest = Linode.GetKernel.Invoke(new()
    {
        Id = "linode/latest-64bit",
    });
});
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.GetKernelArgs;
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 latest = LinodeFunctions.getKernel(GetKernelArgs.builder()
            .id("linode/latest-64bit")
            .build());
    }
}
variables:
  latest:
    fn::invoke:
      Function: linode:getKernel
      Arguments:
        id: linode/latest-64bit
Using getKernel
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 getKernel(args: GetKernelArgs, opts?: InvokeOptions): Promise<GetKernelResult>
function getKernelOutput(args: GetKernelOutputArgs, opts?: InvokeOptions): Output<GetKernelResult>def get_kernel(id: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetKernelResult
def get_kernel_output(id: Optional[pulumi.Input[str]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[GetKernelResult]func GetKernel(ctx *Context, args *GetKernelArgs, opts ...InvokeOption) (*GetKernelResult, error)
func GetKernelOutput(ctx *Context, args *GetKernelOutputArgs, opts ...InvokeOption) GetKernelResultOutput> Note: This function is named GetKernel in the Go SDK.
public static class GetKernel 
{
    public static Task<GetKernelResult> InvokeAsync(GetKernelArgs args, InvokeOptions? opts = null)
    public static Output<GetKernelResult> Invoke(GetKernelInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetKernelResult> getKernel(GetKernelArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: linode:index/getKernel:getKernel
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Id string
 - The unique ID of this Kernel.
 
- Id string
 - The unique ID of this Kernel.
 
- id String
 - The unique ID of this Kernel.
 
- id string
 - The unique ID of this Kernel.
 
- id str
 - The unique ID of this Kernel.
 
- id String
 - The unique ID of this Kernel.
 
getKernel Result
The following output properties are available:
- Architecture string
 - The architecture of this Kernel.
 - Built string
 - Deprecated bool
 - Whether or not this Kernel is deprecated.
 - Id string
 - Kvm bool
 - If this Kernel is suitable for KVM Linodes.
 - Label string
 - The friendly name of this Kernel.
 - Pvops bool
 - If this Kernel is suitable for paravirtualized operations.
 - Version string
 - Linux Kernel version
 - Xen bool
 - If this Kernel is suitable for Xen Linodes.
 
- Architecture string
 - The architecture of this Kernel.
 - Built string
 - Deprecated bool
 - Whether or not this Kernel is deprecated.
 - Id string
 - Kvm bool
 - If this Kernel is suitable for KVM Linodes.
 - Label string
 - The friendly name of this Kernel.
 - Pvops bool
 - If this Kernel is suitable for paravirtualized operations.
 - Version string
 - Linux Kernel version
 - Xen bool
 - If this Kernel is suitable for Xen Linodes.
 
- architecture String
 - The architecture of this Kernel.
 - built String
 - deprecated Boolean
 - Whether or not this Kernel is deprecated.
 - id String
 - kvm Boolean
 - If this Kernel is suitable for KVM Linodes.
 - label String
 - The friendly name of this Kernel.
 - pvops Boolean
 - If this Kernel is suitable for paravirtualized operations.
 - version String
 - Linux Kernel version
 - xen Boolean
 - If this Kernel is suitable for Xen Linodes.
 
- architecture string
 - The architecture of this Kernel.
 - built string
 - deprecated boolean
 - Whether or not this Kernel is deprecated.
 - id string
 - kvm boolean
 - If this Kernel is suitable for KVM Linodes.
 - label string
 - The friendly name of this Kernel.
 - pvops boolean
 - If this Kernel is suitable for paravirtualized operations.
 - version string
 - Linux Kernel version
 - xen boolean
 - If this Kernel is suitable for Xen Linodes.
 
- architecture str
 - The architecture of this Kernel.
 - built str
 - deprecated bool
 - Whether or not this Kernel is deprecated.
 - id str
 - kvm bool
 - If this Kernel is suitable for KVM Linodes.
 - label str
 - The friendly name of this Kernel.
 - pvops bool
 - If this Kernel is suitable for paravirtualized operations.
 - version str
 - Linux Kernel version
 - xen bool
 - If this Kernel is suitable for Xen Linodes.
 
- architecture String
 - The architecture of this Kernel.
 - built String
 - deprecated Boolean
 - Whether or not this Kernel is deprecated.
 - id String
 - kvm Boolean
 - If this Kernel is suitable for KVM Linodes.
 - label String
 - The friendly name of this Kernel.
 - pvops Boolean
 - If this Kernel is suitable for paravirtualized operations.
 - version String
 - Linux Kernel version
 - xen Boolean
 - If this Kernel is suitable for Xen Linodes.
 
Package Details
- Repository
 - Linode pulumi/pulumi-linode
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
linodeTerraform Provider.