Class GetAclPolicy
Inheritance
System.Object
GetAclPolicy
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 GetAclPolicy
Methods
View SourceInvokeAsync(GetAclPolicyArgs, InvokeOptions)
The consul..AclPolicy data source returns the information related to a
Consul ACL Policy.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using Consul = Pulumi.Consul;
class MyStack : Stack
{
public MyStack()
{
var agent = Output.Create(Consul.GetAclPolicy.InvokeAsync(new Consul.GetAclPolicyArgs
{
Name = "agent",
}));
this.ConsulAclPolicy = agent.Apply(agent => agent.Rules);
}
[Output("consulAclPolicy")]
public Output<string> ConsulAclPolicy { get; set; }
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetAclPolicyResult> InvokeAsync(GetAclPolicyArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetAclPolicyArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetAclPolicyResult> |