HashiCorp Vault v6.2.0 published on Friday, Jun 21, 2024 by Pulumi
vault.getAuthBackend
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vault from "@pulumi/vault";
const example = vault.getAuthBackend({
    path: "userpass",
});
import pulumi
import pulumi_vault as vault
example = vault.get_auth_backend(path="userpass")
package main
import (
	"github.com/pulumi/pulumi-vault/sdk/v6/go/vault"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := vault.LookupAuthBackend(ctx, &vault.LookupAuthBackendArgs{
			Path: "userpass",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vault = Pulumi.Vault;
return await Deployment.RunAsync(() => 
{
    var example = Vault.GetAuthBackend.Invoke(new()
    {
        Path = "userpass",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vault.VaultFunctions;
import com.pulumi.vault.inputs.GetAuthBackendArgs;
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 = VaultFunctions.getAuthBackend(GetAuthBackendArgs.builder()
            .path("userpass")
            .build());
    }
}
variables:
  example:
    fn::invoke:
      Function: vault:getAuthBackend
      Arguments:
        path: userpass
Using getAuthBackend
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 getAuthBackend(args: GetAuthBackendArgs, opts?: InvokeOptions): Promise<GetAuthBackendResult>
function getAuthBackendOutput(args: GetAuthBackendOutputArgs, opts?: InvokeOptions): Output<GetAuthBackendResult>def get_auth_backend(namespace: Optional[str] = None,
                     path: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetAuthBackendResult
def get_auth_backend_output(namespace: Optional[pulumi.Input[str]] = None,
                     path: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetAuthBackendResult]func LookupAuthBackend(ctx *Context, args *LookupAuthBackendArgs, opts ...InvokeOption) (*LookupAuthBackendResult, error)
func LookupAuthBackendOutput(ctx *Context, args *LookupAuthBackendOutputArgs, opts ...InvokeOption) LookupAuthBackendResultOutput> Note: This function is named LookupAuthBackend in the Go SDK.
public static class GetAuthBackend 
{
    public static Task<GetAuthBackendResult> InvokeAsync(GetAuthBackendArgs args, InvokeOptions? opts = null)
    public static Output<GetAuthBackendResult> Invoke(GetAuthBackendInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAuthBackendResult> getAuthBackend(GetAuthBackendArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: vault:index/getAuthBackend:getAuthBackend
  arguments:
    # arguments dictionaryThe following arguments are supported:
getAuthBackend Result
The following output properties are available:
- Accessor string
 - The accessor for this auth method.
 - Default
Lease intTtl Seconds  - The default lease duration in seconds.
 - Description string
 - A description of the auth method.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Listing
Visibility string - Specifies whether to show this mount in the UI-specific listing endpoint.
 - Local bool
 - Specifies if the auth method is local only.
 - Max
Lease intTtl Seconds  - The maximum lease duration in seconds.
 - Path string
 - Type string
 - The name of the auth method type.
 - Namespace string
 
- Accessor string
 - The accessor for this auth method.
 - Default
Lease intTtl Seconds  - The default lease duration in seconds.
 - Description string
 - A description of the auth method.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Listing
Visibility string - Specifies whether to show this mount in the UI-specific listing endpoint.
 - Local bool
 - Specifies if the auth method is local only.
 - Max
Lease intTtl Seconds  - The maximum lease duration in seconds.
 - Path string
 - Type string
 - The name of the auth method type.
 - Namespace string
 
- accessor String
 - The accessor for this auth method.
 - default
Lease IntegerTtl Seconds  - The default lease duration in seconds.
 - description String
 - A description of the auth method.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - listing
Visibility String - Specifies whether to show this mount in the UI-specific listing endpoint.
 - local Boolean
 - Specifies if the auth method is local only.
 - max
Lease IntegerTtl Seconds  - The maximum lease duration in seconds.
 - path String
 - type String
 - The name of the auth method type.
 - namespace String
 
- accessor string
 - The accessor for this auth method.
 - default
Lease numberTtl Seconds  - The default lease duration in seconds.
 - description string
 - A description of the auth method.
 - id string
 - The provider-assigned unique ID for this managed resource.
 - listing
Visibility string - Specifies whether to show this mount in the UI-specific listing endpoint.
 - local boolean
 - Specifies if the auth method is local only.
 - max
Lease numberTtl Seconds  - The maximum lease duration in seconds.
 - path string
 - type string
 - The name of the auth method type.
 - namespace string
 
- accessor str
 - The accessor for this auth method.
 - default_
lease_ intttl_ seconds  - The default lease duration in seconds.
 - description str
 - A description of the auth method.
 - id str
 - The provider-assigned unique ID for this managed resource.
 - listing_
visibility str - Specifies whether to show this mount in the UI-specific listing endpoint.
 - local bool
 - Specifies if the auth method is local only.
 - max_
lease_ intttl_ seconds  - The maximum lease duration in seconds.
 - path str
 - type str
 - The name of the auth method type.
 - namespace str
 
- accessor String
 - The accessor for this auth method.
 - default
Lease NumberTtl Seconds  - The default lease duration in seconds.
 - description String
 - A description of the auth method.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - listing
Visibility String - Specifies whether to show this mount in the UI-specific listing endpoint.
 - local Boolean
 - Specifies if the auth method is local only.
 - max
Lease NumberTtl Seconds  - The maximum lease duration in seconds.
 - path String
 - type String
 - The name of the auth method type.
 - namespace String
 
Package Details
- Repository
 - Vault pulumi/pulumi-vault
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
vaultTerraform Provider.