1. Packages
  2. Nomad Provider
  3. API Docs
  4. getAclRoles
Nomad v2.4.1 published on Wednesday, Oct 30, 2024 by Pulumi

nomad.getAclRoles

Explore with Pulumi AI

nomad logo
Nomad v2.4.1 published on Wednesday, Oct 30, 2024 by Pulumi

    Retrieve a list of ACL Roles.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as nomad from "@pulumi/nomad";
    
    const example = nomad.getAclRoles({
        prefix: "a242",
    });
    
    import pulumi
    import pulumi_nomad as nomad
    
    example = nomad.get_acl_roles(prefix="a242")
    
    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.GetAclRoles(ctx, &nomad.GetAclRolesArgs{
    			Prefix: pulumi.StringRef("a242"),
    		}, 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.GetAclRoles.Invoke(new()
        {
            Prefix = "a242",
        });
    
    });
    
    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.GetAclRolesArgs;
    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.getAclRoles(GetAclRolesArgs.builder()
                .prefix("a242")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: nomad:getAclRoles
          Arguments:
            prefix: a242
    

    Using getAclRoles

    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 getAclRoles(args: GetAclRolesArgs, opts?: InvokeOptions): Promise<GetAclRolesResult>
    function getAclRolesOutput(args: GetAclRolesOutputArgs, opts?: InvokeOptions): Output<GetAclRolesResult>
    def get_acl_roles(prefix: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetAclRolesResult
    def get_acl_roles_output(prefix: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetAclRolesResult]
    func GetAclRoles(ctx *Context, args *GetAclRolesArgs, opts ...InvokeOption) (*GetAclRolesResult, error)
    func GetAclRolesOutput(ctx *Context, args *GetAclRolesOutputArgs, opts ...InvokeOption) GetAclRolesResultOutput

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

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

    The following arguments are supported:

    Prefix string
    (string) An optional string to filter ACL Roles based on ID prefix. If not provided, all policies are returned.
    Prefix string
    (string) An optional string to filter ACL Roles based on ID prefix. If not provided, all policies are returned.
    prefix String
    (string) An optional string to filter ACL Roles based on ID prefix. If not provided, all policies are returned.
    prefix string
    (string) An optional string to filter ACL Roles based on ID prefix. If not provided, all policies are returned.
    prefix str
    (string) An optional string to filter ACL Roles based on ID prefix. If not provided, all policies are returned.
    prefix String
    (string) An optional string to filter ACL Roles based on ID prefix. If not provided, all policies are returned.

    getAclRoles Result

    The following output properties are available:

    AclRoles List<GetAclRolesAclRole>
    Id string
    The provider-assigned unique ID for this managed resource.
    Prefix string
    AclRoles []GetAclRolesAclRole
    Id string
    The provider-assigned unique ID for this managed resource.
    Prefix string
    aclRoles List<GetAclRolesAclRole>
    id String
    The provider-assigned unique ID for this managed resource.
    prefix String
    aclRoles GetAclRolesAclRole[]
    id string
    The provider-assigned unique ID for this managed resource.
    prefix string
    acl_roles Sequence[GetAclRolesAclRole]
    id str
    The provider-assigned unique ID for this managed resource.
    prefix str
    aclRoles List<Property Map>
    id String
    The provider-assigned unique ID for this managed resource.
    prefix String

    Supporting Types

    GetAclRolesAclRole

    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<GetAclRolesAclRolePolicy>
    (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 []GetAclRolesAclRolePolicy
    (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<GetAclRolesAclRolePolicy>
    (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 GetAclRolesAclRolePolicy[]
    (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[GetAclRolesAclRolePolicy]
    (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.

    GetAclRolesAclRolePolicy

    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.4.1 published on Wednesday, Oct 30, 2024 by Pulumi