Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

getAclAuthMethod

The consul.AclAuthMethod data source returns the information related to a Consul Auth Method.

Example Usage

using Pulumi;
using Consul = Pulumi.Consul;

class MyStack : Stack
{
    public MyStack()
    {
        var test = Output.Create(Consul.GetAclAuthMethod.InvokeAsync(new Consul.GetAclAuthMethodArgs
        {
            Name = "minikube",
        }));
        this.ConsulAclAuthMethod = test.Apply(test => test.Config);
    }

    [Output("consulAclAuthMethod")]
    public Output<string> ConsulAclAuthMethod { get; set; }
}
package main

import (
    "github.com/pulumi/pulumi-consul/sdk/v2/go/consul"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        test, err := consul.LookupAclAuthMethod(ctx, &consul.LookupAclAuthMethodArgs{
            Name: "minikube",
        }, nil)
        if err != nil {
            return err
        }
        ctx.Export("consulAclAuthMethod", test.Config)
        return nil
    })
}
import pulumi
import pulumi_consul as consul

test = consul.get_acl_auth_method(name="minikube")
pulumi.export("consulAclAuthMethod", test.config)
import * as pulumi from "@pulumi/pulumi";
import * as consul from "@pulumi/consul";

const test = consul.getAclAuthMethod({
    name: "minikube",
});
export const consulAclAuthMethod = test.then(test => test.config);

Using getAclAuthMethod

function getAclAuthMethod(args: GetAclAuthMethodArgs, opts?: InvokeOptions): Promise<GetAclAuthMethodResult>
def get_acl_auth_method(name: Optional[str] = None, namespace: Optional[str] = None, opts: Optional[InvokeOptions] = None) -> GetAclAuthMethodResult
func LookupAclAuthMethod(ctx *Context, args *LookupAclAuthMethodArgs, opts ...InvokeOption) (*LookupAclAuthMethodResult, error)

Note: This function is named LookupAclAuthMethod in the Go SDK.

public static class GetAclAuthMethod {
    public static Task<GetAclAuthMethodResult> InvokeAsync(GetAclAuthMethodArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

The name of the ACL Auth Method.

Namespace string

The namespace to lookup the auth method.

Name string

The name of the ACL Auth Method.

Namespace string

The namespace to lookup the auth method.

name string

The name of the ACL Auth Method.

namespace string

The namespace to lookup the auth method.

name str

The name of the ACL Auth Method.

namespace str

The namespace to lookup the auth method.

getAclAuthMethod Result

The following output properties are available:

Config Dictionary<string, string>

The configuration options of the ACL Auth Method. This attribute is deprecated and will be removed in a future version. If the configuration is too complex to be represented as a map of strings, it will be blank. config_json should be used instead.

Deprecated: The config attribute is deprecated, please use config_json instead.

ConfigJson string

The configuration options of the ACL Auth Method.

Description string

The description of the ACL Auth Method.

DisplayName string

An optional name to use instead of the name attribute when displaying information about this auth method.

Id string

The provider-assigned unique ID for this managed resource.

MaxTokenTtl string

The maximum life of any token created by this auth method.

Name string
NamespaceRules List<GetAclAuthMethodNamespaceRule>

(Enterprise Only) A set of rules that control which namespace tokens created via this auth method will be created within

TokenLocality string

The kind of token that this auth method produces. This can be either ‘local’ or ‘global’.

Type string

The type of the ACL Auth Method.

Namespace string
Config map[string]string

The configuration options of the ACL Auth Method. This attribute is deprecated and will be removed in a future version. If the configuration is too complex to be represented as a map of strings, it will be blank. config_json should be used instead.

Deprecated: The config attribute is deprecated, please use config_json instead.

ConfigJson string

The configuration options of the ACL Auth Method.

Description string

The description of the ACL Auth Method.

DisplayName string

An optional name to use instead of the name attribute when displaying information about this auth method.

Id string

The provider-assigned unique ID for this managed resource.

MaxTokenTtl string

The maximum life of any token created by this auth method.

Name string
NamespaceRules []GetAclAuthMethodNamespaceRule

(Enterprise Only) A set of rules that control which namespace tokens created via this auth method will be created within

TokenLocality string

The kind of token that this auth method produces. This can be either ‘local’ or ‘global’.

Type string

The type of the ACL Auth Method.

Namespace string
config {[key: string]: string}

The configuration options of the ACL Auth Method. This attribute is deprecated and will be removed in a future version. If the configuration is too complex to be represented as a map of strings, it will be blank. config_json should be used instead.

Deprecated: The config attribute is deprecated, please use config_json instead.

configJson string

The configuration options of the ACL Auth Method.

description string

The description of the ACL Auth Method.

displayName string

An optional name to use instead of the name attribute when displaying information about this auth method.

id string

The provider-assigned unique ID for this managed resource.

maxTokenTtl string

The maximum life of any token created by this auth method.

name string
namespaceRules GetAclAuthMethodNamespaceRule[]

(Enterprise Only) A set of rules that control which namespace tokens created via this auth method will be created within

tokenLocality string

The kind of token that this auth method produces. This can be either ‘local’ or ‘global’.

type string

The type of the ACL Auth Method.

namespace string
config Mapping[str, str]

The configuration options of the ACL Auth Method. This attribute is deprecated and will be removed in a future version. If the configuration is too complex to be represented as a map of strings, it will be blank. config_json should be used instead.

Deprecated: The config attribute is deprecated, please use config_json instead.

config_json str

The configuration options of the ACL Auth Method.

description str

The description of the ACL Auth Method.

display_name str

An optional name to use instead of the name attribute when displaying information about this auth method.

id str

The provider-assigned unique ID for this managed resource.

max_token_ttl str

The maximum life of any token created by this auth method.

name str
namespace_rules Sequence[GetAclAuthMethodNamespaceRule]

(Enterprise Only) A set of rules that control which namespace tokens created via this auth method will be created within

token_locality str

The kind of token that this auth method produces. This can be either ‘local’ or ‘global’.

type str

The type of the ACL Auth Method.

namespace str

Supporting Types

GetAclAuthMethodNamespaceRule

BindNamespace string
Selector string
BindNamespace string
Selector string
bindNamespace string
selector string

Package Details

Repository
https://github.com/pulumi/pulumi-consul
License
Apache-2.0
Notes
This Pulumi package is based on the consul Terraform Provider.