published on Saturday, Aug 15, 2026 by Pulumi
published on Saturday, Aug 15, 2026 by Pulumi
Manages the configuration for the CloudFoundry (CF) auth method in Vault.
Important The
cfPasswordWofield 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, incrementcfPasswordWoVersionto trigger an update when only this password changes.cfPasswordWoVersion- (Required) Version counter forcfPasswordWo. 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:
- Cf
Api stringAddr - The full API address of the CF deployment, used to
verify that a given
CF_INSTANCE_CERTreferences an application, space, and organization that currently exist. - Cf
Password stringWo - 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 intWo Version - 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 List<string>Certificates - A set of root CA PEM certificates used
to verify that
CF_INSTANCE_CERTpresented at login was issued by the proper authority. - Mount string
- The mount path for the CF auth engine in Vault.
- Cf
Api List<string>Trusted Certificates - 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 to0in Vault. Requires Vault 1.19.4 or later due to a bug fix in that release. - Login
Max intSeconds Not After - The maximum number of
seconds in the future when a login signature could have been created. Defaults
to
60. Because this field isComputed, 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 to60. - Login
Max intSeconds Not Before - The maximum number of
seconds in the past when a login signature could have been created. Defaults
to
300. Because this field isComputed, 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 to300. - 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.
- Cf
Api stringAddr - The full API address of the CF deployment, used to
verify that a given
CF_INSTANCE_CERTreferences an application, space, and organization that currently exist. - Cf
Password stringWo - 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 intWo Version - 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 []stringCertificates - A set of root CA PEM certificates used
to verify that
CF_INSTANCE_CERTpresented at login was issued by the proper authority. - Mount string
- The mount path for the CF auth engine in Vault.
- Cf
Api []stringTrusted Certificates - 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 to0in Vault. Requires Vault 1.19.4 or later due to a bug fix in that release. - Login
Max intSeconds Not After - The maximum number of
seconds in the future when a login signature could have been created. Defaults
to
60. Because this field isComputed, 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 to60. - Login
Max intSeconds Not Before - The maximum number of
seconds in the past when a login signature could have been created. Defaults
to
300. Because this field isComputed, 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 to300. - 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.
- cf_
api_ stringaddr - The full API address of the CF deployment, used to
verify that a given
CF_INSTANCE_CERTreferences an application, space, and organization that currently exist. - cf_
password_ stringwo - 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_ numberwo_ version - 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_ list(string)certificates - A set of root CA PEM certificates used
to verify that
CF_INSTANCE_CERTpresented at login was issued by the proper authority. - mount string
- The mount path for the CF auth engine in Vault.
- cf_
api_ list(string)trusted_ certificates - 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 to0in Vault. Requires Vault 1.19.4 or later due to a bug fix in that release. - login_
max_ numberseconds_ not_ after - The maximum number of
seconds in the future when a login signature could have been created. Defaults
to
60. Because this field isComputed, 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 to60. - login_
max_ numberseconds_ not_ before - The maximum number of
seconds in the past when a login signature could have been created. Defaults
to
300. Because this field isComputed, 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 to300. - 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.
- cf
Api StringAddr - The full API address of the CF deployment, used to
verify that a given
CF_INSTANCE_CERTreferences an application, space, and organization that currently exist. - cf
Password StringWo - 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 IntegerWo Version - 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 List<String>Certificates - A set of root CA PEM certificates used
to verify that
CF_INSTANCE_CERTpresented at login was issued by the proper authority. - mount String
- The mount path for the CF auth engine in Vault.
- cf
Api List<String>Trusted Certificates - A set of PEM-encoded certificates presented by the CF API. Configures Vault to trust these certificates when making API calls.
- cf
Timeout Integer - The timeout for CF API calls in seconds. Defaults to
0(no timeout). Removing this field from your configuration resets the value to0in Vault. Requires Vault 1.19.4 or later due to a bug fix in that release. - login
Max IntegerSeconds Not After - The maximum number of
seconds in the future when a login signature could have been created. Defaults
to
60. Because this field isComputed, 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 to60. - login
Max IntegerSeconds Not Before - The maximum number of
seconds in the past when a login signature could have been created. Defaults
to
300. Because this field isComputed, 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 to300. - 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.
- cf
Api stringAddr - The full API address of the CF deployment, used to
verify that a given
CF_INSTANCE_CERTreferences an application, space, and organization that currently exist. - cf
Password stringWo - 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 numberWo Version - 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 string[]Certificates - A set of root CA PEM certificates used
to verify that
CF_INSTANCE_CERTpresented at login was issued by the proper authority. - mount string
- The mount path for the CF auth engine in Vault.
- cf
Api string[]Trusted Certificates - 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 to0in Vault. Requires Vault 1.19.4 or later due to a bug fix in that release. - login
Max numberSeconds Not After - The maximum number of
seconds in the future when a login signature could have been created. Defaults
to
60. Because this field isComputed, 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 to60. - login
Max numberSeconds Not Before - The maximum number of
seconds in the past when a login signature could have been created. Defaults
to
300. Because this field isComputed, 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 to300. - 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.
- cf_
api_ straddr - The full API address of the CF deployment, used to
verify that a given
CF_INSTANCE_CERTreferences an application, space, and organization that currently exist. - cf_
password_ strwo - 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_ intwo_ version - 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_ Sequence[str]certificates - A set of root CA PEM certificates used
to verify that
CF_INSTANCE_CERTpresented at login was issued by the proper authority. - mount str
- The mount path for the CF auth engine in Vault.
- cf_
api_ Sequence[str]trusted_ certificates - 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 to0in Vault. Requires Vault 1.19.4 or later due to a bug fix in that release. - login_
max_ intseconds_ not_ after - The maximum number of
seconds in the future when a login signature could have been created. Defaults
to
60. Because this field isComputed, 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 to60. - login_
max_ intseconds_ not_ before - The maximum number of
seconds in the past when a login signature could have been created. Defaults
to
300. Because this field isComputed, 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 to300. - 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.
- cf
Api StringAddr - The full API address of the CF deployment, used to
verify that a given
CF_INSTANCE_CERTreferences an application, space, and organization that currently exist. - cf
Password StringWo - 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 NumberWo Version - 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 List<String>Certificates - A set of root CA PEM certificates used
to verify that
CF_INSTANCE_CERTpresented at login was issued by the proper authority. - mount String
- The mount path for the CF auth engine in Vault.
- cf
Api List<String>Trusted Certificates - 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 to0in Vault. Requires Vault 1.19.4 or later due to a bug fix in that release. - login
Max NumberSeconds Not After - The maximum number of
seconds in the future when a login signature could have been created. Defaults
to
60. Because this field isComputed, 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 to60. - login
Max NumberSeconds Not Before - The maximum number of
seconds in the past when a login signature could have been created. Defaults
to
300. Because this field isComputed, 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 to300. - 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.
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) -> AuthBackendConfigfunc 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.
- Cf
Api stringAddr - The full API address of the CF deployment, used to
verify that a given
CF_INSTANCE_CERTreferences an application, space, and organization that currently exist. - Cf
Api List<string>Trusted Certificates - A set of PEM-encoded certificates presented by the CF API. Configures Vault to trust these certificates when making API calls.
- Cf
Password stringWo - 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 intWo Version - 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 to0in 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 List<string>Certificates - A set of root CA PEM certificates used
to verify that
CF_INSTANCE_CERTpresented at login was issued by the proper authority. - Login
Max intSeconds Not After - The maximum number of
seconds in the future when a login signature could have been created. Defaults
to
60. Because this field isComputed, 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 to60. - Login
Max intSeconds Not Before - The maximum number of
seconds in the past when a login signature could have been created. Defaults
to
300. Because this field isComputed, 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 to300. - 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
namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise.
- Cf
Api stringAddr - The full API address of the CF deployment, used to
verify that a given
CF_INSTANCE_CERTreferences an application, space, and organization that currently exist. - Cf
Api []stringTrusted Certificates - A set of PEM-encoded certificates presented by the CF API. Configures Vault to trust these certificates when making API calls.
- Cf
Password stringWo - 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 intWo Version - 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 to0in 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 []stringCertificates - A set of root CA PEM certificates used
to verify that
CF_INSTANCE_CERTpresented at login was issued by the proper authority. - Login
Max intSeconds Not After - The maximum number of
seconds in the future when a login signature could have been created. Defaults
to
60. Because this field isComputed, 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 to60. - Login
Max intSeconds Not Before - The maximum number of
seconds in the past when a login signature could have been created. Defaults
to
300. Because this field isComputed, 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 to300. - 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
namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise.
- cf_
api_ stringaddr - The full API address of the CF deployment, used to
verify that a given
CF_INSTANCE_CERTreferences an application, space, and organization that currently exist. - cf_
api_ list(string)trusted_ certificates - A set of PEM-encoded certificates presented by the CF API. Configures Vault to trust these certificates when making API calls.
- cf_
password_ stringwo - 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_ numberwo_ version - 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 to0in 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_ list(string)certificates - A set of root CA PEM certificates used
to verify that
CF_INSTANCE_CERTpresented at login was issued by the proper authority. - login_
max_ numberseconds_ not_ after - The maximum number of
seconds in the future when a login signature could have been created. Defaults
to
60. Because this field isComputed, 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 to60. - login_
max_ numberseconds_ not_ before - The maximum number of
seconds in the past when a login signature could have been created. Defaults
to
300. Because this field isComputed, 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 to300. - 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
namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise.
- cf
Api StringAddr - The full API address of the CF deployment, used to
verify that a given
CF_INSTANCE_CERTreferences an application, space, and organization that currently exist. - cf
Api List<String>Trusted Certificates - A set of PEM-encoded certificates presented by the CF API. Configures Vault to trust these certificates when making API calls.
- cf
Password StringWo - 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 IntegerWo Version - Version counter for 'cf_password_wo'. Increment this value to trigger an update when only the write-only password changes.
- cf
Timeout Integer - The timeout for CF API calls in seconds. Defaults to
0(no timeout). Removing this field from your configuration resets the value to0in 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 List<String>Certificates - A set of root CA PEM certificates used
to verify that
CF_INSTANCE_CERTpresented at login was issued by the proper authority. - login
Max IntegerSeconds Not After - The maximum number of
seconds in the future when a login signature could have been created. Defaults
to
60. Because this field isComputed, 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 to60. - login
Max IntegerSeconds Not Before - The maximum number of
seconds in the past when a login signature could have been created. Defaults
to
300. Because this field isComputed, 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 to300. - 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
namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise.
- cf
Api stringAddr - The full API address of the CF deployment, used to
verify that a given
CF_INSTANCE_CERTreferences an application, space, and organization that currently exist. - cf
Api string[]Trusted Certificates - A set of PEM-encoded certificates presented by the CF API. Configures Vault to trust these certificates when making API calls.
- cf
Password stringWo - 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 numberWo Version - 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 to0in 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 string[]Certificates - A set of root CA PEM certificates used
to verify that
CF_INSTANCE_CERTpresented at login was issued by the proper authority. - login
Max numberSeconds Not After - The maximum number of
seconds in the future when a login signature could have been created. Defaults
to
60. Because this field isComputed, 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 to60. - login
Max numberSeconds Not Before - The maximum number of
seconds in the past when a login signature could have been created. Defaults
to
300. Because this field isComputed, 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 to300. - 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
namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise.
- cf_
api_ straddr - The full API address of the CF deployment, used to
verify that a given
CF_INSTANCE_CERTreferences an application, space, and organization that currently exist. - cf_
api_ Sequence[str]trusted_ certificates - A set of PEM-encoded certificates presented by the CF API. Configures Vault to trust these certificates when making API calls.
- cf_
password_ strwo - 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_ intwo_ version - 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 to0in 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_ Sequence[str]certificates - A set of root CA PEM certificates used
to verify that
CF_INSTANCE_CERTpresented at login was issued by the proper authority. - login_
max_ intseconds_ not_ after - The maximum number of
seconds in the future when a login signature could have been created. Defaults
to
60. Because this field isComputed, 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 to60. - login_
max_ intseconds_ not_ before - The maximum number of
seconds in the past when a login signature could have been created. Defaults
to
300. Because this field isComputed, 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 to300. - 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
namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise.
- cf
Api StringAddr - The full API address of the CF deployment, used to
verify that a given
CF_INSTANCE_CERTreferences an application, space, and organization that currently exist. - cf
Api List<String>Trusted Certificates - A set of PEM-encoded certificates presented by the CF API. Configures Vault to trust these certificates when making API calls.
- cf
Password StringWo - 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 NumberWo Version - 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 to0in 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 List<String>Certificates - A set of root CA PEM certificates used
to verify that
CF_INSTANCE_CERTpresented at login was issued by the proper authority. - login
Max NumberSeconds Not After - The maximum number of
seconds in the future when a login signature could have been created. Defaults
to
60. Because this field isComputed, 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 to60. - login
Max NumberSeconds Not Before - The maximum number of
seconds in the past when a login signature could have been created. Defaults
to
300. Because this field isComputed, 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 to300. - 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
namespaceis 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
vaultTerraform Provider.
published on Saturday, Aug 15, 2026 by Pulumi