Linode
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: 2500status
- The current status of this image. (creating
,pending_upload
,available
)type
- How the Image was created. Manual Images can be created at any time. “Automatic” Images are created automatically from a deleted Linode. (manual
,automatic
)vendor
- The upstream distribution vendor.None
for 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",
}));
}
}
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.LookupImage(ctx, &GetImageArgs{
Id: "linode/debian8",
}, nil)
if err != nil {
return err
}
return nil
})
}
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",
}));
Coming soon!
Using getImage
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 getImage(args: GetImageArgs, opts?: InvokeOptions): Promise<GetImageResult>
function getImageOutput(args: GetImageOutputArgs, opts?: InvokeOptions): Output<GetImageResult>
def get_image(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetImageResult
def get_image_output(id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetImageResult]
func LookupImage(ctx *Context, args *LookupImageArgs, opts ...InvokeOption) (*LookupImageResult, error)
func LookupImageOutput(ctx *Context, args *LookupImageOutputArgs, opts ...InvokeOption) LookupImageResultOutput
> Note: This function is named LookupImage
in the Go SDK.
public static class GetImage
{
public static Task<GetImageResult> InvokeAsync(GetImageArgs args, InvokeOptions? opts = null)
public static Output<GetImageResult> Invoke(GetImageInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetImageResult> getImage(GetImageArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: linode:index/getImage:getImage
Arguments:
# Arguments dictionary
The following arguments are supported:
- Id string
The unique ID of this Image. The ID of private images begin with
private/
followed by the numeric identifier of the private image, for exampleprivate/12345
.
- Id string
The unique ID of this Image. The ID of private images begin with
private/
followed by the numeric identifier of the private image, for exampleprivate/12345
.
- id String
The unique ID of this Image. The ID of private images begin with
private/
followed by the numeric identifier of the private image, for exampleprivate/12345
.
- id string
The unique ID of this Image. The ID of private images begin with
private/
followed by the numeric identifier of the private image, for exampleprivate/12345
.
- id str
The unique ID of this Image. The ID of private images begin with
private/
followed by the numeric identifier of the private image, for exampleprivate/12345
.
- id String
The unique ID of this Image. The ID of private images begin with
private/
followed by the numeric identifier of the private image, for exampleprivate/12345
.
getImage Result
The following output properties are available:
- created str
- created_
by str - deprecated bool
- description str
- expiry str
- id str
- is_
public bool - label str
- size int
- status str
- type str
- vendor str
Package Details
- Repository
- https://github.com/pulumi/pulumi-linode
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
linode
Terraform Provider.