published on Saturday, Aug 15, 2026 by Pulumi
published on Saturday, Aug 15, 2026 by Pulumi
Manages a role for the CloudFoundry (CF) auth method in Vault. Roles define the constraints that must be satisfied by a CF instance certificate at login time, and the token parameters issued on a successful login.
Note Roles can be created independently of the backend configuration, but a
vault.cf.AuthBackendConfigmust be in place before any login attempt will succeed.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vault from "@pulumi/vault";
const cf = new vault.AuthBackend("cf", {
type: "cf",
path: "cf",
});
const cfPolicy = new vault.Policy("cf_policy", {
name: "cf-policy",
policy: `path \\"secret/*\\" {
capabilities = [\\"read\\"]
}
`,
});
const role = new vault.cf.AuthBackendRole("role", {
mount: cf.path,
name: "my-role",
boundSpaceIds: ["space-uuid-1"],
boundOrganizationIds: ["org-uuid-1"],
disableIpMatching: true,
tokenTtl: 3600,
tokenPolicies: [cfPolicy.name],
});
import pulumi
import pulumi_vault as vault
cf = vault.AuthBackend("cf",
type="cf",
path="cf")
cf_policy = vault.Policy("cf_policy",
name="cf-policy",
policy="""path \"secret/*\" {
capabilities = [\"read\"]
}
""")
role = vault.cf.AuthBackendRole("role",
mount=cf.path,
name="my-role",
bound_space_ids=["space-uuid-1"],
bound_organization_ids=["org-uuid-1"],
disable_ip_matching=True,
token_ttl=3600,
token_policies=[cf_policy.name])
package main
import (
"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
}
cfPolicy, err := vault.NewPolicy(ctx, "cf_policy", &vault.PolicyArgs{
Name: pulumi.String("cf-policy"),
Policy: pulumi.String("path \\\"secret/*\\\" {\n capabilities = [\\\"read\\\"]\n}\n"),
})
if err != nil {
return err
}
_, err = cf.NewAuthBackendRole(ctx, "role", &cf.AuthBackendRoleArgs{
Mount: cf2.Path,
Name: pulumi.String("my-role"),
BoundSpaceIds: pulumi.StringArray{
pulumi.String("space-uuid-1"),
},
BoundOrganizationIds: pulumi.StringArray{
pulumi.String("org-uuid-1"),
},
DisableIpMatching: pulumi.Bool(true),
TokenTtl: pulumi.Int(3600),
TokenPolicies: pulumi.StringArray{
cfPolicy.Name,
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vault = Pulumi.Vault;
return await Deployment.RunAsync(() =>
{
var cf = new Vault.AuthBackend("cf", new()
{
Type = "cf",
Path = "cf",
});
var cfPolicy = new Vault.Policy("cf_policy", new()
{
Name = "cf-policy",
PolicyContents = @"path \""secret/*\"" {
capabilities = [\""read\""]
}
",
});
var role = new Vault.Cf.AuthBackendRole("role", new()
{
Mount = cf.Path,
Name = "my-role",
BoundSpaceIds = new[]
{
"space-uuid-1",
},
BoundOrganizationIds = new[]
{
"org-uuid-1",
},
DisableIpMatching = true,
TokenTtl = 3600,
TokenPolicies = new[]
{
cfPolicy.Name,
},
});
});
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.Policy;
import com.pulumi.vault.PolicyArgs;
import com.pulumi.vault.cf.AuthBackendRole;
import com.pulumi.vault.cf.AuthBackendRoleArgs;
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 cfPolicy = new Policy("cfPolicy", PolicyArgs.builder()
.name("cf-policy")
.policy("""
path \"secret/*\" {
capabilities = [\"read\"]
}
""")
.build());
var role = new AuthBackendRole("role", AuthBackendRoleArgs.builder()
.mount(cf.path())
.name("my-role")
.boundSpaceIds("space-uuid-1")
.boundOrganizationIds("org-uuid-1")
.disableIpMatching(true)
.tokenTtl(3600)
.tokenPolicies(cfPolicy.name())
.build());
}
}
resources:
cf:
type: vault:AuthBackend
properties:
type: cf
path: cf
cfPolicy:
type: vault:Policy
name: cf_policy
properties:
name: cf-policy
policy: |
path \"secret/*\" {
capabilities = [\"read\"]
}
role:
type: vault:cf:AuthBackendRole
properties:
mount: ${cf.path}
name: my-role
boundSpaceIds:
- space-uuid-1
boundOrganizationIds:
- org-uuid-1
disableIpMatching: true
tokenTtl: 3600
tokenPolicies:
- ${cfPolicy.name}
pulumi {
required_providers {
vault = {
source = "pulumi/vault"
}
}
}
resource "vault_authbackend" "cf" {
type = "cf"
path = "cf"
}
resource "vault_policy" "cf_policy" {
name = "cf-policy"
policy = "path \\\"secret/*\\\" {\n capabilities = [\\\"read\\\"]\n}\n"
}
resource "vault_cf_authbackendrole" "role" {
mount = vault_authbackend.cf.path
name = "my-role"
bound_space_ids = ["space-uuid-1"]
bound_organization_ids = ["org-uuid-1"]
disable_ip_matching = true
token_ttl = 3600
token_policies = [vault_policy.cf_policy.name]
}
Create AuthBackendRole Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AuthBackendRole(name: string, args: AuthBackendRoleArgs, opts?: CustomResourceOptions);@overload
def AuthBackendRole(resource_name: str,
args: AuthBackendRoleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AuthBackendRole(resource_name: str,
opts: Optional[ResourceOptions] = None,
mount: Optional[str] = None,
namespace: Optional[str] = None,
token_explicit_max_ttl: Optional[int] = None,
bound_organization_ids: Optional[Sequence[str]] = None,
bound_space_ids: Optional[Sequence[str]] = None,
disable_ip_matching: Optional[bool] = None,
bound_application_ids: Optional[Sequence[str]] = None,
name: Optional[str] = None,
alias_metadata: Optional[Mapping[str, str]] = None,
bound_instance_ids: Optional[Sequence[str]] = None,
token_max_ttl: Optional[int] = None,
token_bound_cidrs: Optional[Sequence[str]] = None,
token_no_default_policy: Optional[bool] = None,
token_num_uses: Optional[int] = None,
token_period: Optional[int] = None,
token_policies: Optional[Sequence[str]] = None,
token_ttl: Optional[int] = None,
token_type: Optional[str] = None)func NewAuthBackendRole(ctx *Context, name string, args AuthBackendRoleArgs, opts ...ResourceOption) (*AuthBackendRole, error)public AuthBackendRole(string name, AuthBackendRoleArgs args, CustomResourceOptions? opts = null)
public AuthBackendRole(String name, AuthBackendRoleArgs args)
public AuthBackendRole(String name, AuthBackendRoleArgs args, CustomResourceOptions options)
type: vault:cf:AuthBackendRole
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "vault_cf_auth_backend_role" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args AuthBackendRoleArgs
- 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 AuthBackendRoleArgs
- 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 AuthBackendRoleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AuthBackendRoleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AuthBackendRoleArgs
- 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 exampleauthBackendRoleResourceResourceFromCfauthBackendRole = new Vault.Cf.AuthBackendRole("exampleauthBackendRoleResourceResourceFromCfauthBackendRole", new()
{
Mount = "string",
Namespace = "string",
TokenExplicitMaxTtl = 0,
BoundOrganizationIds = new[]
{
"string",
},
BoundSpaceIds = new[]
{
"string",
},
DisableIpMatching = false,
BoundApplicationIds = new[]
{
"string",
},
Name = "string",
AliasMetadata =
{
{ "string", "string" },
},
BoundInstanceIds = new[]
{
"string",
},
TokenMaxTtl = 0,
TokenBoundCidrs = new[]
{
"string",
},
TokenNoDefaultPolicy = false,
TokenNumUses = 0,
TokenPeriod = 0,
TokenPolicies = new[]
{
"string",
},
TokenTtl = 0,
TokenType = "string",
});
example, err := cf.NewAuthBackendRole(ctx, "exampleauthBackendRoleResourceResourceFromCfauthBackendRole", &cf.AuthBackendRoleArgs{
Mount: pulumi.String("string"),
Namespace: pulumi.String("string"),
TokenExplicitMaxTtl: pulumi.Int(0),
BoundOrganizationIds: pulumi.StringArray{
pulumi.String("string"),
},
BoundSpaceIds: pulumi.StringArray{
pulumi.String("string"),
},
DisableIpMatching: pulumi.Bool(false),
BoundApplicationIds: pulumi.StringArray{
pulumi.String("string"),
},
Name: pulumi.String("string"),
AliasMetadata: pulumi.StringMap{
"string": pulumi.String("string"),
},
BoundInstanceIds: pulumi.StringArray{
pulumi.String("string"),
},
TokenMaxTtl: pulumi.Int(0),
TokenBoundCidrs: pulumi.StringArray{
pulumi.String("string"),
},
TokenNoDefaultPolicy: pulumi.Bool(false),
TokenNumUses: pulumi.Int(0),
TokenPeriod: pulumi.Int(0),
TokenPolicies: pulumi.StringArray{
pulumi.String("string"),
},
TokenTtl: pulumi.Int(0),
TokenType: pulumi.String("string"),
})
resource "vault_cf_auth_backend_role" "exampleauthBackendRoleResourceResourceFromCfauthBackendRole" {
lifecycle {
create_before_destroy = true
}
mount = "string"
namespace = "string"
token_explicit_max_ttl = 0
bound_organization_ids = ["string"]
bound_space_ids = ["string"]
disable_ip_matching = false
bound_application_ids = ["string"]
name = "string"
alias_metadata = {
"string" = "string"
}
bound_instance_ids = ["string"]
token_max_ttl = 0
token_bound_cidrs = ["string"]
token_no_default_policy = false
token_num_uses = 0
token_period = 0
token_policies = ["string"]
token_ttl = 0
token_type = "string"
}
var exampleauthBackendRoleResourceResourceFromCfauthBackendRole = new com.pulumi.vault.cf.AuthBackendRole("exampleauthBackendRoleResourceResourceFromCfauthBackendRole", com.pulumi.vault.cf.AuthBackendRoleArgs.builder()
.mount("string")
.namespace("string")
.tokenExplicitMaxTtl(0)
.boundOrganizationIds("string")
.boundSpaceIds("string")
.disableIpMatching(false)
.boundApplicationIds("string")
.name("string")
.aliasMetadata(Map.of("string", "string"))
.boundInstanceIds("string")
.tokenMaxTtl(0)
.tokenBoundCidrs("string")
.tokenNoDefaultPolicy(false)
.tokenNumUses(0)
.tokenPeriod(0)
.tokenPolicies("string")
.tokenTtl(0)
.tokenType("string")
.build());
exampleauth_backend_role_resource_resource_from_cfauth_backend_role = vault.cf.AuthBackendRole("exampleauthBackendRoleResourceResourceFromCfauthBackendRole",
mount="string",
namespace="string",
token_explicit_max_ttl=0,
bound_organization_ids=["string"],
bound_space_ids=["string"],
disable_ip_matching=False,
bound_application_ids=["string"],
name="string",
alias_metadata={
"string": "string",
},
bound_instance_ids=["string"],
token_max_ttl=0,
token_bound_cidrs=["string"],
token_no_default_policy=False,
token_num_uses=0,
token_period=0,
token_policies=["string"],
token_ttl=0,
token_type="string")
const exampleauthBackendRoleResourceResourceFromCfauthBackendRole = new vault.cf.AuthBackendRole("exampleauthBackendRoleResourceResourceFromCfauthBackendRole", {
mount: "string",
namespace: "string",
tokenExplicitMaxTtl: 0,
boundOrganizationIds: ["string"],
boundSpaceIds: ["string"],
disableIpMatching: false,
boundApplicationIds: ["string"],
name: "string",
aliasMetadata: {
string: "string",
},
boundInstanceIds: ["string"],
tokenMaxTtl: 0,
tokenBoundCidrs: ["string"],
tokenNoDefaultPolicy: false,
tokenNumUses: 0,
tokenPeriod: 0,
tokenPolicies: ["string"],
tokenTtl: 0,
tokenType: "string",
});
type: vault:cf:AuthBackendRole
properties:
aliasMetadata:
string: string
boundApplicationIds:
- string
boundInstanceIds:
- string
boundOrganizationIds:
- string
boundSpaceIds:
- string
disableIpMatching: false
mount: string
name: string
namespace: string
tokenBoundCidrs:
- string
tokenExplicitMaxTtl: 0
tokenMaxTtl: 0
tokenNoDefaultPolicy: false
tokenNumUses: 0
tokenPeriod: 0
tokenPolicies:
- string
tokenTtl: 0
tokenType: string
AuthBackendRole 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 AuthBackendRole resource accepts the following input properties:
- Mount string
- The mount path for the CF auth engine in Vault.
- Alias
Metadata Dictionary<string, string> - A map of string to string that will be set as metadata on the identity alias
- Bound
Application List<string>Ids - An optional set of CF application IDs. If set, a logging-in instance must belong to one of these applications.
- Bound
Instance List<string>Ids - An optional set of CF instance IDs. If set, the logging-in instance's ID must appear in this list.
- Bound
Organization List<string>Ids - An optional set of CF organization IDs. If set, a logging-in instance must belong to one of these organizations.
- Bound
Space List<string>Ids - An optional set of CF space IDs. If set, a logging-in instance must belong to one of these spaces.
- Disable
Ip boolMatching - If
true, disables the default behavior that requires login requests to originate from an IP address listed in the instance certificate. Useful when CF instances sit behind a load balancer or NAT. Defaults tofalse. Removing this field from your configuration resets the value tofalsein Vault. - Name string
- The name of the CF auth role.
- 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. - Token
Bound List<string>Cidrs - Specifies the blocks of IP addresses which are allowed to use the generated token
- Token
Explicit intMax Ttl - Generated Token's Explicit Maximum TTL in seconds
- Token
Max intTtl - The maximum lifetime of the generated token
- Token
No boolDefault Policy - If true, the 'default' policy will not automatically be added to generated tokens
- Token
Num intUses - The maximum number of times a token may be used, a value of zero means unlimited
- Token
Period int - Generated Token's Period
- Token
Policies List<string> - Generated Token's Policies
- Token
Ttl int - The initial ttl of the token to generate in seconds
- Token
Type string - The type of token to generate, service or batch
- Mount string
- The mount path for the CF auth engine in Vault.
- Alias
Metadata map[string]string - A map of string to string that will be set as metadata on the identity alias
- Bound
Application []stringIds - An optional set of CF application IDs. If set, a logging-in instance must belong to one of these applications.
- Bound
Instance []stringIds - An optional set of CF instance IDs. If set, the logging-in instance's ID must appear in this list.
- Bound
Organization []stringIds - An optional set of CF organization IDs. If set, a logging-in instance must belong to one of these organizations.
- Bound
Space []stringIds - An optional set of CF space IDs. If set, a logging-in instance must belong to one of these spaces.
- Disable
Ip boolMatching - If
true, disables the default behavior that requires login requests to originate from an IP address listed in the instance certificate. Useful when CF instances sit behind a load balancer or NAT. Defaults tofalse. Removing this field from your configuration resets the value tofalsein Vault. - Name string
- The name of the CF auth role.
- 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. - Token
Bound []stringCidrs - Specifies the blocks of IP addresses which are allowed to use the generated token
- Token
Explicit intMax Ttl - Generated Token's Explicit Maximum TTL in seconds
- Token
Max intTtl - The maximum lifetime of the generated token
- Token
No boolDefault Policy - If true, the 'default' policy will not automatically be added to generated tokens
- Token
Num intUses - The maximum number of times a token may be used, a value of zero means unlimited
- Token
Period int - Generated Token's Period
- Token
Policies []string - Generated Token's Policies
- Token
Ttl int - The initial ttl of the token to generate in seconds
- Token
Type string - The type of token to generate, service or batch
- mount string
- The mount path for the CF auth engine in Vault.
- alias_
metadata map(string) - A map of string to string that will be set as metadata on the identity alias
- bound_
application_ list(string)ids - An optional set of CF application IDs. If set, a logging-in instance must belong to one of these applications.
- bound_
instance_ list(string)ids - An optional set of CF instance IDs. If set, the logging-in instance's ID must appear in this list.
- bound_
organization_ list(string)ids - An optional set of CF organization IDs. If set, a logging-in instance must belong to one of these organizations.
- bound_
space_ list(string)ids - An optional set of CF space IDs. If set, a logging-in instance must belong to one of these spaces.
- disable_
ip_ boolmatching - If
true, disables the default behavior that requires login requests to originate from an IP address listed in the instance certificate. Useful when CF instances sit behind a load balancer or NAT. Defaults tofalse. Removing this field from your configuration resets the value tofalsein Vault. - name string
- The name of the CF auth role.
- 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. - token_
bound_ list(string)cidrs - Specifies the blocks of IP addresses which are allowed to use the generated token
- token_
explicit_ numbermax_ ttl - Generated Token's Explicit Maximum TTL in seconds
- token_
max_ numberttl - The maximum lifetime of the generated token
- token_
no_ booldefault_ policy - If true, the 'default' policy will not automatically be added to generated tokens
- token_
num_ numberuses - The maximum number of times a token may be used, a value of zero means unlimited
- token_
period number - Generated Token's Period
- token_
policies list(string) - Generated Token's Policies
- token_
ttl number - The initial ttl of the token to generate in seconds
- token_
type string - The type of token to generate, service or batch
- mount String
- The mount path for the CF auth engine in Vault.
- alias
Metadata Map<String,String> - A map of string to string that will be set as metadata on the identity alias
- bound
Application List<String>Ids - An optional set of CF application IDs. If set, a logging-in instance must belong to one of these applications.
- bound
Instance List<String>Ids - An optional set of CF instance IDs. If set, the logging-in instance's ID must appear in this list.
- bound
Organization List<String>Ids - An optional set of CF organization IDs. If set, a logging-in instance must belong to one of these organizations.
- bound
Space List<String>Ids - An optional set of CF space IDs. If set, a logging-in instance must belong to one of these spaces.
- disable
Ip BooleanMatching - If
true, disables the default behavior that requires login requests to originate from an IP address listed in the instance certificate. Useful when CF instances sit behind a load balancer or NAT. Defaults tofalse. Removing this field from your configuration resets the value tofalsein Vault. - name String
- The name of the CF auth role.
- 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. - token
Bound List<String>Cidrs - Specifies the blocks of IP addresses which are allowed to use the generated token
- token
Explicit IntegerMax Ttl - Generated Token's Explicit Maximum TTL in seconds
- token
Max IntegerTtl - The maximum lifetime of the generated token
- token
No BooleanDefault Policy - If true, the 'default' policy will not automatically be added to generated tokens
- token
Num IntegerUses - The maximum number of times a token may be used, a value of zero means unlimited
- token
Period Integer - Generated Token's Period
- token
Policies List<String> - Generated Token's Policies
- token
Ttl Integer - The initial ttl of the token to generate in seconds
- token
Type String - The type of token to generate, service or batch
- mount string
- The mount path for the CF auth engine in Vault.
- alias
Metadata {[key: string]: string} - A map of string to string that will be set as metadata on the identity alias
- bound
Application string[]Ids - An optional set of CF application IDs. If set, a logging-in instance must belong to one of these applications.
- bound
Instance string[]Ids - An optional set of CF instance IDs. If set, the logging-in instance's ID must appear in this list.
- bound
Organization string[]Ids - An optional set of CF organization IDs. If set, a logging-in instance must belong to one of these organizations.
- bound
Space string[]Ids - An optional set of CF space IDs. If set, a logging-in instance must belong to one of these spaces.
- disable
Ip booleanMatching - If
true, disables the default behavior that requires login requests to originate from an IP address listed in the instance certificate. Useful when CF instances sit behind a load balancer or NAT. Defaults tofalse. Removing this field from your configuration resets the value tofalsein Vault. - name string
- The name of the CF auth role.
- 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. - token
Bound string[]Cidrs - Specifies the blocks of IP addresses which are allowed to use the generated token
- token
Explicit numberMax Ttl - Generated Token's Explicit Maximum TTL in seconds
- token
Max numberTtl - The maximum lifetime of the generated token
- token
No booleanDefault Policy - If true, the 'default' policy will not automatically be added to generated tokens
- token
Num numberUses - The maximum number of times a token may be used, a value of zero means unlimited
- token
Period number - Generated Token's Period
- token
Policies string[] - Generated Token's Policies
- token
Ttl number - The initial ttl of the token to generate in seconds
- token
Type string - The type of token to generate, service or batch
- mount str
- The mount path for the CF auth engine in Vault.
- alias_
metadata Mapping[str, str] - A map of string to string that will be set as metadata on the identity alias
- bound_
application_ Sequence[str]ids - An optional set of CF application IDs. If set, a logging-in instance must belong to one of these applications.
- bound_
instance_ Sequence[str]ids - An optional set of CF instance IDs. If set, the logging-in instance's ID must appear in this list.
- bound_
organization_ Sequence[str]ids - An optional set of CF organization IDs. If set, a logging-in instance must belong to one of these organizations.
- bound_
space_ Sequence[str]ids - An optional set of CF space IDs. If set, a logging-in instance must belong to one of these spaces.
- disable_
ip_ boolmatching - If
true, disables the default behavior that requires login requests to originate from an IP address listed in the instance certificate. Useful when CF instances sit behind a load balancer or NAT. Defaults tofalse. Removing this field from your configuration resets the value tofalsein Vault. - name str
- The name of the CF auth role.
- 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. - token_
bound_ Sequence[str]cidrs - Specifies the blocks of IP addresses which are allowed to use the generated token
- token_
explicit_ intmax_ ttl - Generated Token's Explicit Maximum TTL in seconds
- token_
max_ intttl - The maximum lifetime of the generated token
- token_
no_ booldefault_ policy - If true, the 'default' policy will not automatically be added to generated tokens
- token_
num_ intuses - The maximum number of times a token may be used, a value of zero means unlimited
- token_
period int - Generated Token's Period
- token_
policies Sequence[str] - Generated Token's Policies
- token_
ttl int - The initial ttl of the token to generate in seconds
- token_
type str - The type of token to generate, service or batch
- mount String
- The mount path for the CF auth engine in Vault.
- alias
Metadata Map<String> - A map of string to string that will be set as metadata on the identity alias
- bound
Application List<String>Ids - An optional set of CF application IDs. If set, a logging-in instance must belong to one of these applications.
- bound
Instance List<String>Ids - An optional set of CF instance IDs. If set, the logging-in instance's ID must appear in this list.
- bound
Organization List<String>Ids - An optional set of CF organization IDs. If set, a logging-in instance must belong to one of these organizations.
- bound
Space List<String>Ids - An optional set of CF space IDs. If set, a logging-in instance must belong to one of these spaces.
- disable
Ip BooleanMatching - If
true, disables the default behavior that requires login requests to originate from an IP address listed in the instance certificate. Useful when CF instances sit behind a load balancer or NAT. Defaults tofalse. Removing this field from your configuration resets the value tofalsein Vault. - name String
- The name of the CF auth role.
- 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. - token
Bound List<String>Cidrs - Specifies the blocks of IP addresses which are allowed to use the generated token
- token
Explicit NumberMax Ttl - Generated Token's Explicit Maximum TTL in seconds
- token
Max NumberTtl - The maximum lifetime of the generated token
- token
No BooleanDefault Policy - If true, the 'default' policy will not automatically be added to generated tokens
- token
Num NumberUses - The maximum number of times a token may be used, a value of zero means unlimited
- token
Period Number - Generated Token's Period
- token
Policies List<String> - Generated Token's Policies
- token
Ttl Number - The initial ttl of the token to generate in seconds
- token
Type String - The type of token to generate, service or batch
Outputs
All input properties are implicitly available as output properties. Additionally, the AuthBackendRole 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 AuthBackendRole Resource
Get an existing AuthBackendRole 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?: AuthBackendRoleState, opts?: CustomResourceOptions): AuthBackendRole@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
alias_metadata: Optional[Mapping[str, str]] = None,
bound_application_ids: Optional[Sequence[str]] = None,
bound_instance_ids: Optional[Sequence[str]] = None,
bound_organization_ids: Optional[Sequence[str]] = None,
bound_space_ids: Optional[Sequence[str]] = None,
disable_ip_matching: Optional[bool] = None,
mount: Optional[str] = None,
name: Optional[str] = None,
namespace: Optional[str] = None,
token_bound_cidrs: Optional[Sequence[str]] = None,
token_explicit_max_ttl: Optional[int] = None,
token_max_ttl: Optional[int] = None,
token_no_default_policy: Optional[bool] = None,
token_num_uses: Optional[int] = None,
token_period: Optional[int] = None,
token_policies: Optional[Sequence[str]] = None,
token_ttl: Optional[int] = None,
token_type: Optional[str] = None) -> AuthBackendRolefunc GetAuthBackendRole(ctx *Context, name string, id IDInput, state *AuthBackendRoleState, opts ...ResourceOption) (*AuthBackendRole, error)public static AuthBackendRole Get(string name, Input<string> id, AuthBackendRoleState? state, CustomResourceOptions? opts = null)public static AuthBackendRole get(String name, Output<String> id, AuthBackendRoleState state, CustomResourceOptions options)resources: _: type: vault:cf:AuthBackendRole get: id: ${id}import {
to = vault_cf_auth_backend_role.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.
- Alias
Metadata Dictionary<string, string> - A map of string to string that will be set as metadata on the identity alias
- Bound
Application List<string>Ids - An optional set of CF application IDs. If set, a logging-in instance must belong to one of these applications.
- Bound
Instance List<string>Ids - An optional set of CF instance IDs. If set, the logging-in instance's ID must appear in this list.
- Bound
Organization List<string>Ids - An optional set of CF organization IDs. If set, a logging-in instance must belong to one of these organizations.
- Bound
Space List<string>Ids - An optional set of CF space IDs. If set, a logging-in instance must belong to one of these spaces.
- Disable
Ip boolMatching - If
true, disables the default behavior that requires login requests to originate from an IP address listed in the instance certificate. Useful when CF instances sit behind a load balancer or NAT. Defaults tofalse. Removing this field from your configuration resets the value tofalsein Vault. - Mount string
- The mount path for the CF auth engine in Vault.
- Name string
- The name of the CF auth role.
- 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. - Token
Bound List<string>Cidrs - Specifies the blocks of IP addresses which are allowed to use the generated token
- Token
Explicit intMax Ttl - Generated Token's Explicit Maximum TTL in seconds
- Token
Max intTtl - The maximum lifetime of the generated token
- Token
No boolDefault Policy - If true, the 'default' policy will not automatically be added to generated tokens
- Token
Num intUses - The maximum number of times a token may be used, a value of zero means unlimited
- Token
Period int - Generated Token's Period
- Token
Policies List<string> - Generated Token's Policies
- Token
Ttl int - The initial ttl of the token to generate in seconds
- Token
Type string - The type of token to generate, service or batch
- Alias
Metadata map[string]string - A map of string to string that will be set as metadata on the identity alias
- Bound
Application []stringIds - An optional set of CF application IDs. If set, a logging-in instance must belong to one of these applications.
- Bound
Instance []stringIds - An optional set of CF instance IDs. If set, the logging-in instance's ID must appear in this list.
- Bound
Organization []stringIds - An optional set of CF organization IDs. If set, a logging-in instance must belong to one of these organizations.
- Bound
Space []stringIds - An optional set of CF space IDs. If set, a logging-in instance must belong to one of these spaces.
- Disable
Ip boolMatching - If
true, disables the default behavior that requires login requests to originate from an IP address listed in the instance certificate. Useful when CF instances sit behind a load balancer or NAT. Defaults tofalse. Removing this field from your configuration resets the value tofalsein Vault. - Mount string
- The mount path for the CF auth engine in Vault.
- Name string
- The name of the CF auth role.
- 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. - Token
Bound []stringCidrs - Specifies the blocks of IP addresses which are allowed to use the generated token
- Token
Explicit intMax Ttl - Generated Token's Explicit Maximum TTL in seconds
- Token
Max intTtl - The maximum lifetime of the generated token
- Token
No boolDefault Policy - If true, the 'default' policy will not automatically be added to generated tokens
- Token
Num intUses - The maximum number of times a token may be used, a value of zero means unlimited
- Token
Period int - Generated Token's Period
- Token
Policies []string - Generated Token's Policies
- Token
Ttl int - The initial ttl of the token to generate in seconds
- Token
Type string - The type of token to generate, service or batch
- alias_
metadata map(string) - A map of string to string that will be set as metadata on the identity alias
- bound_
application_ list(string)ids - An optional set of CF application IDs. If set, a logging-in instance must belong to one of these applications.
- bound_
instance_ list(string)ids - An optional set of CF instance IDs. If set, the logging-in instance's ID must appear in this list.
- bound_
organization_ list(string)ids - An optional set of CF organization IDs. If set, a logging-in instance must belong to one of these organizations.
- bound_
space_ list(string)ids - An optional set of CF space IDs. If set, a logging-in instance must belong to one of these spaces.
- disable_
ip_ boolmatching - If
true, disables the default behavior that requires login requests to originate from an IP address listed in the instance certificate. Useful when CF instances sit behind a load balancer or NAT. Defaults tofalse. Removing this field from your configuration resets the value tofalsein Vault. - mount string
- The mount path for the CF auth engine in Vault.
- name string
- The name of the CF auth role.
- 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. - token_
bound_ list(string)cidrs - Specifies the blocks of IP addresses which are allowed to use the generated token
- token_
explicit_ numbermax_ ttl - Generated Token's Explicit Maximum TTL in seconds
- token_
max_ numberttl - The maximum lifetime of the generated token
- token_
no_ booldefault_ policy - If true, the 'default' policy will not automatically be added to generated tokens
- token_
num_ numberuses - The maximum number of times a token may be used, a value of zero means unlimited
- token_
period number - Generated Token's Period
- token_
policies list(string) - Generated Token's Policies
- token_
ttl number - The initial ttl of the token to generate in seconds
- token_
type string - The type of token to generate, service or batch
- alias
Metadata Map<String,String> - A map of string to string that will be set as metadata on the identity alias
- bound
Application List<String>Ids - An optional set of CF application IDs. If set, a logging-in instance must belong to one of these applications.
- bound
Instance List<String>Ids - An optional set of CF instance IDs. If set, the logging-in instance's ID must appear in this list.
- bound
Organization List<String>Ids - An optional set of CF organization IDs. If set, a logging-in instance must belong to one of these organizations.
- bound
Space List<String>Ids - An optional set of CF space IDs. If set, a logging-in instance must belong to one of these spaces.
- disable
Ip BooleanMatching - If
true, disables the default behavior that requires login requests to originate from an IP address listed in the instance certificate. Useful when CF instances sit behind a load balancer or NAT. Defaults tofalse. Removing this field from your configuration resets the value tofalsein Vault. - mount String
- The mount path for the CF auth engine in Vault.
- name String
- The name of the CF auth role.
- 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. - token
Bound List<String>Cidrs - Specifies the blocks of IP addresses which are allowed to use the generated token
- token
Explicit IntegerMax Ttl - Generated Token's Explicit Maximum TTL in seconds
- token
Max IntegerTtl - The maximum lifetime of the generated token
- token
No BooleanDefault Policy - If true, the 'default' policy will not automatically be added to generated tokens
- token
Num IntegerUses - The maximum number of times a token may be used, a value of zero means unlimited
- token
Period Integer - Generated Token's Period
- token
Policies List<String> - Generated Token's Policies
- token
Ttl Integer - The initial ttl of the token to generate in seconds
- token
Type String - The type of token to generate, service or batch
- alias
Metadata {[key: string]: string} - A map of string to string that will be set as metadata on the identity alias
- bound
Application string[]Ids - An optional set of CF application IDs. If set, a logging-in instance must belong to one of these applications.
- bound
Instance string[]Ids - An optional set of CF instance IDs. If set, the logging-in instance's ID must appear in this list.
- bound
Organization string[]Ids - An optional set of CF organization IDs. If set, a logging-in instance must belong to one of these organizations.
- bound
Space string[]Ids - An optional set of CF space IDs. If set, a logging-in instance must belong to one of these spaces.
- disable
Ip booleanMatching - If
true, disables the default behavior that requires login requests to originate from an IP address listed in the instance certificate. Useful when CF instances sit behind a load balancer or NAT. Defaults tofalse. Removing this field from your configuration resets the value tofalsein Vault. - mount string
- The mount path for the CF auth engine in Vault.
- name string
- The name of the CF auth role.
- 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. - token
Bound string[]Cidrs - Specifies the blocks of IP addresses which are allowed to use the generated token
- token
Explicit numberMax Ttl - Generated Token's Explicit Maximum TTL in seconds
- token
Max numberTtl - The maximum lifetime of the generated token
- token
No booleanDefault Policy - If true, the 'default' policy will not automatically be added to generated tokens
- token
Num numberUses - The maximum number of times a token may be used, a value of zero means unlimited
- token
Period number - Generated Token's Period
- token
Policies string[] - Generated Token's Policies
- token
Ttl number - The initial ttl of the token to generate in seconds
- token
Type string - The type of token to generate, service or batch
- alias_
metadata Mapping[str, str] - A map of string to string that will be set as metadata on the identity alias
- bound_
application_ Sequence[str]ids - An optional set of CF application IDs. If set, a logging-in instance must belong to one of these applications.
- bound_
instance_ Sequence[str]ids - An optional set of CF instance IDs. If set, the logging-in instance's ID must appear in this list.
- bound_
organization_ Sequence[str]ids - An optional set of CF organization IDs. If set, a logging-in instance must belong to one of these organizations.
- bound_
space_ Sequence[str]ids - An optional set of CF space IDs. If set, a logging-in instance must belong to one of these spaces.
- disable_
ip_ boolmatching - If
true, disables the default behavior that requires login requests to originate from an IP address listed in the instance certificate. Useful when CF instances sit behind a load balancer or NAT. Defaults tofalse. Removing this field from your configuration resets the value tofalsein Vault. - mount str
- The mount path for the CF auth engine in Vault.
- name str
- The name of the CF auth role.
- 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. - token_
bound_ Sequence[str]cidrs - Specifies the blocks of IP addresses which are allowed to use the generated token
- token_
explicit_ intmax_ ttl - Generated Token's Explicit Maximum TTL in seconds
- token_
max_ intttl - The maximum lifetime of the generated token
- token_
no_ booldefault_ policy - If true, the 'default' policy will not automatically be added to generated tokens
- token_
num_ intuses - The maximum number of times a token may be used, a value of zero means unlimited
- token_
period int - Generated Token's Period
- token_
policies Sequence[str] - Generated Token's Policies
- token_
ttl int - The initial ttl of the token to generate in seconds
- token_
type str - The type of token to generate, service or batch
- alias
Metadata Map<String> - A map of string to string that will be set as metadata on the identity alias
- bound
Application List<String>Ids - An optional set of CF application IDs. If set, a logging-in instance must belong to one of these applications.
- bound
Instance List<String>Ids - An optional set of CF instance IDs. If set, the logging-in instance's ID must appear in this list.
- bound
Organization List<String>Ids - An optional set of CF organization IDs. If set, a logging-in instance must belong to one of these organizations.
- bound
Space List<String>Ids - An optional set of CF space IDs. If set, a logging-in instance must belong to one of these spaces.
- disable
Ip BooleanMatching - If
true, disables the default behavior that requires login requests to originate from an IP address listed in the instance certificate. Useful when CF instances sit behind a load balancer or NAT. Defaults tofalse. Removing this field from your configuration resets the value tofalsein Vault. - mount String
- The mount path for the CF auth engine in Vault.
- name String
- The name of the CF auth role.
- 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. - token
Bound List<String>Cidrs - Specifies the blocks of IP addresses which are allowed to use the generated token
- token
Explicit NumberMax Ttl - Generated Token's Explicit Maximum TTL in seconds
- token
Max NumberTtl - The maximum lifetime of the generated token
- token
No BooleanDefault Policy - If true, the 'default' policy will not automatically be added to generated tokens
- token
Num NumberUses - The maximum number of times a token may be used, a value of zero means unlimited
- token
Period Number - Generated Token's Period
- token
Policies List<String> - Generated Token's Policies
- token
Ttl Number - The initial ttl of the token to generate in seconds
- token
Type String - The type of token to generate, service or batch
Import
CF auth backend roles can be imported using auth/, the mount path, /roles/,
and the role name, e.g.
$ pulumi import vault:cf/authBackendRole:AuthBackendRole role auth/cf/roles/my-role
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