1. Packages
  2. HashiCorp Vault Provider
  3. API Docs
  4. appRole
  5. AuthBackendLogin
Viewing docs for HashiCorp Vault v7.7.0
published on Friday, Feb 6, 2026 by Pulumi
vault logo
Viewing docs for HashiCorp Vault v7.7.0
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:

    RoleId 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 namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    SecretId string
    The secret ID of the role to log in with. Required unless bind_secret_id is set to false on the role.
    SecretIdWo string
    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_id is set to false on the role.
    SecretIdWoVersion int
    The version of the secret_id_wo. For more info see updating write-only attributes.
    RoleId 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 namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    SecretId string
    The secret ID of the role to log in with. Required unless bind_secret_id is set to false on the role.
    SecretIdWo string
    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_id is set to false on the role.
    SecretIdWoVersion int
    The version of the secret_id_wo. For more info see updating write-only attributes.
    roleId 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 namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    secretId String
    The secret ID of the role to log in with. Required unless bind_secret_id is set to false on the role.
    secretIdWo String
    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_id is set to false on the role.
    secretIdWoVersion Integer
    The version of the secret_id_wo. For more info see updating write-only attributes.
    roleId 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 namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    secretId string
    The secret ID of the role to log in with. Required unless bind_secret_id is set to false on the role.
    secretIdWo string
    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_id is set to false on the role.
    secretIdWoVersion number
    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 namespace is 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_id is set to false on the role.
    secret_id_wo str
    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_id is set to false on the role.
    secret_id_wo_version int
    The version of the secret_id_wo. For more info see updating write-only attributes.
    roleId 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 namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    secretId String
    The secret ID of the role to log in with. Required unless bind_secret_id is set to false on the role.
    secretIdWo String
    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_id is set to false on the role.
    secretIdWoVersion Number
    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.
    ClientToken string
    The Vault token created.
    Id string
    The provider-assigned unique ID for this managed resource.
    LeaseDuration int
    How long the token is valid for, in seconds.
    LeaseStarted 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.
    ClientToken string
    The Vault token created.
    Id string
    The provider-assigned unique ID for this managed resource.
    LeaseDuration int
    How long the token is valid for, in seconds.
    LeaseStarted 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.
    clientToken String
    The Vault token created.
    id String
    The provider-assigned unique ID for this managed resource.
    leaseDuration Integer
    How long the token is valid for, in seconds.
    leaseStarted 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.
    clientToken string
    The Vault token created.
    id string
    The provider-assigned unique ID for this managed resource.
    leaseDuration number
    How long the token is valid for, in seconds.
    leaseStarted 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.
    clientToken String
    The Vault token created.
    id String
    The provider-assigned unique ID for this managed resource.
    leaseDuration Number
    How long the token is valid for, in seconds.
    leaseStarted 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) -> AuthBackendLogin
    func 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.
    The following state arguments are supported:
    Accessor string
    The accessor for the token.
    Backend string
    The unique path of the Vault backend to log in with.
    ClientToken string
    The Vault token created.
    LeaseDuration int
    How long the token is valid for, in seconds.
    LeaseStarted 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 namespace is 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.
    RoleId string
    The ID of the role to log in with.
    SecretId string
    The secret ID of the role to log in with. Required unless bind_secret_id is set to false on the role.
    SecretIdWo string
    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_id is set to false on the role.
    SecretIdWoVersion int
    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.
    ClientToken string
    The Vault token created.
    LeaseDuration int
    How long the token is valid for, in seconds.
    LeaseStarted 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 namespace is 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.
    RoleId string
    The ID of the role to log in with.
    SecretId string
    The secret ID of the role to log in with. Required unless bind_secret_id is set to false on the role.
    SecretIdWo string
    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_id is set to false on the role.
    SecretIdWoVersion int
    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.
    clientToken String
    The Vault token created.
    leaseDuration Integer
    How long the token is valid for, in seconds.
    leaseStarted 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 namespace is 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.
    roleId String
    The ID of the role to log in with.
    secretId String
    The secret ID of the role to log in with. Required unless bind_secret_id is set to false on the role.
    secretIdWo String
    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_id is set to false on the role.
    secretIdWoVersion Integer
    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.
    clientToken string
    The Vault token created.
    leaseDuration number
    How long the token is valid for, in seconds.
    leaseStarted 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 namespace is 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.
    roleId string
    The ID of the role to log in with.
    secretId string
    The secret ID of the role to log in with. Required unless bind_secret_id is set to false on the role.
    secretIdWo string
    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_id is set to false on the role.
    secretIdWoVersion number
    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 namespace is 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_id is set to false on the role.
    secret_id_wo str
    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_id is set to false on the role.
    secret_id_wo_version int
    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.
    clientToken String
    The Vault token created.
    leaseDuration Number
    How long the token is valid for, in seconds.
    leaseStarted 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 namespace is 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.
    roleId String
    The ID of the role to log in with.
    secretId String
    The secret ID of the role to log in with. Required unless bind_secret_id is set to false on the role.
    secretIdWo String
    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_id is set to false on the role.
    secretIdWoVersion Number
    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 vault Terraform Provider.
    vault logo
    Viewing docs for HashiCorp Vault v7.7.0
    published on Friday, Feb 6, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.