Show / Hide Table of Contents

Class GetAutopilotHealth

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

Methods

View Source

InvokeAsync(GetAutopilotHealthArgs, InvokeOptions)

The consul..getAutopilotHealth data source returns autopilot health information about the current Consul cluster.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Consul = Pulumi.Consul;

class MyStack : Stack
{
public MyStack()
{
    var read = Output.Create(Consul.GetAutopilotHealth.InvokeAsync());
    this.Health = read.Apply(read => read.Healthy);
}

[Output("health")]
public Output<string> Health { get; set; }
}

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

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