getKernel

Provides information about a Linode kernel

Attributes

The Linode Kernel resource exports the following attributes:

  • architecture - The architecture of this Kernel.

  • deprecated - Whether or not this Kernel is deprecated.

  • kvm - If this Kernel is suitable for KVM Linodes.

  • label - The friendly name of this Kernel.

  • pvops - If this Kernel is suitable for paravirtualized operations.

  • version - Linux Kernel version

  • xen - If this Kernel is suitable for Xen Linodes.

Example Usage

using Pulumi;
using Linode = Pulumi.Linode;

class MyStack : Stack
{
    public MyStack()
    {
        var latest = Output.Create(Linode.GetKernel.InvokeAsync(new Linode.GetKernelArgs
        {
            Id = "linode/latest-64bit",
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-linode/sdk/v3/go/linode"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := linode.GetKernel(ctx, &GetKernelArgs{
			Id: "linode/latest-64bit",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_linode as linode

latest = linode.get_kernel(id="linode/latest-64bit")
import * as pulumi from "@pulumi/pulumi";
import * as linode from "@pulumi/linode";

const latest = pulumi.output(linode.getKernel({
    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)
}

The 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 str
The unique ID of this Kernel.

getKernel Result

The following output properties are available:

Architecture string
Deprecated bool
Id string
Kvm bool
Label string
Pvops bool
Version string
Xen bool
Architecture string
Deprecated bool
Id string
Kvm bool
Label string
Pvops bool
Version string
Xen bool
architecture string
deprecated boolean
id string
kvm boolean
label string
pvops boolean
version string
xen boolean
architecture str
deprecated bool
id str
kvm bool
label str
pvops bool
version str
xen bool

Package Details

Repository
https://github.com/pulumi/pulumi-linode
License
Apache-2.0
Notes
This Pulumi package is based on the linode Terraform Provider.