Show / Hide Table of Contents

Class GetKeypair

Inheritance
System.Object
GetKeypair
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 GetKeypair

Methods

View Source

InvokeAsync(GetKeypairArgs, InvokeOptions)

Use this data source to get the ID and public key of an OpenStack keypair.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using OpenStack = Pulumi.OpenStack;

class MyStack : Stack
{
public MyStack()
{
    var kp = Output.Create(OpenStack.Compute.GetKeypair.InvokeAsync(new OpenStack.Compute.GetKeypairArgs
    {
        Name = "sand",
    }));
}

}

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

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