Linode

Pulumi Official
Package maintained by Pulumi
v3.10.0 published on Tuesday, Aug 16, 2022 by Pulumi

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 System.Collections.Generic;
using Pulumi;
using Linode = Pulumi.Linode;

return await Deployment.RunAsync(() => 
{
    var latest = Linode.GetKernel.Invoke(new()
    {
        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
	})
}
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());

    }
}
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",
}));
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 dictionary

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 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
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 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
architecture String
deprecated Boolean
id String
kvm Boolean
label String
pvops Boolean
version String
xen Boolean

Package Details

Repository
https://github.com/pulumi/pulumi-linode
License
Apache-2.0
Notes

This Pulumi package is based on the linode Terraform Provider.