Show / Hide Table of Contents

Class GetImage

Inheritance
System.Object
GetImage
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.OpenStack.Images
Assembly: Pulumi.OpenStack.dll
Syntax
public static class GetImage

Methods

View Source

InvokeAsync(GetImageArgs, InvokeOptions)

Use this data source to get the ID of an available OpenStack image.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using OpenStack = Pulumi.OpenStack;

class MyStack : Stack
{
public MyStack()
{
    var ubuntu = Output.Create(OpenStack.Images.GetImage.InvokeAsync(new OpenStack.Images.GetImageArgs
    {
        MostRecent = true,
        Name = "Ubuntu 16.04",
        Properties = 
        {
            { "key", "value" },
        },
    }));
}

}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetImageResult> InvokeAsync(GetImageArgs args = null, InvokeOptions options = null)
Parameters
Type Name Description
GetImageArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetImageResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.