GetAclToken
The consul..AclToken data source returns the information related to the
consul..AclToken resource with the exception of its secret ID.
If you want to get the secret ID associated with a token, use the
consul..getAclTokenSecretId data source.
Example Usage
using Pulumi;
using Consul = Pulumi.Consul;
class MyStack : Stack
{
public MyStack()
{
var test = Output.Create(Consul.GetAclToken.InvokeAsync(new Consul.GetAclTokenArgs
{
AccessorId = "00000000-0000-0000-0000-000000000002",
}));
this.ConsulAclPolicies = test.Apply(test => test.Policies);
}
[Output("consulAclPolicies")]
public Output<string> ConsulAclPolicies { get; set; }
}
Coming soon!
import pulumi
import pulumi_consul as consul
test = consul.get_acl_token(accessor_id="00000000-0000-0000-0000-000000000002")
pulumi.export("consulAclPolicies", test.policies)import * as pulumi from "@pulumi/pulumi";
import * as consul from "@pulumi/consul";
const test = pulumi.output(consul.getAclToken({
accessorId: "00000000-0000-0000-0000-000000000002",
}, { async: true }));
export const consulAclPolicies = test.policies!;Using GetAclToken
function getAclToken(args: GetAclTokenArgs, opts?: InvokeOptions): Promise<GetAclTokenResult>function get_acl_token(accessor_id=None, description=None, local=None, namespace=None, policies=None, opts=None)func LookupAclToken(ctx *Context, args *LookupAclTokenArgs, opts ...InvokeOption) (*LookupAclTokenResult, error)Note: This function is named
LookupAclTokenin the Go SDK.
public static class GetAclToken {
public static Task<GetAclTokenResult> InvokeAsync(GetAclTokenArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Accessor
Id string The accessor ID of the ACL token.
- Description string
The description of the ACL token.
- Local bool
Whether the ACL token is local to the datacenter it was created within.
- Namespace string
The namespace to lookup the ACL token.
- Policies
List<Get
Acl Token Policy Args> A list of policies associated with the ACL token. Each entry has an
idand anameattribute.
- Accessor
Id string The accessor ID of the ACL token.
- Description string
The description of the ACL token.
- Local bool
Whether the ACL token is local to the datacenter it was created within.
- Namespace string
The namespace to lookup the ACL token.
- Policies
[]Get
Acl Token Policy A list of policies associated with the ACL token. Each entry has an
idand anameattribute.
- accessor
Id string The accessor ID of the ACL token.
- description string
The description of the ACL token.
- local boolean
Whether the ACL token is local to the datacenter it was created within.
- namespace string
The namespace to lookup the ACL token.
- policies
Get
Acl Token Policy[] A list of policies associated with the ACL token. Each entry has an
idand anameattribute.
- accessor_
id str The accessor ID of the ACL token.
- description str
The description of the ACL token.
- local bool
Whether the ACL token is local to the datacenter it was created within.
- namespace str
The namespace to lookup the ACL token.
- policies
List[Get
Acl Token Policy] A list of policies associated with the ACL token. Each entry has an
idand anameattribute.
GetAclToken Result
The following output properties are available:
- Accessor
Id string - Id string
The provider-assigned unique ID for this managed resource.
- Description string
The description of the ACL token.
- Local bool
Whether the ACL token is local to the datacenter it was created within.
- Namespace string
- Policies
List<Get
Acl Token Policy> A list of policies associated with the ACL token. Each entry has an
idand anameattribute.
- Accessor
Id string - Id string
The provider-assigned unique ID for this managed resource.
- Description string
The description of the ACL token.
- Local bool
Whether the ACL token is local to the datacenter it was created within.
- Namespace string
- Policies
[]Get
Acl Token Policy A list of policies associated with the ACL token. Each entry has an
idand anameattribute.
- accessor
Id string - id string
The provider-assigned unique ID for this managed resource.
- description string
The description of the ACL token.
- local boolean
Whether the ACL token is local to the datacenter it was created within.
- namespace string
- policies
Get
Acl Token Policy[] A list of policies associated with the ACL token. Each entry has an
idand anameattribute.
- accessor_
id str - id str
The provider-assigned unique ID for this managed resource.
- description str
The description of the ACL token.
- local bool
Whether the ACL token is local to the datacenter it was created within.
- namespace str
- policies
List[Get
Acl Token Policy] A list of policies associated with the ACL token. Each entry has an
idand anameattribute.
Supporting Types
GetAclTokenPolicy
Package Details
- Repository
- https://github.com/pulumi/pulumi-consul
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
consulTerraform Provider.