akeyless 1.9.0 published on Monday, Apr 14, 2025 by akeyless-community
akeyless.getAuth
Explore with Pulumi AI
akeyless 1.9.0 published on Monday, Apr 14, 2025 by akeyless-community
Authenticate to Akeyless and returns a token to be used by the provider
Using getAuth
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 getAuth(args: GetAuthArgs, opts?: InvokeOptions): Promise<GetAuthResult>
function getAuthOutput(args: GetAuthOutputArgs, opts?: InvokeOptions): Output<GetAuthResult>
def get_auth(api_key_logins: Optional[Sequence[GetAuthApiKeyLogin]] = None,
aws_iam_logins: Optional[Sequence[GetAuthAwsIamLogin]] = None,
azure_ad_logins: Optional[Sequence[GetAuthAzureAdLogin]] = None,
cert_logins: Optional[Sequence[GetAuthCertLogin]] = None,
email_logins: Optional[Sequence[GetAuthEmailLogin]] = None,
gcp_logins: Optional[Sequence[GetAuthGcpLogin]] = None,
id: Optional[str] = None,
jwt_logins: Optional[Sequence[GetAuthJwtLogin]] = None,
uid_logins: Optional[Sequence[GetAuthUidLogin]] = None,
opts: Optional[InvokeOptions] = None) -> GetAuthResult
def get_auth_output(api_key_logins: Optional[pulumi.Input[Sequence[pulumi.Input[GetAuthApiKeyLoginArgs]]]] = None,
aws_iam_logins: Optional[pulumi.Input[Sequence[pulumi.Input[GetAuthAwsIamLoginArgs]]]] = None,
azure_ad_logins: Optional[pulumi.Input[Sequence[pulumi.Input[GetAuthAzureAdLoginArgs]]]] = None,
cert_logins: Optional[pulumi.Input[Sequence[pulumi.Input[GetAuthCertLoginArgs]]]] = None,
email_logins: Optional[pulumi.Input[Sequence[pulumi.Input[GetAuthEmailLoginArgs]]]] = None,
gcp_logins: Optional[pulumi.Input[Sequence[pulumi.Input[GetAuthGcpLoginArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
jwt_logins: Optional[pulumi.Input[Sequence[pulumi.Input[GetAuthJwtLoginArgs]]]] = None,
uid_logins: Optional[pulumi.Input[Sequence[pulumi.Input[GetAuthUidLoginArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAuthResult]
func GetAuth(ctx *Context, args *GetAuthArgs, opts ...InvokeOption) (*GetAuthResult, error)
func GetAuthOutput(ctx *Context, args *GetAuthOutputArgs, opts ...InvokeOption) GetAuthResultOutput
> Note: This function is named GetAuth
in the Go SDK.
public static class GetAuth
{
public static Task<GetAuthResult> InvokeAsync(GetAuthArgs args, InvokeOptions? opts = null)
public static Output<GetAuthResult> Invoke(GetAuthInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAuthResult> getAuth(GetAuthArgs args, InvokeOptions options)
public static Output<GetAuthResult> getAuth(GetAuthArgs args, InvokeOptions options)
fn::invoke:
function: akeyless:index/getAuth:getAuth
arguments:
# arguments dictionary
The following arguments are supported:
- Api
Key List<GetLogins Auth Api Key Login> - A configuration block, described below, that attempts to authenticate using API-Key.
- Aws
Iam List<GetLogins Auth Aws Iam Login> - A configuration block, described below, that attempts to authenticate using AWS-IAM authentication credentials.
- Azure
Ad List<GetLogins Auth Azure Ad Login> - A configuration block, described below, that attempts to authenticate using Azure Active Directory authentication.
- Cert
Logins List<GetAuth Cert Login> - A configuration block, described below, that attempts to authenticate using Certificate authentication. The Certificate and the Private key can be provided as a command line variable or it will be pulled out of an environment variable named AKEYLESSAUTHCERT and AKEYLESSAUTHKEY.
- Email
Logins List<GetAuth Email Login> - A configuration block, described below, that attempts to authenticate using email and password.
- Gcp
Logins List<GetAuth Gcp Login> - A configuration block, described below, that attempts to authenticate using GCP-IAM authentication credentials.
- Id string
- The ID of this resource.
- Jwt
Logins List<GetAuth Jwt Login> - A configuration block, described below, that attempts to authenticate using JWT authentication. The JWT can be provided as a command line variable or it will be pulled out of an environment variable named AKEYLESSAUTHJWT.
- Uid
Logins List<GetAuth Uid Login> - A configuration block, described below, that attempts to authenticate using Universal Identity authentication.
- Api
Key []GetLogins Auth Api Key Login - A configuration block, described below, that attempts to authenticate using API-Key.
- Aws
Iam []GetLogins Auth Aws Iam Login - A configuration block, described below, that attempts to authenticate using AWS-IAM authentication credentials.
- Azure
Ad []GetLogins Auth Azure Ad Login - A configuration block, described below, that attempts to authenticate using Azure Active Directory authentication.
- Cert
Logins []GetAuth Cert Login - A configuration block, described below, that attempts to authenticate using Certificate authentication. The Certificate and the Private key can be provided as a command line variable or it will be pulled out of an environment variable named AKEYLESSAUTHCERT and AKEYLESSAUTHKEY.
- Email
Logins []GetAuth Email Login - A configuration block, described below, that attempts to authenticate using email and password.
- Gcp
Logins []GetAuth Gcp Login - A configuration block, described below, that attempts to authenticate using GCP-IAM authentication credentials.
- Id string
- The ID of this resource.
- Jwt
Logins []GetAuth Jwt Login - A configuration block, described below, that attempts to authenticate using JWT authentication. The JWT can be provided as a command line variable or it will be pulled out of an environment variable named AKEYLESSAUTHJWT.
- Uid
Logins []GetAuth Uid Login - A configuration block, described below, that attempts to authenticate using Universal Identity authentication.
- api
Key List<GetLogins Auth Api Key Login> - A configuration block, described below, that attempts to authenticate using API-Key.
- aws
Iam List<GetLogins Auth Aws Iam Login> - A configuration block, described below, that attempts to authenticate using AWS-IAM authentication credentials.
- azure
Ad List<GetLogins Auth Azure Ad Login> - A configuration block, described below, that attempts to authenticate using Azure Active Directory authentication.
- cert
Logins List<GetAuth Cert Login> - A configuration block, described below, that attempts to authenticate using Certificate authentication. The Certificate and the Private key can be provided as a command line variable or it will be pulled out of an environment variable named AKEYLESSAUTHCERT and AKEYLESSAUTHKEY.
- email
Logins List<GetAuth Email Login> - A configuration block, described below, that attempts to authenticate using email and password.
- gcp
Logins List<GetAuth Gcp Login> - A configuration block, described below, that attempts to authenticate using GCP-IAM authentication credentials.
- id String
- The ID of this resource.
- jwt
Logins List<GetAuth Jwt Login> - A configuration block, described below, that attempts to authenticate using JWT authentication. The JWT can be provided as a command line variable or it will be pulled out of an environment variable named AKEYLESSAUTHJWT.
- uid
Logins List<GetAuth Uid Login> - A configuration block, described below, that attempts to authenticate using Universal Identity authentication.
- api
Key GetLogins Auth Api Key Login[] - A configuration block, described below, that attempts to authenticate using API-Key.
- aws
Iam GetLogins Auth Aws Iam Login[] - A configuration block, described below, that attempts to authenticate using AWS-IAM authentication credentials.
- azure
Ad GetLogins Auth Azure Ad Login[] - A configuration block, described below, that attempts to authenticate using Azure Active Directory authentication.
- cert
Logins GetAuth Cert Login[] - A configuration block, described below, that attempts to authenticate using Certificate authentication. The Certificate and the Private key can be provided as a command line variable or it will be pulled out of an environment variable named AKEYLESSAUTHCERT and AKEYLESSAUTHKEY.
- email
Logins GetAuth Email Login[] - A configuration block, described below, that attempts to authenticate using email and password.
- gcp
Logins GetAuth Gcp Login[] - A configuration block, described below, that attempts to authenticate using GCP-IAM authentication credentials.
- id string
- The ID of this resource.
- jwt
Logins GetAuth Jwt Login[] - A configuration block, described below, that attempts to authenticate using JWT authentication. The JWT can be provided as a command line variable or it will be pulled out of an environment variable named AKEYLESSAUTHJWT.
- uid
Logins GetAuth Uid Login[] - A configuration block, described below, that attempts to authenticate using Universal Identity authentication.
- api_
key_ Sequence[Getlogins Auth Api Key Login] - A configuration block, described below, that attempts to authenticate using API-Key.
- aws_
iam_ Sequence[Getlogins Auth Aws Iam Login] - A configuration block, described below, that attempts to authenticate using AWS-IAM authentication credentials.
- azure_
ad_ Sequence[Getlogins Auth Azure Ad Login] - A configuration block, described below, that attempts to authenticate using Azure Active Directory authentication.
- cert_
logins Sequence[GetAuth Cert Login] - A configuration block, described below, that attempts to authenticate using Certificate authentication. The Certificate and the Private key can be provided as a command line variable or it will be pulled out of an environment variable named AKEYLESSAUTHCERT and AKEYLESSAUTHKEY.
- email_
logins Sequence[GetAuth Email Login] - A configuration block, described below, that attempts to authenticate using email and password.
- gcp_
logins Sequence[GetAuth Gcp Login] - A configuration block, described below, that attempts to authenticate using GCP-IAM authentication credentials.
- id str
- The ID of this resource.
- jwt_
logins Sequence[GetAuth Jwt Login] - A configuration block, described below, that attempts to authenticate using JWT authentication. The JWT can be provided as a command line variable or it will be pulled out of an environment variable named AKEYLESSAUTHJWT.
- uid_
logins Sequence[GetAuth Uid Login] - A configuration block, described below, that attempts to authenticate using Universal Identity authentication.
- api
Key List<Property Map>Logins - A configuration block, described below, that attempts to authenticate using API-Key.
- aws
Iam List<Property Map>Logins - A configuration block, described below, that attempts to authenticate using AWS-IAM authentication credentials.
- azure
Ad List<Property Map>Logins - A configuration block, described below, that attempts to authenticate using Azure Active Directory authentication.
- cert
Logins List<Property Map> - A configuration block, described below, that attempts to authenticate using Certificate authentication. The Certificate and the Private key can be provided as a command line variable or it will be pulled out of an environment variable named AKEYLESSAUTHCERT and AKEYLESSAUTHKEY.
- email
Logins List<Property Map> - A configuration block, described below, that attempts to authenticate using email and password.
- gcp
Logins List<Property Map> - A configuration block, described below, that attempts to authenticate using GCP-IAM authentication credentials.
- id String
- The ID of this resource.
- jwt
Logins List<Property Map> - A configuration block, described below, that attempts to authenticate using JWT authentication. The JWT can be provided as a command line variable or it will be pulled out of an environment variable named AKEYLESSAUTHJWT.
- uid
Logins List<Property Map> - A configuration block, described below, that attempts to authenticate using Universal Identity authentication.
getAuth Result
The following output properties are available:
- Id string
- The ID of this resource.
- Token string
- The token
- Api
Key List<GetLogins Auth Api Key Login> - A configuration block, described below, that attempts to authenticate using API-Key.
- Aws
Iam List<GetLogins Auth Aws Iam Login> - A configuration block, described below, that attempts to authenticate using AWS-IAM authentication credentials.
- Azure
Ad List<GetLogins Auth Azure Ad Login> - A configuration block, described below, that attempts to authenticate using Azure Active Directory authentication.
- Cert
Logins List<GetAuth Cert Login> - A configuration block, described below, that attempts to authenticate using Certificate authentication. The Certificate and the Private key can be provided as a command line variable or it will be pulled out of an environment variable named AKEYLESSAUTHCERT and AKEYLESSAUTHKEY.
- Email
Logins List<GetAuth Email Login> - A configuration block, described below, that attempts to authenticate using email and password.
- Gcp
Logins List<GetAuth Gcp Login> - A configuration block, described below, that attempts to authenticate using GCP-IAM authentication credentials.
- Jwt
Logins List<GetAuth Jwt Login> - A configuration block, described below, that attempts to authenticate using JWT authentication. The JWT can be provided as a command line variable or it will be pulled out of an environment variable named AKEYLESSAUTHJWT.
- Uid
Logins List<GetAuth Uid Login> - A configuration block, described below, that attempts to authenticate using Universal Identity authentication.
- Id string
- The ID of this resource.
- Token string
- The token
- Api
Key []GetLogins Auth Api Key Login - A configuration block, described below, that attempts to authenticate using API-Key.
- Aws
Iam []GetLogins Auth Aws Iam Login - A configuration block, described below, that attempts to authenticate using AWS-IAM authentication credentials.
- Azure
Ad []GetLogins Auth Azure Ad Login - A configuration block, described below, that attempts to authenticate using Azure Active Directory authentication.
- Cert
Logins []GetAuth Cert Login - A configuration block, described below, that attempts to authenticate using Certificate authentication. The Certificate and the Private key can be provided as a command line variable or it will be pulled out of an environment variable named AKEYLESSAUTHCERT and AKEYLESSAUTHKEY.
- Email
Logins []GetAuth Email Login - A configuration block, described below, that attempts to authenticate using email and password.
- Gcp
Logins []GetAuth Gcp Login - A configuration block, described below, that attempts to authenticate using GCP-IAM authentication credentials.
- Jwt
Logins []GetAuth Jwt Login - A configuration block, described below, that attempts to authenticate using JWT authentication. The JWT can be provided as a command line variable or it will be pulled out of an environment variable named AKEYLESSAUTHJWT.
- Uid
Logins []GetAuth Uid Login - A configuration block, described below, that attempts to authenticate using Universal Identity authentication.
- id String
- The ID of this resource.
- token String
- The token
- api
Key List<GetLogins Auth Api Key Login> - A configuration block, described below, that attempts to authenticate using API-Key.
- aws
Iam List<GetLogins Auth Aws Iam Login> - A configuration block, described below, that attempts to authenticate using AWS-IAM authentication credentials.
- azure
Ad List<GetLogins Auth Azure Ad Login> - A configuration block, described below, that attempts to authenticate using Azure Active Directory authentication.
- cert
Logins List<GetAuth Cert Login> - A configuration block, described below, that attempts to authenticate using Certificate authentication. The Certificate and the Private key can be provided as a command line variable or it will be pulled out of an environment variable named AKEYLESSAUTHCERT and AKEYLESSAUTHKEY.
- email
Logins List<GetAuth Email Login> - A configuration block, described below, that attempts to authenticate using email and password.
- gcp
Logins List<GetAuth Gcp Login> - A configuration block, described below, that attempts to authenticate using GCP-IAM authentication credentials.
- jwt
Logins List<GetAuth Jwt Login> - A configuration block, described below, that attempts to authenticate using JWT authentication. The JWT can be provided as a command line variable or it will be pulled out of an environment variable named AKEYLESSAUTHJWT.
- uid
Logins List<GetAuth Uid Login> - A configuration block, described below, that attempts to authenticate using Universal Identity authentication.
- id string
- The ID of this resource.
- token string
- The token
- api
Key GetLogins Auth Api Key Login[] - A configuration block, described below, that attempts to authenticate using API-Key.
- aws
Iam GetLogins Auth Aws Iam Login[] - A configuration block, described below, that attempts to authenticate using AWS-IAM authentication credentials.
- azure
Ad GetLogins Auth Azure Ad Login[] - A configuration block, described below, that attempts to authenticate using Azure Active Directory authentication.
- cert
Logins GetAuth Cert Login[] - A configuration block, described below, that attempts to authenticate using Certificate authentication. The Certificate and the Private key can be provided as a command line variable or it will be pulled out of an environment variable named AKEYLESSAUTHCERT and AKEYLESSAUTHKEY.
- email
Logins GetAuth Email Login[] - A configuration block, described below, that attempts to authenticate using email and password.
- gcp
Logins GetAuth Gcp Login[] - A configuration block, described below, that attempts to authenticate using GCP-IAM authentication credentials.
- jwt
Logins GetAuth Jwt Login[] - A configuration block, described below, that attempts to authenticate using JWT authentication. The JWT can be provided as a command line variable or it will be pulled out of an environment variable named AKEYLESSAUTHJWT.
- uid
Logins GetAuth Uid Login[] - A configuration block, described below, that attempts to authenticate using Universal Identity authentication.
- id str
- The ID of this resource.
- token str
- The token
- api_
key_ Sequence[Getlogins Auth Api Key Login] - A configuration block, described below, that attempts to authenticate using API-Key.
- aws_
iam_ Sequence[Getlogins Auth Aws Iam Login] - A configuration block, described below, that attempts to authenticate using AWS-IAM authentication credentials.
- azure_
ad_ Sequence[Getlogins Auth Azure Ad Login] - A configuration block, described below, that attempts to authenticate using Azure Active Directory authentication.
- cert_
logins Sequence[GetAuth Cert Login] - A configuration block, described below, that attempts to authenticate using Certificate authentication. The Certificate and the Private key can be provided as a command line variable or it will be pulled out of an environment variable named AKEYLESSAUTHCERT and AKEYLESSAUTHKEY.
- email_
logins Sequence[GetAuth Email Login] - A configuration block, described below, that attempts to authenticate using email and password.
- gcp_
logins Sequence[GetAuth Gcp Login] - A configuration block, described below, that attempts to authenticate using GCP-IAM authentication credentials.
- jwt_
logins Sequence[GetAuth Jwt Login] - A configuration block, described below, that attempts to authenticate using JWT authentication. The JWT can be provided as a command line variable or it will be pulled out of an environment variable named AKEYLESSAUTHJWT.
- uid_
logins Sequence[GetAuth Uid Login] - A configuration block, described below, that attempts to authenticate using Universal Identity authentication.
- id String
- The ID of this resource.
- token String
- The token
- api
Key List<Property Map>Logins - A configuration block, described below, that attempts to authenticate using API-Key.
- aws
Iam List<Property Map>Logins - A configuration block, described below, that attempts to authenticate using AWS-IAM authentication credentials.
- azure
Ad List<Property Map>Logins - A configuration block, described below, that attempts to authenticate using Azure Active Directory authentication.
- cert
Logins List<Property Map> - A configuration block, described below, that attempts to authenticate using Certificate authentication. The Certificate and the Private key can be provided as a command line variable or it will be pulled out of an environment variable named AKEYLESSAUTHCERT and AKEYLESSAUTHKEY.
- email
Logins List<Property Map> - A configuration block, described below, that attempts to authenticate using email and password.
- gcp
Logins List<Property Map> - A configuration block, described below, that attempts to authenticate using GCP-IAM authentication credentials.
- jwt
Logins List<Property Map> - A configuration block, described below, that attempts to authenticate using JWT authentication. The JWT can be provided as a command line variable or it will be pulled out of an environment variable named AKEYLESSAUTHJWT.
- uid
Logins List<Property Map> - A configuration block, described below, that attempts to authenticate using Universal Identity authentication.
Supporting Types
GetAuthApiKeyLogin
- access_
id str - access_
key str
GetAuthAwsIamLogin
- Access
Id string
- Access
Id string
- access
Id String
- access
Id string
- access_
id str
- access
Id String
GetAuthAzureAdLogin
- Access
Id string
- Access
Id string
- access
Id String
- access
Id string
- access_
id str
- access
Id String
GetAuthCertLogin
- Access
Id string - Cert
Data string - Cert
File stringName - Key
Data string - Key
File stringName
- Access
Id string - Cert
Data string - Cert
File stringName - Key
Data string - Key
File stringName
- access
Id String - cert
Data String - cert
File StringName - key
Data String - key
File StringName
- access
Id string - cert
Data string - cert
File stringName - key
Data string - key
File stringName
- access_
id str - cert_
data str - cert_
file_ strname - key_
data str - key_
file_ strname
- access
Id String - cert
Data String - cert
File StringName - key
Data String - key
File StringName
GetAuthEmailLogin
- Admin
Email string - Admin
Password string
- Admin
Email string - Admin
Password string
- admin
Email String - admin
Password String
- admin
Email string - admin
Password string
- admin_
email str - admin_
password str
- admin
Email String - admin
Password String
GetAuthGcpLogin
GetAuthJwtLogin
GetAuthUidLogin
Package Details
- Repository
- akeyless akeyless-community/terraform-provider-akeyless
- License
- Notes
- This Pulumi package is based on the
akeyless
Terraform Provider.
akeyless 1.9.0 published on Monday, Apr 14, 2025 by akeyless-community