nomad.getAclPolicies

Retrieve a list of ACL Policies.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Nomad = Pulumi.Nomad;

return await Deployment.RunAsync(() => 
{
    var example = Nomad.GetAclPolicies.Invoke(new()
    {
        Prefix = "prod",
    });

});
package main

import (
	"github.com/pulumi/pulumi-nomad/sdk/go/nomad"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := nomad.GetAclPolicies(ctx, &nomad.GetAclPoliciesArgs{
			Prefix: pulumi.StringRef("prod"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
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.GetAclPoliciesArgs;
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.getAclPolicies(GetAclPoliciesArgs.builder()
            .prefix("prod")
            .build());

    }
}
import pulumi
import pulumi_nomad as nomad

example = nomad.get_acl_policies(prefix="prod")
import * as pulumi from "@pulumi/pulumi";
import * as nomad from "@pulumi/nomad";

const example = nomad.getAclPolicies({
    prefix: "prod",
});
variables:
  example:
    fn::invoke:
      Function: nomad:getAclPolicies
      Arguments:
        prefix: prod

Using getAclPolicies

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 getAclPolicies(args: GetAclPoliciesArgs, opts?: InvokeOptions): Promise<GetAclPoliciesResult>
function getAclPoliciesOutput(args: GetAclPoliciesOutputArgs, opts?: InvokeOptions): Output<GetAclPoliciesResult>
def get_acl_policies(prefix: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetAclPoliciesResult
def get_acl_policies_output(prefix: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetAclPoliciesResult]
func GetAclPolicies(ctx *Context, args *GetAclPoliciesArgs, opts ...InvokeOption) (*GetAclPoliciesResult, error)
func GetAclPoliciesOutput(ctx *Context, args *GetAclPoliciesOutputArgs, opts ...InvokeOption) GetAclPoliciesResultOutput

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

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

The following arguments are supported:

Prefix string

(string) An optional string to filter ACL policies based on name prefix. If not provided, all policies are returned.

Prefix string

(string) An optional string to filter ACL policies based on name prefix. If not provided, all policies are returned.

prefix String

(string) An optional string to filter ACL policies based on name prefix. If not provided, all policies are returned.

prefix string

(string) An optional string to filter ACL policies based on name prefix. If not provided, all policies are returned.

prefix str

(string) An optional string to filter ACL policies based on name prefix. If not provided, all policies are returned.

prefix String

(string) An optional string to filter ACL policies based on name prefix. If not provided, all policies are returned.

getAclPolicies Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Policies List<GetAclPoliciesPolicy>

list of maps a list of ACL policies.

Prefix string
Id string

The provider-assigned unique ID for this managed resource.

Policies []GetAclPoliciesPolicy

list of maps a list of ACL policies.

Prefix string
id String

The provider-assigned unique ID for this managed resource.

policies List<GetAclPoliciesPolicy>

list of maps a list of ACL policies.

prefix String
id string

The provider-assigned unique ID for this managed resource.

policies GetAclPoliciesPolicy[]

list of maps a list of ACL policies.

prefix string
id str

The provider-assigned unique ID for this managed resource.

policies Sequence[GetAclPoliciesPolicy]

list of maps a list of ACL policies.

prefix str
id String

The provider-assigned unique ID for this managed resource.

policies List<Property Map>

list of maps a list of ACL policies.

prefix String

Supporting Types

GetAclPoliciesPolicy

Description string

(string) - the description of the ACL Policy.

Name string

(string) - the name of the ACL Policy.

Description string

(string) - the description of the ACL Policy.

Name string

(string) - the name of the ACL Policy.

description String

(string) - the description of the ACL Policy.

name String

(string) - the name of the ACL Policy.

description string

(string) - the description of the ACL Policy.

name string

(string) - the name of the ACL Policy.

description str

(string) - the description of the ACL Policy.

name str

(string) - the name of the ACL Policy.

description String

(string) - the description of the ACL Policy.

name String

(string) - the name of the ACL Policy.

Package Details

Repository
HashiCorp Nomad pulumi/pulumi-nomad
License
Apache-2.0
Notes

This Pulumi package is based on the nomad Terraform Provider.