Consul v3.12.1 published on Friday, Aug 23, 2024 by Pulumi
consul.getAclAuthMethod
Explore with Pulumi AI
The consul.AclAuthMethod
data source returns the information related to a
Consul Auth Method.
Example Usage
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);
import pulumi
import pulumi_consul as consul
test = consul.get_acl_auth_method(name="minikube")
pulumi.export("consulAclAuthMethod", test.config)
package main
import (
"github.com/pulumi/pulumi-consul/sdk/v3/go/consul"
"github.com/pulumi/pulumi/sdk/v3/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
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Consul = Pulumi.Consul;
return await Deployment.RunAsync(() =>
{
var test = Consul.GetAclAuthMethod.Invoke(new()
{
Name = "minikube",
});
return new Dictionary<string, object?>
{
["consulAclAuthMethod"] = test.Apply(getAclAuthMethodResult => getAclAuthMethodResult.Config),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.consul.ConsulFunctions;
import com.pulumi.consul.inputs.GetAclAuthMethodArgs;
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 test = ConsulFunctions.getAclAuthMethod(GetAclAuthMethodArgs.builder()
.name("minikube")
.build());
ctx.export("consulAclAuthMethod", test.applyValue(getAclAuthMethodResult -> getAclAuthMethodResult.config()));
}
}
variables:
test:
fn::invoke:
Function: consul:getAclAuthMethod
Arguments:
name: minikube
outputs:
consulAclAuthMethod: ${test.config}
Using getAclAuthMethod
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 getAclAuthMethod(args: GetAclAuthMethodArgs, opts?: InvokeOptions): Promise<GetAclAuthMethodResult>
function getAclAuthMethodOutput(args: GetAclAuthMethodOutputArgs, opts?: InvokeOptions): Output<GetAclAuthMethodResult>
def get_acl_auth_method(name: Optional[str] = None,
namespace: Optional[str] = None,
partition: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAclAuthMethodResult
def get_acl_auth_method_output(name: Optional[pulumi.Input[str]] = None,
namespace: Optional[pulumi.Input[str]] = None,
partition: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAclAuthMethodResult]
func LookupAclAuthMethod(ctx *Context, args *LookupAclAuthMethodArgs, opts ...InvokeOption) (*LookupAclAuthMethodResult, error)
func LookupAclAuthMethodOutput(ctx *Context, args *LookupAclAuthMethodOutputArgs, opts ...InvokeOption) LookupAclAuthMethodResultOutput
> Note: This function is named LookupAclAuthMethod
in the Go SDK.
public static class GetAclAuthMethod
{
public static Task<GetAclAuthMethodResult> InvokeAsync(GetAclAuthMethodArgs args, InvokeOptions? opts = null)
public static Output<GetAclAuthMethodResult> Invoke(GetAclAuthMethodInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAclAuthMethodResult> getAclAuthMethod(GetAclAuthMethodArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: consul:index/getAclAuthMethod:getAclAuthMethod
arguments:
# arguments dictionary
The following arguments are supported:
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. - Config
Json string - The configuration options of the ACL Auth Method.
- Description string
- The description of the ACL Auth Method.
- Display
Name 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.
- Max
Token stringTtl - The maximum life of any token created by this auth method.
- Name string
- Namespace
Rules List<GetAcl Auth Method Namespace Rule> - (Enterprise Only) A set of rules that control which namespace tokens created via this auth method will be created within
- Token
Locality 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
- Partition 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. - Config
Json string - The configuration options of the ACL Auth Method.
- Description string
- The description of the ACL Auth Method.
- Display
Name 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.
- Max
Token stringTtl - The maximum life of any token created by this auth method.
- Name string
- Namespace
Rules []GetAcl Auth Method Namespace Rule - (Enterprise Only) A set of rules that control which namespace tokens created via this auth method will be created within
- Token
Locality 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
- Partition 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. - config
Json String - The configuration options of the ACL Auth Method.
- description String
- The description of the ACL Auth Method.
- display
Name 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.
- max
Token StringTtl - The maximum life of any token created by this auth method.
- name String
- namespace
Rules List<GetAcl Auth Method Namespace Rule> - (Enterprise Only) A set of rules that control which namespace tokens created via this auth method will be created within
- token
Locality 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
- partition 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. - config
Json string - The configuration options of the ACL Auth Method.
- description string
- The description of the ACL Auth Method.
- display
Name 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.
- max
Token stringTtl - The maximum life of any token created by this auth method.
- name string
- namespace
Rules GetAcl Auth Method Namespace Rule[] - (Enterprise Only) A set of rules that control which namespace tokens created via this auth method will be created within
- token
Locality 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
- partition 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. - 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_ strttl - The maximum life of any token created by this auth method.
- name str
- namespace_
rules Sequence[GetAcl Auth Method Namespace Rule] - (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
- partition str
- config Map<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. - config
Json String - The configuration options of the ACL Auth Method.
- description String
- The description of the ACL Auth Method.
- display
Name 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.
- max
Token StringTtl - The maximum life of any token created by this auth method.
- name String
- namespace
Rules List<Property Map> - (Enterprise Only) A set of rules that control which namespace tokens created via this auth method will be created within
- token
Locality 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
- partition String
Supporting Types
GetAclAuthMethodNamespaceRule
- Bind
Namespace string - Selector string
- Bind
Namespace string - Selector string
- bind
Namespace String - selector String
- bind
Namespace string - selector string
- bind_
namespace str - selector str
- bind
Namespace String - selector String
Package Details
- Repository
- HashiCorp Consul pulumi/pulumi-consul
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
consul
Terraform Provider.