Show / Hide Table of Contents

Class GetAgentConfig

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

Methods

View Source

InvokeAsync(InvokeOptions)

Note: The consul..getAgentConfig resource differs from consul..getAgentSelf, providing less information but utilizing stable APIs. consul..getAgentSelf will be deprecated in a future release.

The consul..getAgentConfig data source returns configuration data from the agent specified in the provider.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Consul = Pulumi.Consul;

class MyStack : Stack
{
public MyStack()
{
    var remoteAgent = Output.Create(Consul.GetAgentConfig.InvokeAsync());
    this.ConsulVersion = remoteAgent.Apply(remoteAgent => remoteAgent.Version);
}

[Output("consulVersion")]
public Output<string> ConsulVersion { get; set; }
}

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

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