Nomad v2.4.1 published on Wednesday, Oct 30, 2024 by Pulumi
nomad.getAclRoles
Explore with Pulumi AI
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:
- Acl
Roles List<GetAcl Roles Acl Role> - Id string
- The provider-assigned unique ID for this managed resource.
- Prefix string
- Acl
Roles []GetAcl Roles Acl Role - Id string
- The provider-assigned unique ID for this managed resource.
- Prefix string
- acl
Roles List<GetAcl Roles Acl Role> - id String
- The provider-assigned unique ID for this managed resource.
- prefix String
- acl
Roles GetAcl Roles Acl Role[] - id string
- The provider-assigned unique ID for this managed resource.
- prefix string
- acl_
roles Sequence[GetAcl Roles Acl Role] - id str
- The provider-assigned unique ID for this managed resource.
- prefix str
- acl
Roles 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<Get
Acl Roles Acl Role Policy> (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
[]Get
Acl Roles Acl Role Policy (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<Get
Acl Roles Acl Role Policy> (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
Get
Acl Roles Acl Role Policy[] (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[Get
Acl Roles Acl Role Policy] (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.