1. Packages
  2. HashiCorp Nomad
  3. API Docs
  4. getAclRole
Nomad v2.3.0 published on Wednesday, Jun 5, 2024 by Pulumi

nomad.getAclRole

Explore with Pulumi AI

nomad logo
Nomad v2.3.0 published on Wednesday, Jun 5, 2024 by Pulumi

    Get information on an ACL Role.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as nomad from "@pulumi/nomad";
    
    const example = nomad.getAclRole({
        id: "aa534e09-6a07-0a45-2295-a7f77063d429",
    });
    
    import pulumi
    import pulumi_nomad as nomad
    
    example = nomad.get_acl_role(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.LookupAclRole(ctx, &nomad.LookupAclRoleArgs{
    			Id: "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 example = Nomad.GetAclRole.Invoke(new()
        {
            Id = "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.GetAclRoleArgs;
    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 example = NomadFunctions.getAclRole(GetAclRoleArgs.builder()
                .id("aa534e09-6a07-0a45-2295-a7f77063d429")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: nomad:getAclRole
          Arguments:
            id: aa534e09-6a07-0a45-2295-a7f77063d429
    

    Using getAclRole

    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 getAclRole(args: GetAclRoleArgs, opts?: InvokeOptions): Promise<GetAclRoleResult>
    function getAclRoleOutput(args: GetAclRoleOutputArgs, opts?: InvokeOptions): Output<GetAclRoleResult>
    def get_acl_role(id: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetAclRoleResult
    def get_acl_role_output(id: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetAclRoleResult]
    func LookupAclRole(ctx *Context, args *LookupAclRoleArgs, opts ...InvokeOption) (*LookupAclRoleResult, error)
    func LookupAclRoleOutput(ctx *Context, args *LookupAclRoleOutputArgs, opts ...InvokeOption) LookupAclRoleResultOutput

    > Note: This function is named LookupAclRole in the Go SDK.

    public static class GetAclRole 
    {
        public static Task<GetAclRoleResult> InvokeAsync(GetAclRoleArgs args, InvokeOptions? opts = null)
        public static Output<GetAclRoleResult> Invoke(GetAclRoleInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAclRoleResult> getAclRole(GetAclRoleArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: nomad:index/getAclRole:getAclRole
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    (string) The unique identifier of the ACL Role.
    Id string
    (string) The unique identifier of the ACL Role.
    id String
    (string) The unique identifier of the ACL Role.
    id string
    (string) The unique identifier of the ACL Role.
    id str
    (string) The unique identifier of the ACL Role.
    id String
    (string) The unique identifier of the ACL Role.

    getAclRole Result

    The following output properties are available:

    Description string
    (string) - The description of the ACL Role.
    Id string
    (string) - The ACL Role unique identifier.
    Name string
    (string) - Unique name of the ACL role.
    Policies List<GetAclRolePolicy>
    (set) - The policies applied to the role.
    Description string
    (string) - The description of the ACL Role.
    Id string
    (string) - The ACL Role unique identifier.
    Name string
    (string) - Unique name of the ACL role.
    Policies []GetAclRolePolicy
    (set) - The policies applied to the role.
    description String
    (string) - The description of the ACL Role.
    id String
    (string) - The ACL Role unique identifier.
    name String
    (string) - Unique name of the ACL role.
    policies List<GetAclRolePolicy>
    (set) - The policies applied to the role.
    description string
    (string) - The description of the ACL Role.
    id string
    (string) - The ACL Role unique identifier.
    name string
    (string) - Unique name of the ACL role.
    policies GetAclRolePolicy[]
    (set) - The policies applied to the role.
    description str
    (string) - The description of the ACL Role.
    id str
    (string) - The ACL Role unique identifier.
    name str
    (string) - Unique name of the ACL role.
    policies Sequence[GetAclRolePolicy]
    (set) - The policies applied to the role.
    description String
    (string) - The description of the ACL Role.
    id String
    (string) - The ACL Role unique identifier.
    name String
    (string) - Unique name of the ACL role.
    policies List<Property Map>
    (set) - The policies applied to the role.

    Supporting Types

    GetAclRolePolicy

    Name string
    (string) - Unique name of the ACL role.
    Name string
    (string) - Unique name of the ACL role.
    name String
    (string) - Unique name of the ACL role.
    name string
    (string) - Unique name of the ACL role.
    name str
    (string) - Unique name of the ACL role.
    name String
    (string) - Unique name of the ACL role.

    Package Details

    Repository
    HashiCorp Nomad pulumi/pulumi-nomad
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the nomad Terraform Provider.
    nomad logo
    Nomad v2.3.0 published on Wednesday, Jun 5, 2024 by Pulumi