1. Registry
  2. Packages
  3. HashiCorp Vault Provider
  4. API Docs
  5. cf
  6. AuthBackendConfig
Viewing docs for HashiCorp Vault v7.12.0
published on Saturday, Aug 15, 2026 by Pulumi
vault logo vault logo
Viewing docs for HashiCorp Vault v7.12.0
published on Saturday, Aug 15, 2026 by Pulumi

    Manages the configuration for the CloudFoundry (CF) auth method in Vault.

    Important The cfPasswordWo field is write-only and will never be stored in Terraform state. The password is sent to Vault on every update. See Ephemeral Attributes Reference below.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as std from "@pulumi/std";
    import * as vault from "@pulumi/vault";
    
    const cf = new vault.AuthBackend("cf", {
        type: "cf",
        path: "cf",
    });
    const config = new vault.cf.AuthBackendConfig("config", {
        mount: cf.path,
        identityCaCertificates: [std.file({
            input: "ca.pem",
        }).then(invoke => std.trimspace({
            input: invoke.result,
        })).then(invoke => invoke.result)],
        cfApiAddr: "https://api.my-cf.example.com",
        cfUsername: "admin",
        cfPasswordWo: cfPassword,
        cfPasswordWoVersion: 1,
        loginMaxSecondsNotBefore: 300,
    });
    
    import pulumi
    import pulumi_std as std
    import pulumi_vault as vault
    
    cf = vault.AuthBackend("cf",
        type="cf",
        path="cf")
    config = vault.cf.AuthBackendConfig("config",
        mount=cf.path,
        identity_ca_certificates=[std.trimspace(input=std.file(input="ca.pem").result).result],
        cf_api_addr="https://api.my-cf.example.com",
        cf_username="admin",
        cf_password_wo=cf_password,
        cf_password_wo_version=1,
        login_max_seconds_not_before=300)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-std/sdk/go/std"
    	"github.com/pulumi/pulumi-vault/sdk/v7/go/vault"
    	"github.com/pulumi/pulumi-vault/sdk/v7/go/vault/cf"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cf2, err := vault.NewAuthBackend(ctx, "cf", &vault.AuthBackendArgs{
    			Type: pulumi.String("cf"),
    			Path: pulumi.String("cf"),
    		})
    		if err != nil {
    			return err
    		}
    		invokeTrimspace, err := std.Trimspace(ctx, &std.TrimspaceArgs{
    			Input: std.File(ctx, std.FileArgs{
    				Input: "ca.pem",
    			}, nil).Result,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = cf.NewAuthBackendConfig(ctx, "config", &cf.AuthBackendConfigArgs{
    			Mount: cf2.Path,
    			IdentityCaCertificates: pulumi.StringArray{
    				pulumi.String(invokeTrimspace.Result),
    			},
    			CfApiAddr:                pulumi.String("https://api.my-cf.example.com"),
    			CfUsername:               pulumi.String("admin"),
    			CfPasswordWo:             pulumi.Any(cfPassword),
    			CfPasswordWoVersion:      pulumi.Int(1),
    			LoginMaxSecondsNotBefore: pulumi.Int(300),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Std = Pulumi.Std;
    using Vault = Pulumi.Vault;
    
    return await Deployment.RunAsync(() => 
    {
        var cf = new Vault.AuthBackend("cf", new()
        {
            Type = "cf",
            Path = "cf",
        });
    
        var config = new Vault.Cf.AuthBackendConfig("config", new()
        {
            Mount = cf.Path,
            IdentityCaCertificates = new[]
            {
                Std.File.Invoke(new()
                {
                    Input = "ca.pem",
                }).Apply(invoke => Std.Trimspace.Invoke(new()
                {
                    Input = invoke.Result,
                })).Apply(invoke => invoke.Result),
            },
            CfApiAddr = "https://api.my-cf.example.com",
            CfUsername = "admin",
            CfPasswordWo = cfPassword,
            CfPasswordWoVersion = 1,
            LoginMaxSecondsNotBefore = 300,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vault.AuthBackend;
    import com.pulumi.vault.AuthBackendArgs;
    import com.pulumi.vault.cf.AuthBackendConfig;
    import com.pulumi.vault.cf.AuthBackendConfigArgs;
    import com.pulumi.std.StdFunctions;
    import com.pulumi.std.inputs.FileArgs;
    import com.pulumi.std.inputs.TrimspaceArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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) {
            var cf = new AuthBackend("cf", AuthBackendArgs.builder()
                .type("cf")
                .path("cf")
                .build());
    
            var config = new AuthBackendConfig("config", AuthBackendConfigArgs.builder()
                .mount(cf.path())
                .identityCaCertificates(StdFunctions.trimspace(TrimspaceArgs.builder()
                    .input(StdFunctions.file(FileArgs.builder()
                        .input("ca.pem")
                        .build()).result())
                    .build()).result())
                .cfApiAddr("https://api.my-cf.example.com")
                .cfUsername("admin")
                .cfPasswordWo(cfPassword)
                .cfPasswordWoVersion(1)
                .loginMaxSecondsNotBefore(300)
                .build());
    
        }
    }
    
    resources:
      cf:
        type: vault:AuthBackend
        properties:
          type: cf
          path: cf
      config:
        type: vault:cf:AuthBackendConfig
        properties:
          mount: ${cf.path}
          identityCaCertificates:
            - fn::invoke:
                function: std:trimspace
                arguments:
                  input:
                    fn::invoke:
                      function: std:file
                      arguments:
                        input: ca.pem
                      return: result
                return: result
          cfApiAddr: https://api.my-cf.example.com
          cfUsername: admin
          cfPasswordWo: ${cfPassword}
          cfPasswordWoVersion: 1
          loginMaxSecondsNotBefore: 300
    
    pulumi {
      required_providers {
        std = {
          source = "pulumi/std"
        }
        vault = {
          source = "pulumi/vault"
        }
      }
    }
    
    resource "vault_authbackend" "cf" {
      type = "cf"
      path = "cf"
    }
    resource "vault_cf_authbackendconfig" "config" {
      mount                        = vault_authbackend.cf.path
      identity_ca_certificates     = [trimspace(file("ca.pem"))]
      cf_api_addr                  = "https://api.my-cf.example.com"
      cf_username                  = "admin"
      cf_password_wo               = cfPassword
      cf_password_wo_version       = 1
      login_max_seconds_not_before = 300
    }
    

    Ephemeral Attributes Reference

    The following write-only attributes are supported:

    • cfPasswordWo - (Required) The password for authenticating to the CF API. This attribute is write-only and is never stored in Terraform state. It is sent to Vault on create and on every update. Because Terraform cannot detect changes to write-only values, increment cfPasswordWoVersion to trigger an update when only this password changes.

    • cfPasswordWoVersion - (Required) Version counter for cfPasswordWo. Increment this value to trigger an update when only the write-only password changes.

    Create AuthBackendConfig Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AuthBackendConfig(name: string, args: AuthBackendConfigArgs, opts?: CustomResourceOptions);
    @overload
    def AuthBackendConfig(resource_name: str,
                          args: AuthBackendConfigArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def AuthBackendConfig(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          cf_api_addr: Optional[str] = None,
                          cf_password_wo: Optional[str] = None,
                          cf_password_wo_version: Optional[int] = None,
                          cf_username: Optional[str] = None,
                          identity_ca_certificates: Optional[Sequence[str]] = None,
                          mount: Optional[str] = None,
                          cf_api_trusted_certificates: Optional[Sequence[str]] = None,
                          cf_timeout: Optional[int] = None,
                          login_max_seconds_not_after: Optional[int] = None,
                          login_max_seconds_not_before: Optional[int] = None,
                          namespace: Optional[str] = None)
    func NewAuthBackendConfig(ctx *Context, name string, args AuthBackendConfigArgs, opts ...ResourceOption) (*AuthBackendConfig, error)
    public AuthBackendConfig(string name, AuthBackendConfigArgs args, CustomResourceOptions? opts = null)
    public AuthBackendConfig(String name, AuthBackendConfigArgs args)
    public AuthBackendConfig(String name, AuthBackendConfigArgs args, CustomResourceOptions options)
    
    type: vault:cf:AuthBackendConfig
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "vault_cf_auth_backend_config" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args AuthBackendConfigArgs
    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 AuthBackendConfigArgs
    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 AuthBackendConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AuthBackendConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AuthBackendConfigArgs
    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 vaultAuthBackendConfigResource = new Vault.Cf.AuthBackendConfig("vaultAuthBackendConfigResource", new()
    {
        CfApiAddr = "string",
        CfPasswordWo = "string",
        CfPasswordWoVersion = 0,
        CfUsername = "string",
        IdentityCaCertificates = new[]
        {
            "string",
        },
        Mount = "string",
        CfApiTrustedCertificates = new[]
        {
            "string",
        },
        CfTimeout = 0,
        LoginMaxSecondsNotAfter = 0,
        LoginMaxSecondsNotBefore = 0,
        Namespace = "string",
    });
    
    example, err := cf.NewAuthBackendConfig(ctx, "vaultAuthBackendConfigResource", &cf.AuthBackendConfigArgs{
    	CfApiAddr:           pulumi.String("string"),
    	CfPasswordWo:        pulumi.String("string"),
    	CfPasswordWoVersion: pulumi.Int(0),
    	CfUsername:          pulumi.String("string"),
    	IdentityCaCertificates: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Mount: pulumi.String("string"),
    	CfApiTrustedCertificates: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	CfTimeout:                pulumi.Int(0),
    	LoginMaxSecondsNotAfter:  pulumi.Int(0),
    	LoginMaxSecondsNotBefore: pulumi.Int(0),
    	Namespace:                pulumi.String("string"),
    })
    
    resource "vault_cf_auth_backend_config" "vaultAuthBackendConfigResource" {
      lifecycle {
        create_before_destroy = true
      }
      cf_api_addr                  = "string"
      cf_password_wo               = "string"
      cf_password_wo_version       = 0
      cf_username                  = "string"
      identity_ca_certificates     = ["string"]
      mount                        = "string"
      cf_api_trusted_certificates  = ["string"]
      cf_timeout                   = 0
      login_max_seconds_not_after  = 0
      login_max_seconds_not_before = 0
      namespace                    = "string"
    }
    
    var vaultAuthBackendConfigResource = new com.pulumi.vault.cf.AuthBackendConfig("vaultAuthBackendConfigResource", com.pulumi.vault.cf.AuthBackendConfigArgs.builder()
        .cfApiAddr("string")
        .cfPasswordWo("string")
        .cfPasswordWoVersion(0)
        .cfUsername("string")
        .identityCaCertificates("string")
        .mount("string")
        .cfApiTrustedCertificates("string")
        .cfTimeout(0)
        .loginMaxSecondsNotAfter(0)
        .loginMaxSecondsNotBefore(0)
        .namespace("string")
        .build());
    
    vault_auth_backend_config_resource = vault.cf.AuthBackendConfig("vaultAuthBackendConfigResource",
        cf_api_addr="string",
        cf_password_wo="string",
        cf_password_wo_version=0,
        cf_username="string",
        identity_ca_certificates=["string"],
        mount="string",
        cf_api_trusted_certificates=["string"],
        cf_timeout=0,
        login_max_seconds_not_after=0,
        login_max_seconds_not_before=0,
        namespace="string")
    
    const vaultAuthBackendConfigResource = new vault.cf.AuthBackendConfig("vaultAuthBackendConfigResource", {
        cfApiAddr: "string",
        cfPasswordWo: "string",
        cfPasswordWoVersion: 0,
        cfUsername: "string",
        identityCaCertificates: ["string"],
        mount: "string",
        cfApiTrustedCertificates: ["string"],
        cfTimeout: 0,
        loginMaxSecondsNotAfter: 0,
        loginMaxSecondsNotBefore: 0,
        namespace: "string",
    });
    
    type: vault:cf:AuthBackendConfig
    properties:
        cfApiAddr: string
        cfApiTrustedCertificates:
            - string
        cfPasswordWo: string
        cfPasswordWoVersion: 0
        cfTimeout: 0
        cfUsername: string
        identityCaCertificates:
            - string
        loginMaxSecondsNotAfter: 0
        loginMaxSecondsNotBefore: 0
        mount: string
        namespace: string
    

    AuthBackendConfig 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 AuthBackendConfig resource accepts the following input properties:

    CfApiAddr string
    The full API address of the CF deployment, used to verify that a given CF_INSTANCE_CERT references an application, space, and organization that currently exist.
    CfPasswordWo string
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password for authenticating to the CF API. This attribute is write-only and is never stored in Terraform state.
    CfPasswordWoVersion int
    Version counter for 'cf_password_wo'. Increment this value to trigger an update when only the write-only password changes.
    CfUsername string
    The username for authenticating to the CF API.
    IdentityCaCertificates List<string>
    A set of root CA PEM certificates used to verify that CF_INSTANCE_CERT presented at login was issued by the proper authority.
    Mount string
    The mount path for the CF auth engine in Vault.
    CfApiTrustedCertificates List<string>
    A set of PEM-encoded certificates presented by the CF API. Configures Vault to trust these certificates when making API calls.
    CfTimeout int
    The timeout for CF API calls in seconds. Defaults to 0 (no timeout). Removing this field from your configuration resets the value to 0 in Vault. Requires Vault 1.19.4 or later due to a bug fix in that release.
    LoginMaxSecondsNotAfter int
    The maximum number of seconds in the future when a login signature could have been created. Defaults to 60. Because this field is Computed, removing it from your configuration does not reset the value in Vault — Vault retains whatever was previously set. To reset to the default, set the field explicitly to 60.
    LoginMaxSecondsNotBefore int
    The maximum number of seconds in the past when a login signature could have been created. Defaults to 300. Because this field is Computed, removing it from your configuration does not reset the value in Vault — Vault retains whatever was previously set. To reset to the default, set the field explicitly to 300.
    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.
    CfApiAddr string
    The full API address of the CF deployment, used to verify that a given CF_INSTANCE_CERT references an application, space, and organization that currently exist.
    CfPasswordWo string
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password for authenticating to the CF API. This attribute is write-only and is never stored in Terraform state.
    CfPasswordWoVersion int
    Version counter for 'cf_password_wo'. Increment this value to trigger an update when only the write-only password changes.
    CfUsername string
    The username for authenticating to the CF API.
    IdentityCaCertificates []string
    A set of root CA PEM certificates used to verify that CF_INSTANCE_CERT presented at login was issued by the proper authority.
    Mount string
    The mount path for the CF auth engine in Vault.
    CfApiTrustedCertificates []string
    A set of PEM-encoded certificates presented by the CF API. Configures Vault to trust these certificates when making API calls.
    CfTimeout int
    The timeout for CF API calls in seconds. Defaults to 0 (no timeout). Removing this field from your configuration resets the value to 0 in Vault. Requires Vault 1.19.4 or later due to a bug fix in that release.
    LoginMaxSecondsNotAfter int
    The maximum number of seconds in the future when a login signature could have been created. Defaults to 60. Because this field is Computed, removing it from your configuration does not reset the value in Vault — Vault retains whatever was previously set. To reset to the default, set the field explicitly to 60.
    LoginMaxSecondsNotBefore int
    The maximum number of seconds in the past when a login signature could have been created. Defaults to 300. Because this field is Computed, removing it from your configuration does not reset the value in Vault — Vault retains whatever was previously set. To reset to the default, set the field explicitly to 300.
    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.
    cf_api_addr string
    The full API address of the CF deployment, used to verify that a given CF_INSTANCE_CERT references an application, space, and organization that currently exist.
    cf_password_wo string
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password for authenticating to the CF API. This attribute is write-only and is never stored in Terraform state.
    cf_password_wo_version number
    Version counter for 'cf_password_wo'. Increment this value to trigger an update when only the write-only password changes.
    cf_username string
    The username for authenticating to the CF API.
    identity_ca_certificates list(string)
    A set of root CA PEM certificates used to verify that CF_INSTANCE_CERT presented at login was issued by the proper authority.
    mount string
    The mount path for the CF auth engine in Vault.
    cf_api_trusted_certificates list(string)
    A set of PEM-encoded certificates presented by the CF API. Configures Vault to trust these certificates when making API calls.
    cf_timeout number
    The timeout for CF API calls in seconds. Defaults to 0 (no timeout). Removing this field from your configuration resets the value to 0 in Vault. Requires Vault 1.19.4 or later due to a bug fix in that release.
    login_max_seconds_not_after number
    The maximum number of seconds in the future when a login signature could have been created. Defaults to 60. Because this field is Computed, removing it from your configuration does not reset the value in Vault — Vault retains whatever was previously set. To reset to the default, set the field explicitly to 60.
    login_max_seconds_not_before number
    The maximum number of seconds in the past when a login signature could have been created. Defaults to 300. Because this field is Computed, removing it from your configuration does not reset the value in Vault — Vault retains whatever was previously set. To reset to the default, set the field explicitly to 300.
    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.
    cfApiAddr String
    The full API address of the CF deployment, used to verify that a given CF_INSTANCE_CERT references an application, space, and organization that currently exist.
    cfPasswordWo String
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password for authenticating to the CF API. This attribute is write-only and is never stored in Terraform state.
    cfPasswordWoVersion Integer
    Version counter for 'cf_password_wo'. Increment this value to trigger an update when only the write-only password changes.
    cfUsername String
    The username for authenticating to the CF API.
    identityCaCertificates List<String>
    A set of root CA PEM certificates used to verify that CF_INSTANCE_CERT presented at login was issued by the proper authority.
    mount String
    The mount path for the CF auth engine in Vault.
    cfApiTrustedCertificates List<String>
    A set of PEM-encoded certificates presented by the CF API. Configures Vault to trust these certificates when making API calls.
    cfTimeout Integer
    The timeout for CF API calls in seconds. Defaults to 0 (no timeout). Removing this field from your configuration resets the value to 0 in Vault. Requires Vault 1.19.4 or later due to a bug fix in that release.
    loginMaxSecondsNotAfter Integer
    The maximum number of seconds in the future when a login signature could have been created. Defaults to 60. Because this field is Computed, removing it from your configuration does not reset the value in Vault — Vault retains whatever was previously set. To reset to the default, set the field explicitly to 60.
    loginMaxSecondsNotBefore Integer
    The maximum number of seconds in the past when a login signature could have been created. Defaults to 300. Because this field is Computed, removing it from your configuration does not reset the value in Vault — Vault retains whatever was previously set. To reset to the default, set the field explicitly to 300.
    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.
    cfApiAddr string
    The full API address of the CF deployment, used to verify that a given CF_INSTANCE_CERT references an application, space, and organization that currently exist.
    cfPasswordWo string
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password for authenticating to the CF API. This attribute is write-only and is never stored in Terraform state.
    cfPasswordWoVersion number
    Version counter for 'cf_password_wo'. Increment this value to trigger an update when only the write-only password changes.
    cfUsername string
    The username for authenticating to the CF API.
    identityCaCertificates string[]
    A set of root CA PEM certificates used to verify that CF_INSTANCE_CERT presented at login was issued by the proper authority.
    mount string
    The mount path for the CF auth engine in Vault.
    cfApiTrustedCertificates string[]
    A set of PEM-encoded certificates presented by the CF API. Configures Vault to trust these certificates when making API calls.
    cfTimeout number
    The timeout for CF API calls in seconds. Defaults to 0 (no timeout). Removing this field from your configuration resets the value to 0 in Vault. Requires Vault 1.19.4 or later due to a bug fix in that release.
    loginMaxSecondsNotAfter number
    The maximum number of seconds in the future when a login signature could have been created. Defaults to 60. Because this field is Computed, removing it from your configuration does not reset the value in Vault — Vault retains whatever was previously set. To reset to the default, set the field explicitly to 60.
    loginMaxSecondsNotBefore number
    The maximum number of seconds in the past when a login signature could have been created. Defaults to 300. Because this field is Computed, removing it from your configuration does not reset the value in Vault — Vault retains whatever was previously set. To reset to the default, set the field explicitly to 300.
    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.
    cf_api_addr str
    The full API address of the CF deployment, used to verify that a given CF_INSTANCE_CERT references an application, space, and organization that currently exist.
    cf_password_wo str
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password for authenticating to the CF API. This attribute is write-only and is never stored in Terraform state.
    cf_password_wo_version int
    Version counter for 'cf_password_wo'. Increment this value to trigger an update when only the write-only password changes.
    cf_username str
    The username for authenticating to the CF API.
    identity_ca_certificates Sequence[str]
    A set of root CA PEM certificates used to verify that CF_INSTANCE_CERT presented at login was issued by the proper authority.
    mount str
    The mount path for the CF auth engine in Vault.
    cf_api_trusted_certificates Sequence[str]
    A set of PEM-encoded certificates presented by the CF API. Configures Vault to trust these certificates when making API calls.
    cf_timeout int
    The timeout for CF API calls in seconds. Defaults to 0 (no timeout). Removing this field from your configuration resets the value to 0 in Vault. Requires Vault 1.19.4 or later due to a bug fix in that release.
    login_max_seconds_not_after int
    The maximum number of seconds in the future when a login signature could have been created. Defaults to 60. Because this field is Computed, removing it from your configuration does not reset the value in Vault — Vault retains whatever was previously set. To reset to the default, set the field explicitly to 60.
    login_max_seconds_not_before int
    The maximum number of seconds in the past when a login signature could have been created. Defaults to 300. Because this field is Computed, removing it from your configuration does not reset the value in Vault — Vault retains whatever was previously set. To reset to the default, set the field explicitly to 300.
    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.
    cfApiAddr String
    The full API address of the CF deployment, used to verify that a given CF_INSTANCE_CERT references an application, space, and organization that currently exist.
    cfPasswordWo String
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password for authenticating to the CF API. This attribute is write-only and is never stored in Terraform state.
    cfPasswordWoVersion Number
    Version counter for 'cf_password_wo'. Increment this value to trigger an update when only the write-only password changes.
    cfUsername String
    The username for authenticating to the CF API.
    identityCaCertificates List<String>
    A set of root CA PEM certificates used to verify that CF_INSTANCE_CERT presented at login was issued by the proper authority.
    mount String
    The mount path for the CF auth engine in Vault.
    cfApiTrustedCertificates List<String>
    A set of PEM-encoded certificates presented by the CF API. Configures Vault to trust these certificates when making API calls.
    cfTimeout Number
    The timeout for CF API calls in seconds. Defaults to 0 (no timeout). Removing this field from your configuration resets the value to 0 in Vault. Requires Vault 1.19.4 or later due to a bug fix in that release.
    loginMaxSecondsNotAfter Number
    The maximum number of seconds in the future when a login signature could have been created. Defaults to 60. Because this field is Computed, removing it from your configuration does not reset the value in Vault — Vault retains whatever was previously set. To reset to the default, set the field explicitly to 60.
    loginMaxSecondsNotBefore Number
    The maximum number of seconds in the past when a login signature could have been created. Defaults to 300. Because this field is Computed, removing it from your configuration does not reset the value in Vault — Vault retains whatever was previously set. To reset to the default, set the field explicitly to 300.
    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.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AuthBackendConfig resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing AuthBackendConfig Resource

    Get an existing AuthBackendConfig 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?: AuthBackendConfigState, opts?: CustomResourceOptions): AuthBackendConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cf_api_addr: Optional[str] = None,
            cf_api_trusted_certificates: Optional[Sequence[str]] = None,
            cf_password_wo: Optional[str] = None,
            cf_password_wo_version: Optional[int] = None,
            cf_timeout: Optional[int] = None,
            cf_username: Optional[str] = None,
            identity_ca_certificates: Optional[Sequence[str]] = None,
            login_max_seconds_not_after: Optional[int] = None,
            login_max_seconds_not_before: Optional[int] = None,
            mount: Optional[str] = None,
            namespace: Optional[str] = None) -> AuthBackendConfig
    func GetAuthBackendConfig(ctx *Context, name string, id IDInput, state *AuthBackendConfigState, opts ...ResourceOption) (*AuthBackendConfig, error)
    public static AuthBackendConfig Get(string name, Input<string> id, AuthBackendConfigState? state, CustomResourceOptions? opts = null)
    public static AuthBackendConfig get(String name, Output<String> id, AuthBackendConfigState state, CustomResourceOptions options)
    resources:  _:    type: vault:cf:AuthBackendConfig    get:      id: ${id}
    import {
      to = vault_cf_auth_backend_config.example
      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:
    CfApiAddr string
    The full API address of the CF deployment, used to verify that a given CF_INSTANCE_CERT references an application, space, and organization that currently exist.
    CfApiTrustedCertificates List<string>
    A set of PEM-encoded certificates presented by the CF API. Configures Vault to trust these certificates when making API calls.
    CfPasswordWo string
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password for authenticating to the CF API. This attribute is write-only and is never stored in Terraform state.
    CfPasswordWoVersion int
    Version counter for 'cf_password_wo'. Increment this value to trigger an update when only the write-only password changes.
    CfTimeout int
    The timeout for CF API calls in seconds. Defaults to 0 (no timeout). Removing this field from your configuration resets the value to 0 in Vault. Requires Vault 1.19.4 or later due to a bug fix in that release.
    CfUsername string
    The username for authenticating to the CF API.
    IdentityCaCertificates List<string>
    A set of root CA PEM certificates used to verify that CF_INSTANCE_CERT presented at login was issued by the proper authority.
    LoginMaxSecondsNotAfter int
    The maximum number of seconds in the future when a login signature could have been created. Defaults to 60. Because this field is Computed, removing it from your configuration does not reset the value in Vault — Vault retains whatever was previously set. To reset to the default, set the field explicitly to 60.
    LoginMaxSecondsNotBefore int
    The maximum number of seconds in the past when a login signature could have been created. Defaults to 300. Because this field is Computed, removing it from your configuration does not reset the value in Vault — Vault retains whatever was previously set. To reset to the default, set the field explicitly to 300.
    Mount string
    The mount path for the CF auth engine in Vault.
    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.
    CfApiAddr string
    The full API address of the CF deployment, used to verify that a given CF_INSTANCE_CERT references an application, space, and organization that currently exist.
    CfApiTrustedCertificates []string
    A set of PEM-encoded certificates presented by the CF API. Configures Vault to trust these certificates when making API calls.
    CfPasswordWo string
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password for authenticating to the CF API. This attribute is write-only and is never stored in Terraform state.
    CfPasswordWoVersion int
    Version counter for 'cf_password_wo'. Increment this value to trigger an update when only the write-only password changes.
    CfTimeout int
    The timeout for CF API calls in seconds. Defaults to 0 (no timeout). Removing this field from your configuration resets the value to 0 in Vault. Requires Vault 1.19.4 or later due to a bug fix in that release.
    CfUsername string
    The username for authenticating to the CF API.
    IdentityCaCertificates []string
    A set of root CA PEM certificates used to verify that CF_INSTANCE_CERT presented at login was issued by the proper authority.
    LoginMaxSecondsNotAfter int
    The maximum number of seconds in the future when a login signature could have been created. Defaults to 60. Because this field is Computed, removing it from your configuration does not reset the value in Vault — Vault retains whatever was previously set. To reset to the default, set the field explicitly to 60.
    LoginMaxSecondsNotBefore int
    The maximum number of seconds in the past when a login signature could have been created. Defaults to 300. Because this field is Computed, removing it from your configuration does not reset the value in Vault — Vault retains whatever was previously set. To reset to the default, set the field explicitly to 300.
    Mount string
    The mount path for the CF auth engine in Vault.
    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.
    cf_api_addr string
    The full API address of the CF deployment, used to verify that a given CF_INSTANCE_CERT references an application, space, and organization that currently exist.
    cf_api_trusted_certificates list(string)
    A set of PEM-encoded certificates presented by the CF API. Configures Vault to trust these certificates when making API calls.
    cf_password_wo string
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password for authenticating to the CF API. This attribute is write-only and is never stored in Terraform state.
    cf_password_wo_version number
    Version counter for 'cf_password_wo'. Increment this value to trigger an update when only the write-only password changes.
    cf_timeout number
    The timeout for CF API calls in seconds. Defaults to 0 (no timeout). Removing this field from your configuration resets the value to 0 in Vault. Requires Vault 1.19.4 or later due to a bug fix in that release.
    cf_username string
    The username for authenticating to the CF API.
    identity_ca_certificates list(string)
    A set of root CA PEM certificates used to verify that CF_INSTANCE_CERT presented at login was issued by the proper authority.
    login_max_seconds_not_after number
    The maximum number of seconds in the future when a login signature could have been created. Defaults to 60. Because this field is Computed, removing it from your configuration does not reset the value in Vault — Vault retains whatever was previously set. To reset to the default, set the field explicitly to 60.
    login_max_seconds_not_before number
    The maximum number of seconds in the past when a login signature could have been created. Defaults to 300. Because this field is Computed, removing it from your configuration does not reset the value in Vault — Vault retains whatever was previously set. To reset to the default, set the field explicitly to 300.
    mount string
    The mount path for the CF auth engine in Vault.
    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.
    cfApiAddr String
    The full API address of the CF deployment, used to verify that a given CF_INSTANCE_CERT references an application, space, and organization that currently exist.
    cfApiTrustedCertificates List<String>
    A set of PEM-encoded certificates presented by the CF API. Configures Vault to trust these certificates when making API calls.
    cfPasswordWo String
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password for authenticating to the CF API. This attribute is write-only and is never stored in Terraform state.
    cfPasswordWoVersion Integer
    Version counter for 'cf_password_wo'. Increment this value to trigger an update when only the write-only password changes.
    cfTimeout Integer
    The timeout for CF API calls in seconds. Defaults to 0 (no timeout). Removing this field from your configuration resets the value to 0 in Vault. Requires Vault 1.19.4 or later due to a bug fix in that release.
    cfUsername String
    The username for authenticating to the CF API.
    identityCaCertificates List<String>
    A set of root CA PEM certificates used to verify that CF_INSTANCE_CERT presented at login was issued by the proper authority.
    loginMaxSecondsNotAfter Integer
    The maximum number of seconds in the future when a login signature could have been created. Defaults to 60. Because this field is Computed, removing it from your configuration does not reset the value in Vault — Vault retains whatever was previously set. To reset to the default, set the field explicitly to 60.
    loginMaxSecondsNotBefore Integer
    The maximum number of seconds in the past when a login signature could have been created. Defaults to 300. Because this field is Computed, removing it from your configuration does not reset the value in Vault — Vault retains whatever was previously set. To reset to the default, set the field explicitly to 300.
    mount String
    The mount path for the CF auth engine in Vault.
    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.
    cfApiAddr string
    The full API address of the CF deployment, used to verify that a given CF_INSTANCE_CERT references an application, space, and organization that currently exist.
    cfApiTrustedCertificates string[]
    A set of PEM-encoded certificates presented by the CF API. Configures Vault to trust these certificates when making API calls.
    cfPasswordWo string
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password for authenticating to the CF API. This attribute is write-only and is never stored in Terraform state.
    cfPasswordWoVersion number
    Version counter for 'cf_password_wo'. Increment this value to trigger an update when only the write-only password changes.
    cfTimeout number
    The timeout for CF API calls in seconds. Defaults to 0 (no timeout). Removing this field from your configuration resets the value to 0 in Vault. Requires Vault 1.19.4 or later due to a bug fix in that release.
    cfUsername string
    The username for authenticating to the CF API.
    identityCaCertificates string[]
    A set of root CA PEM certificates used to verify that CF_INSTANCE_CERT presented at login was issued by the proper authority.
    loginMaxSecondsNotAfter number
    The maximum number of seconds in the future when a login signature could have been created. Defaults to 60. Because this field is Computed, removing it from your configuration does not reset the value in Vault — Vault retains whatever was previously set. To reset to the default, set the field explicitly to 60.
    loginMaxSecondsNotBefore number
    The maximum number of seconds in the past when a login signature could have been created. Defaults to 300. Because this field is Computed, removing it from your configuration does not reset the value in Vault — Vault retains whatever was previously set. To reset to the default, set the field explicitly to 300.
    mount string
    The mount path for the CF auth engine in Vault.
    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.
    cf_api_addr str
    The full API address of the CF deployment, used to verify that a given CF_INSTANCE_CERT references an application, space, and organization that currently exist.
    cf_api_trusted_certificates Sequence[str]
    A set of PEM-encoded certificates presented by the CF API. Configures Vault to trust these certificates when making API calls.
    cf_password_wo str
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password for authenticating to the CF API. This attribute is write-only and is never stored in Terraform state.
    cf_password_wo_version int
    Version counter for 'cf_password_wo'. Increment this value to trigger an update when only the write-only password changes.
    cf_timeout int
    The timeout for CF API calls in seconds. Defaults to 0 (no timeout). Removing this field from your configuration resets the value to 0 in Vault. Requires Vault 1.19.4 or later due to a bug fix in that release.
    cf_username str
    The username for authenticating to the CF API.
    identity_ca_certificates Sequence[str]
    A set of root CA PEM certificates used to verify that CF_INSTANCE_CERT presented at login was issued by the proper authority.
    login_max_seconds_not_after int
    The maximum number of seconds in the future when a login signature could have been created. Defaults to 60. Because this field is Computed, removing it from your configuration does not reset the value in Vault — Vault retains whatever was previously set. To reset to the default, set the field explicitly to 60.
    login_max_seconds_not_before int
    The maximum number of seconds in the past when a login signature could have been created. Defaults to 300. Because this field is Computed, removing it from your configuration does not reset the value in Vault — Vault retains whatever was previously set. To reset to the default, set the field explicitly to 300.
    mount str
    The mount path for the CF auth engine in Vault.
    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.
    cfApiAddr String
    The full API address of the CF deployment, used to verify that a given CF_INSTANCE_CERT references an application, space, and organization that currently exist.
    cfApiTrustedCertificates List<String>
    A set of PEM-encoded certificates presented by the CF API. Configures Vault to trust these certificates when making API calls.
    cfPasswordWo String
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password for authenticating to the CF API. This attribute is write-only and is never stored in Terraform state.
    cfPasswordWoVersion Number
    Version counter for 'cf_password_wo'. Increment this value to trigger an update when only the write-only password changes.
    cfTimeout Number
    The timeout for CF API calls in seconds. Defaults to 0 (no timeout). Removing this field from your configuration resets the value to 0 in Vault. Requires Vault 1.19.4 or later due to a bug fix in that release.
    cfUsername String
    The username for authenticating to the CF API.
    identityCaCertificates List<String>
    A set of root CA PEM certificates used to verify that CF_INSTANCE_CERT presented at login was issued by the proper authority.
    loginMaxSecondsNotAfter Number
    The maximum number of seconds in the future when a login signature could have been created. Defaults to 60. Because this field is Computed, removing it from your configuration does not reset the value in Vault — Vault retains whatever was previously set. To reset to the default, set the field explicitly to 60.
    loginMaxSecondsNotBefore Number
    The maximum number of seconds in the past when a login signature could have been created. Defaults to 300. Because this field is Computed, removing it from your configuration does not reset the value in Vault — Vault retains whatever was previously set. To reset to the default, set the field explicitly to 300.
    mount String
    The mount path for the CF auth engine in Vault.
    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.

    Import

    CF auth backend configs can be imported using auth/, the mount path, and /config, e.g.

    $ pulumi import vault:cf/authBackendConfig:AuthBackendConfig config auth/cf/config
    

    The namespace can be set using the environment variable TERRAFORM_VAULT_NAMESPACE.

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Vault pulumi/pulumi-vault
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the vault Terraform Provider.
    vault logo vault logo
    Viewing docs for HashiCorp Vault v7.12.0
    published on Saturday, Aug 15, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial