Show / Hide Table of Contents

Class GetFlavor

Inheritance
System.Object
GetFlavor
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.Compute
Assembly: Pulumi.OpenStack.dll
Syntax
public static class GetFlavor

Methods

View Source

InvokeAsync(GetFlavorArgs, InvokeOptions)

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

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using OpenStack = Pulumi.OpenStack;

class MyStack : Stack
{
public MyStack()
{
    var small = Output.Create(OpenStack.Compute.GetFlavor.InvokeAsync(new OpenStack.Compute.GetFlavorArgs
    {
        Ram = 512,
        Vcpus = 1,
    }));
}

}

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

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