Viewing docs for akeyless 2.0.1
published on Monday, Apr 27, 2026 by akeyless-community
published on Monday, Apr 27, 2026 by akeyless-community
Viewing docs for akeyless 2.0.1
published on Monday, Apr 27, 2026 by akeyless-community
published on Monday, Apr 27, 2026 by akeyless-community
Auth Method data source
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as akeyless from "@pulumi/akeyless";
const apiKey = akeyless.getAuthMethod({
path: "terraform/auth-method-api-key",
});
import pulumi
import pulumi_akeyless as akeyless
api_key = akeyless.get_auth_method(path="terraform/auth-method-api-key")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/akeyless/v2/akeyless"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := akeyless.GetAuthMethod(ctx, &akeyless.GetAuthMethodArgs{
Path: "terraform/auth-method-api-key",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Akeyless = Pulumi.Akeyless;
return await Deployment.RunAsync(() =>
{
var apiKey = Akeyless.GetAuthMethod.Invoke(new()
{
Path = "terraform/auth-method-api-key",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.akeyless.AkeylessFunctions;
import com.pulumi.akeyless.inputs.GetAuthMethodArgs;
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 apiKey = AkeylessFunctions.getAuthMethod(GetAuthMethodArgs.builder()
.path("terraform/auth-method-api-key")
.build());
}
}
variables:
apiKey:
fn::invoke:
function: akeyless:getAuthMethod
arguments:
path: terraform/auth-method-api-key
Example coming soon!
Using getAuthMethod
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 getAuthMethod(args: GetAuthMethodArgs, opts?: InvokeOptions): Promise<GetAuthMethodResult>
function getAuthMethodOutput(args: GetAuthMethodOutputArgs, opts?: InvokeOptions): Output<GetAuthMethodResult>def get_auth_method(id: Optional[str] = None,
path: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAuthMethodResult
def get_auth_method_output(id: pulumi.Input[Optional[str]] = None,
path: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAuthMethodResult]func GetAuthMethod(ctx *Context, args *GetAuthMethodArgs, opts ...InvokeOption) (*GetAuthMethodResult, error)
func GetAuthMethodOutput(ctx *Context, args *GetAuthMethodOutputArgs, opts ...InvokeOption) GetAuthMethodResultOutput> Note: This function is named GetAuthMethod in the Go SDK.
public static class GetAuthMethod
{
public static Task<GetAuthMethodResult> InvokeAsync(GetAuthMethodArgs args, InvokeOptions? opts = null)
public static Output<GetAuthMethodResult> Invoke(GetAuthMethodInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAuthMethodResult> getAuthMethod(GetAuthMethodArgs args, InvokeOptions options)
public static Output<GetAuthMethodResult> getAuthMethod(GetAuthMethodArgs args, InvokeOptions options)
fn::invoke:
function: akeyless:index/getAuthMethod:getAuthMethod
arguments:
# arguments dictionarydata "akeyless_getauthmethod" "name" {
# arguments
}The following arguments are supported:
getAuthMethod Result
The following output properties are available:
- Access
Date string - The access date of the auth method.
- Access
Date stringDisplay - The display format of the access date.
- Access
Id string - The access ID of the auth method.
- Account
Id string - The account ID associated with the auth method.
- Associated
Gw List<double>Ids - The list of gateway IDs associated with the auth method.
- Auth
Method doubleId - The unique identifier of the auth method.
- Auth
Method stringName - The name of the auth method.
- Client
Permissions List<string> - The list of client permissions.
- Creation
Date string - The creation date of the auth method.
- Delete
Protection bool - Whether delete protection is enabled.
- Description string
- The description of the auth method.
- Id string
- The ID of this resource.
- Is
Approved bool - Whether the auth method is approved.
- Modification
Date string - The modification date of the auth method.
- Path string
- The path where the auth method is stored.
- Access
Date string - The access date of the auth method.
- Access
Date stringDisplay - The display format of the access date.
- Access
Id string - The access ID of the auth method.
- Account
Id string - The account ID associated with the auth method.
- Associated
Gw []float64Ids - The list of gateway IDs associated with the auth method.
- Auth
Method float64Id - The unique identifier of the auth method.
- Auth
Method stringName - The name of the auth method.
- Client
Permissions []string - The list of client permissions.
- Creation
Date string - The creation date of the auth method.
- Delete
Protection bool - Whether delete protection is enabled.
- Description string
- The description of the auth method.
- Id string
- The ID of this resource.
- Is
Approved bool - Whether the auth method is approved.
- Modification
Date string - The modification date of the auth method.
- Path string
- The path where the auth method is stored.
- access_
date string - The access date of the auth method.
- access_
date_ stringdisplay - The display format of the access date.
- access_
id string - The access ID of the auth method.
- account_
id string - The account ID associated with the auth method.
- associated_
gw_ list(number)ids - The list of gateway IDs associated with the auth method.
- auth_
method_ numberid - The unique identifier of the auth method.
- auth_
method_ stringname - The name of the auth method.
- client_
permissions list(string) - The list of client permissions.
- creation_
date string - The creation date of the auth method.
- delete_
protection bool - Whether delete protection is enabled.
- description string
- The description of the auth method.
- id string
- The ID of this resource.
- is_
approved bool - Whether the auth method is approved.
- modification_
date string - The modification date of the auth method.
- path string
- The path where the auth method is stored.
- access
Date String - The access date of the auth method.
- access
Date StringDisplay - The display format of the access date.
- access
Id String - The access ID of the auth method.
- account
Id String - The account ID associated with the auth method.
- associated
Gw List<Double>Ids - The list of gateway IDs associated with the auth method.
- auth
Method DoubleId - The unique identifier of the auth method.
- auth
Method StringName - The name of the auth method.
- client
Permissions List<String> - The list of client permissions.
- creation
Date String - The creation date of the auth method.
- delete
Protection Boolean - Whether delete protection is enabled.
- description String
- The description of the auth method.
- id String
- The ID of this resource.
- is
Approved Boolean - Whether the auth method is approved.
- modification
Date String - The modification date of the auth method.
- path String
- The path where the auth method is stored.
- access
Date string - The access date of the auth method.
- access
Date stringDisplay - The display format of the access date.
- access
Id string - The access ID of the auth method.
- account
Id string - The account ID associated with the auth method.
- associated
Gw number[]Ids - The list of gateway IDs associated with the auth method.
- auth
Method numberId - The unique identifier of the auth method.
- auth
Method stringName - The name of the auth method.
- client
Permissions string[] - The list of client permissions.
- creation
Date string - The creation date of the auth method.
- delete
Protection boolean - Whether delete protection is enabled.
- description string
- The description of the auth method.
- id string
- The ID of this resource.
- is
Approved boolean - Whether the auth method is approved.
- modification
Date string - The modification date of the auth method.
- path string
- The path where the auth method is stored.
- access_
date str - The access date of the auth method.
- access_
date_ strdisplay - The display format of the access date.
- access_
id str - The access ID of the auth method.
- account_
id str - The account ID associated with the auth method.
- associated_
gw_ Sequence[float]ids - The list of gateway IDs associated with the auth method.
- auth_
method_ floatid - The unique identifier of the auth method.
- auth_
method_ strname - The name of the auth method.
- client_
permissions Sequence[str] - The list of client permissions.
- creation_
date str - The creation date of the auth method.
- delete_
protection bool - Whether delete protection is enabled.
- description str
- The description of the auth method.
- id str
- The ID of this resource.
- is_
approved bool - Whether the auth method is approved.
- modification_
date str - The modification date of the auth method.
- path str
- The path where the auth method is stored.
- access
Date String - The access date of the auth method.
- access
Date StringDisplay - The display format of the access date.
- access
Id String - The access ID of the auth method.
- account
Id String - The account ID associated with the auth method.
- associated
Gw List<Number>Ids - The list of gateway IDs associated with the auth method.
- auth
Method NumberId - The unique identifier of the auth method.
- auth
Method StringName - The name of the auth method.
- client
Permissions List<String> - The list of client permissions.
- creation
Date String - The creation date of the auth method.
- delete
Protection Boolean - Whether delete protection is enabled.
- description String
- The description of the auth method.
- id String
- The ID of this resource.
- is
Approved Boolean - Whether the auth method is approved.
- modification
Date String - The modification date of the auth method.
- path String
- The path where the auth method is stored.
Package Details
- Repository
- akeyless akeyless-community/terraform-provider-akeyless
- License
- Notes
- This Pulumi package is based on the
akeylessTerraform Provider.
Viewing docs for akeyless 2.0.1
published on Monday, Apr 27, 2026 by akeyless-community
published on Monday, Apr 27, 2026 by akeyless-community
