vault.appRole.AuthBackendRole
Explore with Pulumi AI
Manages an AppRole auth backend role in a Vault server. See the Vault documentation for more information.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vault from "@pulumi/vault";
const approle = new vault.AuthBackend("approle", {type: "approle"});
const example = new vault.approle.AuthBackendRole("example", {
    backend: approle.path,
    roleName: "test-role",
    tokenPolicies: [
        "default",
        "dev",
        "prod",
    ],
});
import pulumi
import pulumi_vault as vault
approle = vault.AuthBackend("approle", type="approle")
example = vault.app_role.AuthBackendRole("example",
    backend=approle.path,
    role_name="test-role",
    token_policies=[
        "default",
        "dev",
        "prod",
    ])
package main
import (
	"github.com/pulumi/pulumi-vault/sdk/v6/go/vault"
	"github.com/pulumi/pulumi-vault/sdk/v6/go/vault/approle"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		approle, err := vault.NewAuthBackend(ctx, "approle", &vault.AuthBackendArgs{
			Type: pulumi.String("approle"),
		})
		if err != nil {
			return err
		}
		_, err = approle.NewAuthBackendRole(ctx, "example", &approle.AuthBackendRoleArgs{
			Backend:  approle.Path,
			RoleName: pulumi.String("test-role"),
			TokenPolicies: pulumi.StringArray{
				pulumi.String("default"),
				pulumi.String("dev"),
				pulumi.String("prod"),
			},
		})
		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 approle = new Vault.AuthBackend("approle", new()
    {
        Type = "approle",
    });
    var example = new Vault.AppRole.AuthBackendRole("example", new()
    {
        Backend = approle.Path,
        RoleName = "test-role",
        TokenPolicies = new[]
        {
            "default",
            "dev",
            "prod",
        },
    });
});
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.appRole.AuthBackendRole;
import com.pulumi.vault.appRole.AuthBackendRoleArgs;
import java.util.List;
import java.util.ArrayList;
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 approle = new AuthBackend("approle", AuthBackendArgs.builder()
            .type("approle")
            .build());
        var example = new AuthBackendRole("example", AuthBackendRoleArgs.builder()
            .backend(approle.path())
            .roleName("test-role")
            .tokenPolicies(            
                "default",
                "dev",
                "prod")
            .build());
    }
}
resources:
  approle:
    type: vault:AuthBackend
    properties:
      type: approle
  example:
    type: vault:appRole:AuthBackendRole
    properties:
      backend: ${approle.path}
      roleName: test-role
      tokenPolicies:
        - default
        - dev
        - prod
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,
                    role_name: Optional[str] = None,
                    token_bound_cidrs: Optional[Sequence[str]] = None,
                    token_max_ttl: Optional[int] = None,
                    role_id: Optional[str] = None,
                    bind_secret_id: Optional[bool] = None,
                    secret_id_bound_cidrs: Optional[Sequence[str]] = None,
                    secret_id_num_uses: Optional[int] = None,
                    namespace: Optional[str] = None,
                    secret_id_ttl: Optional[int] = None,
                    token_explicit_max_ttl: Optional[int] = None,
                    backend: Optional[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:appRole:AuthBackendRole
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args 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 vaultAuthBackendRoleResource = new Vault.AppRole.AuthBackendRole("vaultAuthBackendRoleResource", new()
{
    RoleName = "string",
    TokenBoundCidrs = new[]
    {
        "string",
    },
    TokenMaxTtl = 0,
    RoleId = "string",
    BindSecretId = false,
    SecretIdBoundCidrs = new[]
    {
        "string",
    },
    SecretIdNumUses = 0,
    Namespace = "string",
    SecretIdTtl = 0,
    TokenExplicitMaxTtl = 0,
    Backend = "string",
    TokenNoDefaultPolicy = false,
    TokenNumUses = 0,
    TokenPeriod = 0,
    TokenPolicies = new[]
    {
        "string",
    },
    TokenTtl = 0,
    TokenType = "string",
});
example, err := approle.NewAuthBackendRole(ctx, "vaultAuthBackendRoleResource", &approle.AuthBackendRoleArgs{
	RoleName: pulumi.String("string"),
	TokenBoundCidrs: pulumi.StringArray{
		pulumi.String("string"),
	},
	TokenMaxTtl:  pulumi.Int(0),
	RoleId:       pulumi.String("string"),
	BindSecretId: pulumi.Bool(false),
	SecretIdBoundCidrs: pulumi.StringArray{
		pulumi.String("string"),
	},
	SecretIdNumUses:      pulumi.Int(0),
	Namespace:            pulumi.String("string"),
	SecretIdTtl:          pulumi.Int(0),
	TokenExplicitMaxTtl:  pulumi.Int(0),
	Backend:              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"),
})
var vaultAuthBackendRoleResource = new com.pulumi.vault.appRole.AuthBackendRole("vaultAuthBackendRoleResource", com.pulumi.vault.appRole.AuthBackendRoleArgs.builder()
    .roleName("string")
    .tokenBoundCidrs("string")
    .tokenMaxTtl(0)
    .roleId("string")
    .bindSecretId(false)
    .secretIdBoundCidrs("string")
    .secretIdNumUses(0)
    .namespace("string")
    .secretIdTtl(0)
    .tokenExplicitMaxTtl(0)
    .backend("string")
    .tokenNoDefaultPolicy(false)
    .tokenNumUses(0)
    .tokenPeriod(0)
    .tokenPolicies("string")
    .tokenTtl(0)
    .tokenType("string")
    .build());
vault_auth_backend_role_resource = vault.app_role.AuthBackendRole("vaultAuthBackendRoleResource",
    role_name="string",
    token_bound_cidrs=["string"],
    token_max_ttl=0,
    role_id="string",
    bind_secret_id=False,
    secret_id_bound_cidrs=["string"],
    secret_id_num_uses=0,
    namespace="string",
    secret_id_ttl=0,
    token_explicit_max_ttl=0,
    backend="string",
    token_no_default_policy=False,
    token_num_uses=0,
    token_period=0,
    token_policies=["string"],
    token_ttl=0,
    token_type="string")
const vaultAuthBackendRoleResource = new vault.approle.AuthBackendRole("vaultAuthBackendRoleResource", {
    roleName: "string",
    tokenBoundCidrs: ["string"],
    tokenMaxTtl: 0,
    roleId: "string",
    bindSecretId: false,
    secretIdBoundCidrs: ["string"],
    secretIdNumUses: 0,
    namespace: "string",
    secretIdTtl: 0,
    tokenExplicitMaxTtl: 0,
    backend: "string",
    tokenNoDefaultPolicy: false,
    tokenNumUses: 0,
    tokenPeriod: 0,
    tokenPolicies: ["string"],
    tokenTtl: 0,
    tokenType: "string",
});
type: vault:appRole:AuthBackendRole
properties:
    backend: string
    bindSecretId: false
    namespace: string
    roleId: string
    roleName: string
    secretIdBoundCidrs:
        - string
    secretIdNumUses: 0
    secretIdTtl: 0
    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:
- RoleName string
- The name of the role.
- Backend string
- The unique name of the auth backend to configure.
Defaults to approle.
- BindSecret boolId 
- Whether or not to require secret_idto be presented when logging in using this AppRole. Defaults totrue.
- 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.
- RoleId string
- The RoleID of this role. If not specified, one will be auto-generated.
- SecretId List<string>Bound Cidrs 
- If set, specifies blocks of IP addresses which can perform the login operation.
- SecretId intNum Uses 
- The number of times any particular SecretID can be used to fetch a token from this AppRole, after which the SecretID will expire. A value of zero will allow unlimited uses.
- SecretId intTtl 
- The number of seconds after which any SecretID expires.
- TokenBound List<string>Cidrs 
- Specifies the blocks of IP addresses which are allowed to use the generated token
- TokenExplicit intMax Ttl 
- Generated Token's Explicit Maximum TTL in seconds
- TokenMax intTtl 
- The maximum lifetime of the generated token
- TokenNo boolDefault Policy 
- If true, the 'default' policy will not automatically be added to generated tokens
- TokenNum intUses 
- The maximum number of times a token may be used, a value of zero means unlimited
- TokenPeriod int
- Generated Token's Period
- TokenPolicies List<string>
- Generated Token's Policies
- TokenTtl int
- The initial ttl of the token to generate in seconds
- TokenType string
- The type of token to generate, service or batch
- RoleName string
- The name of the role.
- Backend string
- The unique name of the auth backend to configure.
Defaults to approle.
- BindSecret boolId 
- Whether or not to require secret_idto be presented when logging in using this AppRole. Defaults totrue.
- 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.
- RoleId string
- The RoleID of this role. If not specified, one will be auto-generated.
- SecretId []stringBound Cidrs 
- If set, specifies blocks of IP addresses which can perform the login operation.
- SecretId intNum Uses 
- The number of times any particular SecretID can be used to fetch a token from this AppRole, after which the SecretID will expire. A value of zero will allow unlimited uses.
- SecretId intTtl 
- The number of seconds after which any SecretID expires.
- TokenBound []stringCidrs 
- Specifies the blocks of IP addresses which are allowed to use the generated token
- TokenExplicit intMax Ttl 
- Generated Token's Explicit Maximum TTL in seconds
- TokenMax intTtl 
- The maximum lifetime of the generated token
- TokenNo boolDefault Policy 
- If true, the 'default' policy will not automatically be added to generated tokens
- TokenNum intUses 
- The maximum number of times a token may be used, a value of zero means unlimited
- TokenPeriod int
- Generated Token's Period
- TokenPolicies []string
- Generated Token's Policies
- TokenTtl int
- The initial ttl of the token to generate in seconds
- TokenType string
- The type of token to generate, service or batch
- roleName String
- The name of the role.
- backend String
- The unique name of the auth backend to configure.
Defaults to approle.
- bindSecret BooleanId 
- Whether or not to require secret_idto be presented when logging in using this AppRole. Defaults totrue.
- 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.
- roleId String
- The RoleID of this role. If not specified, one will be auto-generated.
- secretId List<String>Bound Cidrs 
- If set, specifies blocks of IP addresses which can perform the login operation.
- secretId IntegerNum Uses 
- The number of times any particular SecretID can be used to fetch a token from this AppRole, after which the SecretID will expire. A value of zero will allow unlimited uses.
- secretId IntegerTtl 
- The number of seconds after which any SecretID expires.
- tokenBound List<String>Cidrs 
- Specifies the blocks of IP addresses which are allowed to use the generated token
- tokenExplicit IntegerMax Ttl 
- Generated Token's Explicit Maximum TTL in seconds
- tokenMax IntegerTtl 
- The maximum lifetime of the generated token
- tokenNo BooleanDefault Policy 
- If true, the 'default' policy will not automatically be added to generated tokens
- tokenNum IntegerUses 
- The maximum number of times a token may be used, a value of zero means unlimited
- tokenPeriod Integer
- Generated Token's Period
- tokenPolicies List<String>
- Generated Token's Policies
- tokenTtl Integer
- The initial ttl of the token to generate in seconds
- tokenType String
- The type of token to generate, service or batch
- roleName string
- The name of the role.
- backend string
- The unique name of the auth backend to configure.
Defaults to approle.
- bindSecret booleanId 
- Whether or not to require secret_idto be presented when logging in using this AppRole. Defaults totrue.
- 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.
- roleId string
- The RoleID of this role. If not specified, one will be auto-generated.
- secretId string[]Bound Cidrs 
- If set, specifies blocks of IP addresses which can perform the login operation.
- secretId numberNum Uses 
- The number of times any particular SecretID can be used to fetch a token from this AppRole, after which the SecretID will expire. A value of zero will allow unlimited uses.
- secretId numberTtl 
- The number of seconds after which any SecretID expires.
- tokenBound string[]Cidrs 
- Specifies the blocks of IP addresses which are allowed to use the generated token
- tokenExplicit numberMax Ttl 
- Generated Token's Explicit Maximum TTL in seconds
- tokenMax numberTtl 
- The maximum lifetime of the generated token
- tokenNo booleanDefault Policy 
- If true, the 'default' policy will not automatically be added to generated tokens
- tokenNum numberUses 
- The maximum number of times a token may be used, a value of zero means unlimited
- tokenPeriod number
- Generated Token's Period
- tokenPolicies string[]
- Generated Token's Policies
- tokenTtl number
- The initial ttl of the token to generate in seconds
- tokenType string
- The type of token to generate, service or batch
- role_name str
- The name of the role.
- backend str
- The unique name of the auth backend to configure.
Defaults to approle.
- bind_secret_ boolid 
- Whether or not to require secret_idto be presented when logging in using this AppRole. Defaults totrue.
- 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.
- role_id str
- The RoleID of this role. If not specified, one will be auto-generated.
- secret_id_ Sequence[str]bound_ cidrs 
- If set, specifies blocks of IP addresses which can perform the login operation.
- secret_id_ intnum_ uses 
- The number of times any particular SecretID can be used to fetch a token from this AppRole, after which the SecretID will expire. A value of zero will allow unlimited uses.
- secret_id_ intttl 
- The number of seconds after which any SecretID expires.
- 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
- roleName String
- The name of the role.
- backend String
- The unique name of the auth backend to configure.
Defaults to approle.
- bindSecret BooleanId 
- Whether or not to require secret_idto be presented when logging in using this AppRole. Defaults totrue.
- 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.
- roleId String
- The RoleID of this role. If not specified, one will be auto-generated.
- secretId List<String>Bound Cidrs 
- If set, specifies blocks of IP addresses which can perform the login operation.
- secretId NumberNum Uses 
- The number of times any particular SecretID can be used to fetch a token from this AppRole, after which the SecretID will expire. A value of zero will allow unlimited uses.
- secretId NumberTtl 
- The number of seconds after which any SecretID expires.
- tokenBound List<String>Cidrs 
- Specifies the blocks of IP addresses which are allowed to use the generated token
- tokenExplicit NumberMax Ttl 
- Generated Token's Explicit Maximum TTL in seconds
- tokenMax NumberTtl 
- The maximum lifetime of the generated token
- tokenNo BooleanDefault Policy 
- If true, the 'default' policy will not automatically be added to generated tokens
- tokenNum NumberUses 
- The maximum number of times a token may be used, a value of zero means unlimited
- tokenPeriod Number
- Generated Token's Period
- tokenPolicies List<String>
- Generated Token's Policies
- tokenTtl Number
- The initial ttl of the token to generate in seconds
- tokenType 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 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,
        backend: Optional[str] = None,
        bind_secret_id: Optional[bool] = None,
        namespace: Optional[str] = None,
        role_id: Optional[str] = None,
        role_name: Optional[str] = None,
        secret_id_bound_cidrs: Optional[Sequence[str]] = None,
        secret_id_num_uses: Optional[int] = None,
        secret_id_ttl: Optional[int] = 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:appRole:AuthBackendRole    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Backend string
- The unique name of the auth backend to configure.
Defaults to approle.
- BindSecret boolId 
- Whether or not to require secret_idto be presented when logging in using this AppRole. Defaults totrue.
- 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.
- RoleId string
- The RoleID of this role. If not specified, one will be auto-generated.
- RoleName string
- The name of the role.
- SecretId List<string>Bound Cidrs 
- If set, specifies blocks of IP addresses which can perform the login operation.
- SecretId intNum Uses 
- The number of times any particular SecretID can be used to fetch a token from this AppRole, after which the SecretID will expire. A value of zero will allow unlimited uses.
- SecretId intTtl 
- The number of seconds after which any SecretID expires.
- TokenBound List<string>Cidrs 
- Specifies the blocks of IP addresses which are allowed to use the generated token
- TokenExplicit intMax Ttl 
- Generated Token's Explicit Maximum TTL in seconds
- TokenMax intTtl 
- The maximum lifetime of the generated token
- TokenNo boolDefault Policy 
- If true, the 'default' policy will not automatically be added to generated tokens
- TokenNum intUses 
- The maximum number of times a token may be used, a value of zero means unlimited
- TokenPeriod int
- Generated Token's Period
- TokenPolicies List<string>
- Generated Token's Policies
- TokenTtl int
- The initial ttl of the token to generate in seconds
- TokenType string
- The type of token to generate, service or batch
- Backend string
- The unique name of the auth backend to configure.
Defaults to approle.
- BindSecret boolId 
- Whether or not to require secret_idto be presented when logging in using this AppRole. Defaults totrue.
- 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.
- RoleId string
- The RoleID of this role. If not specified, one will be auto-generated.
- RoleName string
- The name of the role.
- SecretId []stringBound Cidrs 
- If set, specifies blocks of IP addresses which can perform the login operation.
- SecretId intNum Uses 
- The number of times any particular SecretID can be used to fetch a token from this AppRole, after which the SecretID will expire. A value of zero will allow unlimited uses.
- SecretId intTtl 
- The number of seconds after which any SecretID expires.
- TokenBound []stringCidrs 
- Specifies the blocks of IP addresses which are allowed to use the generated token
- TokenExplicit intMax Ttl 
- Generated Token's Explicit Maximum TTL in seconds
- TokenMax intTtl 
- The maximum lifetime of the generated token
- TokenNo boolDefault Policy 
- If true, the 'default' policy will not automatically be added to generated tokens
- TokenNum intUses 
- The maximum number of times a token may be used, a value of zero means unlimited
- TokenPeriod int
- Generated Token's Period
- TokenPolicies []string
- Generated Token's Policies
- TokenTtl int
- The initial ttl of the token to generate in seconds
- TokenType string
- The type of token to generate, service or batch
- backend String
- The unique name of the auth backend to configure.
Defaults to approle.
- bindSecret BooleanId 
- Whether or not to require secret_idto be presented when logging in using this AppRole. Defaults totrue.
- 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.
- roleId String
- The RoleID of this role. If not specified, one will be auto-generated.
- roleName String
- The name of the role.
- secretId List<String>Bound Cidrs 
- If set, specifies blocks of IP addresses which can perform the login operation.
- secretId IntegerNum Uses 
- The number of times any particular SecretID can be used to fetch a token from this AppRole, after which the SecretID will expire. A value of zero will allow unlimited uses.
- secretId IntegerTtl 
- The number of seconds after which any SecretID expires.
- tokenBound List<String>Cidrs 
- Specifies the blocks of IP addresses which are allowed to use the generated token
- tokenExplicit IntegerMax Ttl 
- Generated Token's Explicit Maximum TTL in seconds
- tokenMax IntegerTtl 
- The maximum lifetime of the generated token
- tokenNo BooleanDefault Policy 
- If true, the 'default' policy will not automatically be added to generated tokens
- tokenNum IntegerUses 
- The maximum number of times a token may be used, a value of zero means unlimited
- tokenPeriod Integer
- Generated Token's Period
- tokenPolicies List<String>
- Generated Token's Policies
- tokenTtl Integer
- The initial ttl of the token to generate in seconds
- tokenType String
- The type of token to generate, service or batch
- backend string
- The unique name of the auth backend to configure.
Defaults to approle.
- bindSecret booleanId 
- Whether or not to require secret_idto be presented when logging in using this AppRole. Defaults totrue.
- 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.
- roleId string
- The RoleID of this role. If not specified, one will be auto-generated.
- roleName string
- The name of the role.
- secretId string[]Bound Cidrs 
- If set, specifies blocks of IP addresses which can perform the login operation.
- secretId numberNum Uses 
- The number of times any particular SecretID can be used to fetch a token from this AppRole, after which the SecretID will expire. A value of zero will allow unlimited uses.
- secretId numberTtl 
- The number of seconds after which any SecretID expires.
- tokenBound string[]Cidrs 
- Specifies the blocks of IP addresses which are allowed to use the generated token
- tokenExplicit numberMax Ttl 
- Generated Token's Explicit Maximum TTL in seconds
- tokenMax numberTtl 
- The maximum lifetime of the generated token
- tokenNo booleanDefault Policy 
- If true, the 'default' policy will not automatically be added to generated tokens
- tokenNum numberUses 
- The maximum number of times a token may be used, a value of zero means unlimited
- tokenPeriod number
- Generated Token's Period
- tokenPolicies string[]
- Generated Token's Policies
- tokenTtl number
- The initial ttl of the token to generate in seconds
- tokenType string
- The type of token to generate, service or batch
- backend str
- The unique name of the auth backend to configure.
Defaults to approle.
- bind_secret_ boolid 
- Whether or not to require secret_idto be presented when logging in using this AppRole. Defaults totrue.
- 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.
- role_id str
- The RoleID of this role. If not specified, one will be auto-generated.
- role_name str
- The name of the role.
- secret_id_ Sequence[str]bound_ cidrs 
- If set, specifies blocks of IP addresses which can perform the login operation.
- secret_id_ intnum_ uses 
- The number of times any particular SecretID can be used to fetch a token from this AppRole, after which the SecretID will expire. A value of zero will allow unlimited uses.
- secret_id_ intttl 
- The number of seconds after which any SecretID expires.
- 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
- backend String
- The unique name of the auth backend to configure.
Defaults to approle.
- bindSecret BooleanId 
- Whether or not to require secret_idto be presented when logging in using this AppRole. Defaults totrue.
- 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.
- roleId String
- The RoleID of this role. If not specified, one will be auto-generated.
- roleName String
- The name of the role.
- secretId List<String>Bound Cidrs 
- If set, specifies blocks of IP addresses which can perform the login operation.
- secretId NumberNum Uses 
- The number of times any particular SecretID can be used to fetch a token from this AppRole, after which the SecretID will expire. A value of zero will allow unlimited uses.
- secretId NumberTtl 
- The number of seconds after which any SecretID expires.
- tokenBound List<String>Cidrs 
- Specifies the blocks of IP addresses which are allowed to use the generated token
- tokenExplicit NumberMax Ttl 
- Generated Token's Explicit Maximum TTL in seconds
- tokenMax NumberTtl 
- The maximum lifetime of the generated token
- tokenNo BooleanDefault Policy 
- If true, the 'default' policy will not automatically be added to generated tokens
- tokenNum NumberUses 
- The maximum number of times a token may be used, a value of zero means unlimited
- tokenPeriod Number
- Generated Token's Period
- tokenPolicies List<String>
- Generated Token's Policies
- tokenTtl Number
- The initial ttl of the token to generate in seconds
- tokenType String
- The type of token to generate, service or batch
Import
AppRole authentication backend roles can be imported using the path, e.g.
$ pulumi import vault:appRole/authBackendRole:AuthBackendRole example auth/approle/role/test-role
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.