published on Friday, Feb 6, 2026 by Pulumi
published on Friday, Feb 6, 2026 by Pulumi
Create AuthBackendLogin Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AuthBackendLogin(name: string, args: AuthBackendLoginArgs, opts?: CustomResourceOptions);@overload
def AuthBackendLogin(resource_name: str,
args: AuthBackendLoginArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AuthBackendLogin(resource_name: str,
opts: Optional[ResourceOptions] = None,
role_id: Optional[str] = None,
backend: Optional[str] = None,
namespace: Optional[str] = None,
secret_id: Optional[str] = None,
secret_id_wo: Optional[str] = None,
secret_id_wo_version: Optional[int] = None)func NewAuthBackendLogin(ctx *Context, name string, args AuthBackendLoginArgs, opts ...ResourceOption) (*AuthBackendLogin, error)public AuthBackendLogin(string name, AuthBackendLoginArgs args, CustomResourceOptions? opts = null)
public AuthBackendLogin(String name, AuthBackendLoginArgs args)
public AuthBackendLogin(String name, AuthBackendLoginArgs args, CustomResourceOptions options)
type: vault:appRole:AuthBackendLogin
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AuthBackendLoginArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AuthBackendLoginArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AuthBackendLoginArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AuthBackendLoginArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AuthBackendLoginArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var authBackendLoginResource = new Vault.AppRole.AuthBackendLogin("authBackendLoginResource", new()
{
RoleId = "string",
Backend = "string",
Namespace = "string",
SecretId = "string",
SecretIdWo = "string",
SecretIdWoVersion = 0,
});
example, err := approle.NewAuthBackendLogin(ctx, "authBackendLoginResource", &approle.AuthBackendLoginArgs{
RoleId: pulumi.String("string"),
Backend: pulumi.String("string"),
Namespace: pulumi.String("string"),
SecretId: pulumi.String("string"),
SecretIdWo: pulumi.String("string"),
SecretIdWoVersion: pulumi.Int(0),
})
var authBackendLoginResource = new com.pulumi.vault.appRole.AuthBackendLogin("authBackendLoginResource", com.pulumi.vault.appRole.AuthBackendLoginArgs.builder()
.roleId("string")
.backend("string")
.namespace("string")
.secretId("string")
.secretIdWo("string")
.secretIdWoVersion(0)
.build());
auth_backend_login_resource = vault.approle.AuthBackendLogin("authBackendLoginResource",
role_id="string",
backend="string",
namespace="string",
secret_id="string",
secret_id_wo="string",
secret_id_wo_version=0)
const authBackendLoginResource = new vault.approle.AuthBackendLogin("authBackendLoginResource", {
roleId: "string",
backend: "string",
namespace: "string",
secretId: "string",
secretIdWo: "string",
secretIdWoVersion: 0,
});
type: vault:appRole:AuthBackendLogin
properties:
backend: string
namespace: string
roleId: string
secretId: string
secretIdWo: string
secretIdWoVersion: 0
AuthBackendLogin Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AuthBackendLogin resource accepts the following input properties:
- Role
Id string - The ID of the role to log in with.
- Backend string
- The unique path of the Vault backend to log in with.
- Namespace string
- The namespace to provision the resource in.
The value should not contain leading or trailing forward slashes.
The
namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise. - Secret
Id string - The secret ID of the role to log in with. Required
unless
bind_secret_idis set to false on the role. - Secret
Id stringWo - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
The SecretID to log in with. Write-only attribute that can accept ephemeral values. Required unless
bind_secret_idis set to false on the role. - Secret
Id intWo Version - The version of the
secret_id_wo. For more info see updating write-only attributes.
- Role
Id string - The ID of the role to log in with.
- Backend string
- The unique path of the Vault backend to log in with.
- Namespace string
- The namespace to provision the resource in.
The value should not contain leading or trailing forward slashes.
The
namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise. - Secret
Id string - The secret ID of the role to log in with. Required
unless
bind_secret_idis set to false on the role. - Secret
Id stringWo - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
The SecretID to log in with. Write-only attribute that can accept ephemeral values. Required unless
bind_secret_idis set to false on the role. - Secret
Id intWo Version - The version of the
secret_id_wo. For more info see updating write-only attributes.
- role
Id String - The ID of the role to log in with.
- backend String
- The unique path of the Vault backend to log in with.
- namespace String
- The namespace to provision the resource in.
The value should not contain leading or trailing forward slashes.
The
namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise. - secret
Id String - The secret ID of the role to log in with. Required
unless
bind_secret_idis set to false on the role. - secret
Id StringWo - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
The SecretID to log in with. Write-only attribute that can accept ephemeral values. Required unless
bind_secret_idis set to false on the role. - secret
Id IntegerWo Version - The version of the
secret_id_wo. For more info see updating write-only attributes.
- role
Id string - The ID of the role to log in with.
- backend string
- The unique path of the Vault backend to log in with.
- namespace string
- The namespace to provision the resource in.
The value should not contain leading or trailing forward slashes.
The
namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise. - secret
Id string - The secret ID of the role to log in with. Required
unless
bind_secret_idis set to false on the role. - secret
Id stringWo - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
The SecretID to log in with. Write-only attribute that can accept ephemeral values. Required unless
bind_secret_idis set to false on the role. - secret
Id numberWo Version - The version of the
secret_id_wo. For more info see updating write-only attributes.
- role_
id str - The ID of the role to log in with.
- backend str
- The unique path of the Vault backend to log in with.
- namespace str
- The namespace to provision the resource in.
The value should not contain leading or trailing forward slashes.
The
namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise. - secret_
id str - The secret ID of the role to log in with. Required
unless
bind_secret_idis set to false on the role. - secret_
id_ strwo - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
The SecretID to log in with. Write-only attribute that can accept ephemeral values. Required unless
bind_secret_idis set to false on the role. - secret_
id_ intwo_ version - The version of the
secret_id_wo. For more info see updating write-only attributes.
- role
Id String - The ID of the role to log in with.
- backend String
- The unique path of the Vault backend to log in with.
- namespace String
- The namespace to provision the resource in.
The value should not contain leading or trailing forward slashes.
The
namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise. - secret
Id String - The secret ID of the role to log in with. Required
unless
bind_secret_idis set to false on the role. - secret
Id StringWo - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
The SecretID to log in with. Write-only attribute that can accept ephemeral values. Required unless
bind_secret_idis set to false on the role. - secret
Id NumberWo Version - The version of the
secret_id_wo. For more info see updating write-only attributes.
Outputs
All input properties are implicitly available as output properties. Additionally, the AuthBackendLogin resource produces the following output properties:
- Accessor string
- The accessor for the token.
- Client
Token string - The Vault token created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lease
Duration int - How long the token is valid for, in seconds.
- Lease
Started string - The date and time the lease started, in RFC 3339 format.
- Metadata Dictionary<string, string>
- The metadata associated with the token.
- Policies List<string>
- A list of policies applied to the token.
- Renewable bool
- Whether the token is renewable or not.
- Accessor string
- The accessor for the token.
- Client
Token string - The Vault token created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lease
Duration int - How long the token is valid for, in seconds.
- Lease
Started string - The date and time the lease started, in RFC 3339 format.
- Metadata map[string]string
- The metadata associated with the token.
- Policies []string
- A list of policies applied to the token.
- Renewable bool
- Whether the token is renewable or not.
- accessor String
- The accessor for the token.
- client
Token String - The Vault token created.
- id String
- The provider-assigned unique ID for this managed resource.
- lease
Duration Integer - How long the token is valid for, in seconds.
- lease
Started String - The date and time the lease started, in RFC 3339 format.
- metadata Map<String,String>
- The metadata associated with the token.
- policies List<String>
- A list of policies applied to the token.
- renewable Boolean
- Whether the token is renewable or not.
- accessor string
- The accessor for the token.
- client
Token string - The Vault token created.
- id string
- The provider-assigned unique ID for this managed resource.
- lease
Duration number - How long the token is valid for, in seconds.
- lease
Started string - The date and time the lease started, in RFC 3339 format.
- metadata {[key: string]: string}
- The metadata associated with the token.
- policies string[]
- A list of policies applied to the token.
- renewable boolean
- Whether the token is renewable or not.
- accessor str
- The accessor for the token.
- client_
token str - The Vault token created.
- id str
- The provider-assigned unique ID for this managed resource.
- lease_
duration int - How long the token is valid for, in seconds.
- lease_
started str - The date and time the lease started, in RFC 3339 format.
- metadata Mapping[str, str]
- The metadata associated with the token.
- policies Sequence[str]
- A list of policies applied to the token.
- renewable bool
- Whether the token is renewable or not.
- accessor String
- The accessor for the token.
- client
Token String - The Vault token created.
- id String
- The provider-assigned unique ID for this managed resource.
- lease
Duration Number - How long the token is valid for, in seconds.
- lease
Started String - The date and time the lease started, in RFC 3339 format.
- metadata Map<String>
- The metadata associated with the token.
- policies List<String>
- A list of policies applied to the token.
- renewable Boolean
- Whether the token is renewable or not.
Look up Existing AuthBackendLogin Resource
Get an existing AuthBackendLogin resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AuthBackendLoginState, opts?: CustomResourceOptions): AuthBackendLogin@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
accessor: Optional[str] = None,
backend: Optional[str] = None,
client_token: Optional[str] = None,
lease_duration: Optional[int] = None,
lease_started: Optional[str] = None,
metadata: Optional[Mapping[str, str]] = None,
namespace: Optional[str] = None,
policies: Optional[Sequence[str]] = None,
renewable: Optional[bool] = None,
role_id: Optional[str] = None,
secret_id: Optional[str] = None,
secret_id_wo: Optional[str] = None,
secret_id_wo_version: Optional[int] = None) -> AuthBackendLoginfunc GetAuthBackendLogin(ctx *Context, name string, id IDInput, state *AuthBackendLoginState, opts ...ResourceOption) (*AuthBackendLogin, error)public static AuthBackendLogin Get(string name, Input<string> id, AuthBackendLoginState? state, CustomResourceOptions? opts = null)public static AuthBackendLogin get(String name, Output<String> id, AuthBackendLoginState state, CustomResourceOptions options)resources: _: type: vault:appRole:AuthBackendLogin get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Accessor string
- The accessor for the token.
- Backend string
- The unique path of the Vault backend to log in with.
- Client
Token string - The Vault token created.
- Lease
Duration int - How long the token is valid for, in seconds.
- Lease
Started string - The date and time the lease started, in RFC 3339 format.
- Metadata Dictionary<string, string>
- The metadata associated with the token.
- Namespace string
- The namespace to provision the resource in.
The value should not contain leading or trailing forward slashes.
The
namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise. - Policies List<string>
- A list of policies applied to the token.
- Renewable bool
- Whether the token is renewable or not.
- Role
Id string - The ID of the role to log in with.
- Secret
Id string - The secret ID of the role to log in with. Required
unless
bind_secret_idis set to false on the role. - Secret
Id stringWo - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
The SecretID to log in with. Write-only attribute that can accept ephemeral values. Required unless
bind_secret_idis set to false on the role. - Secret
Id intWo Version - The version of the
secret_id_wo. For more info see updating write-only attributes.
- Accessor string
- The accessor for the token.
- Backend string
- The unique path of the Vault backend to log in with.
- Client
Token string - The Vault token created.
- Lease
Duration int - How long the token is valid for, in seconds.
- Lease
Started string - The date and time the lease started, in RFC 3339 format.
- Metadata map[string]string
- The metadata associated with the token.
- Namespace string
- The namespace to provision the resource in.
The value should not contain leading or trailing forward slashes.
The
namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise. - Policies []string
- A list of policies applied to the token.
- Renewable bool
- Whether the token is renewable or not.
- Role
Id string - The ID of the role to log in with.
- Secret
Id string - The secret ID of the role to log in with. Required
unless
bind_secret_idis set to false on the role. - Secret
Id stringWo - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
The SecretID to log in with. Write-only attribute that can accept ephemeral values. Required unless
bind_secret_idis set to false on the role. - Secret
Id intWo Version - The version of the
secret_id_wo. For more info see updating write-only attributes.
- accessor String
- The accessor for the token.
- backend String
- The unique path of the Vault backend to log in with.
- client
Token String - The Vault token created.
- lease
Duration Integer - How long the token is valid for, in seconds.
- lease
Started String - The date and time the lease started, in RFC 3339 format.
- metadata Map<String,String>
- The metadata associated with the token.
- namespace String
- The namespace to provision the resource in.
The value should not contain leading or trailing forward slashes.
The
namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise. - policies List<String>
- A list of policies applied to the token.
- renewable Boolean
- Whether the token is renewable or not.
- role
Id String - The ID of the role to log in with.
- secret
Id String - The secret ID of the role to log in with. Required
unless
bind_secret_idis set to false on the role. - secret
Id StringWo - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
The SecretID to log in with. Write-only attribute that can accept ephemeral values. Required unless
bind_secret_idis set to false on the role. - secret
Id IntegerWo Version - The version of the
secret_id_wo. For more info see updating write-only attributes.
- accessor string
- The accessor for the token.
- backend string
- The unique path of the Vault backend to log in with.
- client
Token string - The Vault token created.
- lease
Duration number - How long the token is valid for, in seconds.
- lease
Started string - The date and time the lease started, in RFC 3339 format.
- metadata {[key: string]: string}
- The metadata associated with the token.
- namespace string
- The namespace to provision the resource in.
The value should not contain leading or trailing forward slashes.
The
namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise. - policies string[]
- A list of policies applied to the token.
- renewable boolean
- Whether the token is renewable or not.
- role
Id string - The ID of the role to log in with.
- secret
Id string - The secret ID of the role to log in with. Required
unless
bind_secret_idis set to false on the role. - secret
Id stringWo - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
The SecretID to log in with. Write-only attribute that can accept ephemeral values. Required unless
bind_secret_idis set to false on the role. - secret
Id numberWo Version - The version of the
secret_id_wo. For more info see updating write-only attributes.
- accessor str
- The accessor for the token.
- backend str
- The unique path of the Vault backend to log in with.
- client_
token str - The Vault token created.
- lease_
duration int - How long the token is valid for, in seconds.
- lease_
started str - The date and time the lease started, in RFC 3339 format.
- metadata Mapping[str, str]
- The metadata associated with the token.
- namespace str
- The namespace to provision the resource in.
The value should not contain leading or trailing forward slashes.
The
namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise. - policies Sequence[str]
- A list of policies applied to the token.
- renewable bool
- Whether the token is renewable or not.
- role_
id str - The ID of the role to log in with.
- secret_
id str - The secret ID of the role to log in with. Required
unless
bind_secret_idis set to false on the role. - secret_
id_ strwo - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
The SecretID to log in with. Write-only attribute that can accept ephemeral values. Required unless
bind_secret_idis set to false on the role. - secret_
id_ intwo_ version - The version of the
secret_id_wo. For more info see updating write-only attributes.
- accessor String
- The accessor for the token.
- backend String
- The unique path of the Vault backend to log in with.
- client
Token String - The Vault token created.
- lease
Duration Number - How long the token is valid for, in seconds.
- lease
Started String - The date and time the lease started, in RFC 3339 format.
- metadata Map<String>
- The metadata associated with the token.
- namespace String
- The namespace to provision the resource in.
The value should not contain leading or trailing forward slashes.
The
namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise. - policies List<String>
- A list of policies applied to the token.
- renewable Boolean
- Whether the token is renewable or not.
- role
Id String - The ID of the role to log in with.
- secret
Id String - The secret ID of the role to log in with. Required
unless
bind_secret_idis set to false on the role. - secret
Id StringWo - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
The SecretID to log in with. Write-only attribute that can accept ephemeral values. Required unless
bind_secret_idis set to false on the role. - secret
Id NumberWo Version - The version of the
secret_id_wo. For more info see updating write-only attributes.
Package Details
- Repository
- Vault pulumi/pulumi-vault
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vaultTerraform Provider.
published on Friday, Feb 6, 2026 by Pulumi
