GetImage
Provides information about a Linode image
Attributes
The Linode Image resource exports the following attributes:
label- A short description of the Image.created- When this Image was created.created_by- The name of the User who created this Image, or “linode” for official Images.deprecated- Whether or not this Image is deprecated. Will only be true for deprecated public Images.description- A detailed description of this Image.is_public- True if the Image is public.size- The minimum size this Image needs to deploy. Size is in MB. example: 2500type- How the Image was created. Manual Images can be created at any time. image”Automatic” Images are created automatically from a deleted Linode.vendor- The upstream distribution vendor.Nonefor private Images.
Example Usage
using Pulumi;
using Linode = Pulumi.Linode;
class MyStack : Stack
{
public MyStack()
{
var k8Master = Output.Create(Linode.GetImage.InvokeAsync(new Linode.GetImageArgs
{
Id = "linode/debian8",
}));
}
}
Coming soon!
import pulumi
import pulumi_linode as linode
k8_master = linode.get_image(id="linode/debian8")import * as pulumi from "@pulumi/pulumi";
import * as linode from "@pulumi/linode";
const k8Master = pulumi.output(linode.getImage({
id: "linode/debian8",
}, { async: true }));Using GetImage
function getImage(args: GetImageArgs, opts?: InvokeOptions): Promise<GetImageResult>function get_image(id=None, opts=None)func LookupImage(ctx *Context, args *LookupImageArgs, opts ...InvokeOption) (*LookupImageResult, error)Note: This function is named
LookupImagein the Go SDK.
public static class GetImage {
public static Task<GetImageResult> InvokeAsync(GetImageArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
GetImage Result
The following output properties are available:
Package Details
- Repository
- https://github.com/pulumi/pulumi-linode
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
linodeTerraform Provider.