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 SourceInvokeAsync(InvokeOptions)
Note: The
consul..getAgentConfigresource differs fromconsul..getAgentSelf, providing less information but utilizing stable APIs.consul..getAgentSelfwill 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> |