Nomad v2.5.0 published on Thursday, Apr 17, 2025 by Pulumi
nomad.getAclToken
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as nomad from "@pulumi/nomad";
const myToken = nomad.getAclToken({
    accessorId: "aa534e09-6a07-0a45-2295-a7f77063d429",
});
import pulumi
import pulumi_nomad as nomad
my_token = nomad.get_acl_token(accessor_id="aa534e09-6a07-0a45-2295-a7f77063d429")
package main
import (
	"github.com/pulumi/pulumi-nomad/sdk/v2/go/nomad"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := nomad.LookupAclToken(ctx, &nomad.LookupAclTokenArgs{
			AccessorId: "aa534e09-6a07-0a45-2295-a7f77063d429",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nomad = Pulumi.Nomad;
return await Deployment.RunAsync(() => 
{
    var myToken = Nomad.GetAclToken.Invoke(new()
    {
        AccessorId = "aa534e09-6a07-0a45-2295-a7f77063d429",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nomad.NomadFunctions;
import com.pulumi.nomad.inputs.GetAclTokenArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var myToken = NomadFunctions.getAclToken(GetAclTokenArgs.builder()
            .accessorId("aa534e09-6a07-0a45-2295-a7f77063d429")
            .build());
    }
}
variables:
  myToken:
    fn::invoke:
      function: nomad:getAclToken
      arguments:
        accessorId: aa534e09-6a07-0a45-2295-a7f77063d429
Using getAclToken
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getAclToken(args: GetAclTokenArgs, opts?: InvokeOptions): Promise<GetAclTokenResult>
function getAclTokenOutput(args: GetAclTokenOutputArgs, opts?: InvokeOptions): Output<GetAclTokenResult>def get_acl_token(accessor_id: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetAclTokenResult
def get_acl_token_output(accessor_id: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetAclTokenResult]func LookupAclToken(ctx *Context, args *LookupAclTokenArgs, opts ...InvokeOption) (*LookupAclTokenResult, error)
func LookupAclTokenOutput(ctx *Context, args *LookupAclTokenOutputArgs, opts ...InvokeOption) LookupAclTokenResultOutput> Note: This function is named LookupAclToken in the Go SDK.
public static class GetAclToken 
{
    public static Task<GetAclTokenResult> InvokeAsync(GetAclTokenArgs args, InvokeOptions? opts = null)
    public static Output<GetAclTokenResult> Invoke(GetAclTokenInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAclTokenResult> getAclToken(GetAclTokenArgs args, InvokeOptions options)
public static Output<GetAclTokenResult> getAclToken(GetAclTokenArgs args, InvokeOptions options)
fn::invoke:
  function: nomad:index/getAclToken:getAclToken
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Accessor
Id string (string)Non-sensitive identifier for this token.
- Accessor
Id string (string)Non-sensitive identifier for this token.
- accessor
Id String (string)Non-sensitive identifier for this token.
- accessor
Id string (string)Non-sensitive identifier for this token.
- accessor_
id str (string)Non-sensitive identifier for this token.
- accessor
Id String (string)Non-sensitive identifier for this token.
getAclToken Result
The following output properties are available:
- Accessor
Id string (string)Non-sensitive identifier for this token.- Create
Time string (string)Date and time the token was created.- Expiration
Time string (string)- The timestamp after which the token is considered expired and eligible for destruction.- Expiration
Ttl string (string)The expiration TTL for the token.- Global bool
 (bool)Whether the token is replicated to all regions, or if it will only be used in the region it was created.- Id string
 - The provider-assigned unique ID for this managed resource.
 - Name string
 (string)Non-sensitive identifier for this token.- Policies List<string>
 (list of strings)List of policy names associated with this token.- Roles
List<Get
Acl Token Role>  (set: [])- The list of roles attached to the token. Each entry hasnameandidattributes.- Secret
Id string (string)The token value itself.- Type string
 (string)The type of the token.
- Accessor
Id string (string)Non-sensitive identifier for this token.- Create
Time string (string)Date and time the token was created.- Expiration
Time string (string)- The timestamp after which the token is considered expired and eligible for destruction.- Expiration
Ttl string (string)The expiration TTL for the token.- Global bool
 (bool)Whether the token is replicated to all regions, or if it will only be used in the region it was created.- Id string
 - The provider-assigned unique ID for this managed resource.
 - Name string
 (string)Non-sensitive identifier for this token.- Policies []string
 (list of strings)List of policy names associated with this token.- Roles
[]Get
Acl Token Role  (set: [])- The list of roles attached to the token. Each entry hasnameandidattributes.- Secret
Id string (string)The token value itself.- Type string
 (string)The type of the token.
- accessor
Id String (string)Non-sensitive identifier for this token.- create
Time String (string)Date and time the token was created.- expiration
Time String (string)- The timestamp after which the token is considered expired and eligible for destruction.- expiration
Ttl String (string)The expiration TTL for the token.- global Boolean
 (bool)Whether the token is replicated to all regions, or if it will only be used in the region it was created.- id String
 - The provider-assigned unique ID for this managed resource.
 - name String
 (string)Non-sensitive identifier for this token.- policies List<String>
 (list of strings)List of policy names associated with this token.- roles
List<Get
Acl Token Role>  (set: [])- The list of roles attached to the token. Each entry hasnameandidattributes.- secret
Id String (string)The token value itself.- type String
 (string)The type of the token.
- accessor
Id string (string)Non-sensitive identifier for this token.- create
Time string (string)Date and time the token was created.- expiration
Time string (string)- The timestamp after which the token is considered expired and eligible for destruction.- expiration
Ttl string (string)The expiration TTL for the token.- global boolean
 (bool)Whether the token is replicated to all regions, or if it will only be used in the region it was created.- id string
 - The provider-assigned unique ID for this managed resource.
 - name string
 (string)Non-sensitive identifier for this token.- policies string[]
 (list of strings)List of policy names associated with this token.- roles
Get
Acl Token Role[]  (set: [])- The list of roles attached to the token. Each entry hasnameandidattributes.- secret
Id string (string)The token value itself.- type string
 (string)The type of the token.
- accessor_
id str (string)Non-sensitive identifier for this token.- create_
time str (string)Date and time the token was created.- expiration_
time str (string)- The timestamp after which the token is considered expired and eligible for destruction.- expiration_
ttl str (string)The expiration TTL for the token.- global_ bool
 (bool)Whether the token is replicated to all regions, or if it will only be used in the region it was created.- id str
 - The provider-assigned unique ID for this managed resource.
 - name str
 (string)Non-sensitive identifier for this token.- policies Sequence[str]
 (list of strings)List of policy names associated with this token.- roles
Sequence[Get
Acl Token Role]  (set: [])- The list of roles attached to the token. Each entry hasnameandidattributes.- secret_
id str (string)The token value itself.- type str
 (string)The type of the token.
- accessor
Id String (string)Non-sensitive identifier for this token.- create
Time String (string)Date and time the token was created.- expiration
Time String (string)- The timestamp after which the token is considered expired and eligible for destruction.- expiration
Ttl String (string)The expiration TTL for the token.- global Boolean
 (bool)Whether the token is replicated to all regions, or if it will only be used in the region it was created.- id String
 - The provider-assigned unique ID for this managed resource.
 - name String
 (string)Non-sensitive identifier for this token.- policies List<String>
 (list of strings)List of policy names associated with this token.- roles List<Property Map>
 (set: [])- The list of roles attached to the token. Each entry hasnameandidattributes.- secret
Id String (string)The token value itself.- type String
 (string)The type of the token.
Supporting Types
GetAclTokenRole   
Package Details
- Repository
 - HashiCorp Nomad pulumi/pulumi-nomad
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
nomadTerraform Provider.