published on Wednesday, Sep 9, 2026 by goauthentik
published on Wednesday, Sep 9, 2026 by goauthentik
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as authentik from "@pulumi/authentik";
const example = new authentik.RequestRule("example", {
name: "Example access request rule",
policyEngineMode: "any",
notificationMode: "all",
minReviewers: 1,
minReviewersIsPerGroup: false,
});
import pulumi
import pulumi_authentik as authentik
example = authentik.RequestRule("example",
name="Example access request rule",
policy_engine_mode="any",
notification_mode="all",
min_reviewers=1,
min_reviewers_is_per_group=False)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/authentik/v2026/authentik"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := authentik.NewRequestRule(ctx, "example", &authentik.RequestRuleArgs{
Name: pulumi.String("Example access request rule"),
PolicyEngineMode: pulumi.String("any"),
NotificationMode: pulumi.String("all"),
MinReviewers: pulumi.Float64(1),
MinReviewersIsPerGroup: pulumi.Bool(false),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Authentik = Pulumi.Authentik;
return await Deployment.RunAsync(() =>
{
var example = new Authentik.RequestRule("example", new()
{
Name = "Example access request rule",
PolicyEngineMode = "any",
NotificationMode = "all",
MinReviewers = 1,
MinReviewersIsPerGroup = false,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.authentik.RequestRule;
import com.pulumi.authentik.RequestRuleArgs;
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 example = new RequestRule("example", RequestRuleArgs.builder()
.name("Example access request rule")
.policyEngineMode("any")
.notificationMode("all")
.minReviewers(1.0)
.minReviewersIsPerGroup(false)
.build());
}
}
resources:
example:
type: authentik:RequestRule
properties:
name: Example access request rule
policyEngineMode: any
notificationMode: all
minReviewers: 1
minReviewersIsPerGroup: false
Example coming soon!
Create RequestRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RequestRule(name: string, args?: RequestRuleArgs, opts?: CustomResourceOptions);@overload
def RequestRule(resource_name: str,
args: Optional[RequestRuleArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def RequestRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
min_reviewers: Optional[float] = None,
min_reviewers_is_per_group: Optional[bool] = None,
name: Optional[str] = None,
notification_mode: Optional[str] = None,
notification_transports: Optional[Sequence[str]] = None,
policy_engine_mode: Optional[str] = None,
request_flow: Optional[str] = None,
request_rule_id: Optional[str] = None)func NewRequestRule(ctx *Context, name string, args *RequestRuleArgs, opts ...ResourceOption) (*RequestRule, error)public RequestRule(string name, RequestRuleArgs? args = null, CustomResourceOptions? opts = null)
public RequestRule(String name, RequestRuleArgs args)
public RequestRule(String name, RequestRuleArgs args, CustomResourceOptions options)
type: authentik:RequestRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "authentik_request_rule" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args RequestRuleArgs
- 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 RequestRuleArgs
- 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 RequestRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RequestRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RequestRuleArgs
- 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 requestRuleResource = new Authentik.RequestRule("requestRuleResource", new()
{
MinReviewers = 0.0,
MinReviewersIsPerGroup = false,
Name = "string",
NotificationMode = "string",
NotificationTransports = new[]
{
"string",
},
PolicyEngineMode = "string",
RequestFlow = "string",
RequestRuleId = "string",
});
example, err := authentik.NewRequestRule(ctx, "requestRuleResource", &authentik.RequestRuleArgs{
MinReviewers: pulumi.Float64(0),
MinReviewersIsPerGroup: pulumi.Bool(false),
Name: pulumi.String("string"),
NotificationMode: pulumi.String("string"),
NotificationTransports: pulumi.StringArray{
pulumi.String("string"),
},
PolicyEngineMode: pulumi.String("string"),
RequestFlow: pulumi.String("string"),
RequestRuleId: pulumi.String("string"),
})
resource "authentik_request_rule" "requestRuleResource" {
lifecycle {
create_before_destroy = true
}
min_reviewers = 0
min_reviewers_is_per_group = false
name = "string"
notification_mode = "string"
notification_transports = ["string"]
policy_engine_mode = "string"
request_flow = "string"
request_rule_id = "string"
}
var requestRuleResource = new RequestRule("requestRuleResource", RequestRuleArgs.builder()
.minReviewers(0.0)
.minReviewersIsPerGroup(false)
.name("string")
.notificationMode("string")
.notificationTransports("string")
.policyEngineMode("string")
.requestFlow("string")
.requestRuleId("string")
.build());
request_rule_resource = authentik.RequestRule("requestRuleResource",
min_reviewers=float(0),
min_reviewers_is_per_group=False,
name="string",
notification_mode="string",
notification_transports=["string"],
policy_engine_mode="string",
request_flow="string",
request_rule_id="string")
const requestRuleResource = new authentik.RequestRule("requestRuleResource", {
minReviewers: 0,
minReviewersIsPerGroup: false,
name: "string",
notificationMode: "string",
notificationTransports: ["string"],
policyEngineMode: "string",
requestFlow: "string",
requestRuleId: "string",
});
type: authentik:RequestRule
properties:
minReviewers: 0
minReviewersIsPerGroup: false
name: string
notificationMode: string
notificationTransports:
- string
policyEngineMode: string
requestFlow: string
requestRuleId: string
RequestRule 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 RequestRule resource accepts the following input properties:
- Min
Reviewers double - Generated.
- Min
Reviewers boolIs Per Group - Generated.
- Name string
- Notification
Mode string - Allowed values:
alldirectrandom_min_reviewersGenerated.
- Notification
Transports List<string> - Policy
Engine stringMode - Allowed values:
allanyGenerated.
- Request
Flow string - UUID or slug of the flow shown to the requester when creating a request against this rule.
- Request
Rule stringId
- Min
Reviewers float64 - Generated.
- Min
Reviewers boolIs Per Group - Generated.
- Name string
- Notification
Mode string - Allowed values:
alldirectrandom_min_reviewersGenerated.
- Notification
Transports []string - Policy
Engine stringMode - Allowed values:
allanyGenerated.
- Request
Flow string - UUID or slug of the flow shown to the requester when creating a request against this rule.
- Request
Rule stringId
- min_
reviewers number - Generated.
- min_
reviewers_ boolis_ per_ group - Generated.
- name string
- notification_
mode string - Allowed values:
alldirectrandom_min_reviewersGenerated.
- notification_
transports list(string) - policy_
engine_ stringmode - Allowed values:
allanyGenerated.
- request_
flow string - UUID or slug of the flow shown to the requester when creating a request against this rule.
- request_
rule_ stringid
- min
Reviewers Double - Generated.
- min
Reviewers BooleanIs Per Group - Generated.
- name String
- notification
Mode String - Allowed values:
alldirectrandom_min_reviewersGenerated.
- notification
Transports List<String> - policy
Engine StringMode - Allowed values:
allanyGenerated.
- request
Flow String - UUID or slug of the flow shown to the requester when creating a request against this rule.
- request
Rule StringId
- min
Reviewers number - Generated.
- min
Reviewers booleanIs Per Group - Generated.
- name string
- notification
Mode string - Allowed values:
alldirectrandom_min_reviewersGenerated.
- notification
Transports string[] - policy
Engine stringMode - Allowed values:
allanyGenerated.
- request
Flow string - UUID or slug of the flow shown to the requester when creating a request against this rule.
- request
Rule stringId
- min_
reviewers float - Generated.
- min_
reviewers_ boolis_ per_ group - Generated.
- name str
- notification_
mode str - Allowed values:
alldirectrandom_min_reviewersGenerated.
- notification_
transports Sequence[str] - policy_
engine_ strmode - Allowed values:
allanyGenerated.
- request_
flow str - UUID or slug of the flow shown to the requester when creating a request against this rule.
- request_
rule_ strid
- min
Reviewers Number - Generated.
- min
Reviewers BooleanIs Per Group - Generated.
- name String
- notification
Mode String - Allowed values:
alldirectrandom_min_reviewersGenerated.
- notification
Transports List<String> - policy
Engine StringMode - Allowed values:
allanyGenerated.
- request
Flow String - UUID or slug of the flow shown to the requester when creating a request against this rule.
- request
Rule StringId
Outputs
All input properties are implicitly available as output properties. Additionally, the RequestRule resource produces the following output properties:
Look up Existing RequestRule Resource
Get an existing RequestRule 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?: RequestRuleState, opts?: CustomResourceOptions): RequestRule@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
min_reviewers: Optional[float] = None,
min_reviewers_is_per_group: Optional[bool] = None,
name: Optional[str] = None,
notification_mode: Optional[str] = None,
notification_transports: Optional[Sequence[str]] = None,
policy_engine_mode: Optional[str] = None,
request_flow: Optional[str] = None,
request_rule_id: Optional[str] = None,
targets: Optional[Sequence[str]] = None) -> RequestRulefunc GetRequestRule(ctx *Context, name string, id IDInput, state *RequestRuleState, opts ...ResourceOption) (*RequestRule, error)public static RequestRule Get(string name, Input<string> id, RequestRuleState? state, CustomResourceOptions? opts = null)public static RequestRule get(String name, Output<String> id, RequestRuleState state, CustomResourceOptions options)resources: _: type: authentik:RequestRule get: id: ${id}import {
to = authentik_request_rule.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.
- Min
Reviewers double - Generated.
- Min
Reviewers boolIs Per Group - Generated.
- Name string
- Notification
Mode string - Allowed values:
alldirectrandom_min_reviewersGenerated.
- Notification
Transports List<string> - Policy
Engine stringMode - Allowed values:
allanyGenerated.
- Request
Flow string - UUID or slug of the flow shown to the requester when creating a request against this rule.
- Request
Rule stringId - Targets List<string>
- Objects currently bound to this rule, derived from its request rule bindings. Generated.
- Min
Reviewers float64 - Generated.
- Min
Reviewers boolIs Per Group - Generated.
- Name string
- Notification
Mode string - Allowed values:
alldirectrandom_min_reviewersGenerated.
- Notification
Transports []string - Policy
Engine stringMode - Allowed values:
allanyGenerated.
- Request
Flow string - UUID or slug of the flow shown to the requester when creating a request against this rule.
- Request
Rule stringId - Targets []string
- Objects currently bound to this rule, derived from its request rule bindings. Generated.
- min_
reviewers number - Generated.
- min_
reviewers_ boolis_ per_ group - Generated.
- name string
- notification_
mode string - Allowed values:
alldirectrandom_min_reviewersGenerated.
- notification_
transports list(string) - policy_
engine_ stringmode - Allowed values:
allanyGenerated.
- request_
flow string - UUID or slug of the flow shown to the requester when creating a request against this rule.
- request_
rule_ stringid - targets list(string)
- Objects currently bound to this rule, derived from its request rule bindings. Generated.
- min
Reviewers Double - Generated.
- min
Reviewers BooleanIs Per Group - Generated.
- name String
- notification
Mode String - Allowed values:
alldirectrandom_min_reviewersGenerated.
- notification
Transports List<String> - policy
Engine StringMode - Allowed values:
allanyGenerated.
- request
Flow String - UUID or slug of the flow shown to the requester when creating a request against this rule.
- request
Rule StringId - targets List<String>
- Objects currently bound to this rule, derived from its request rule bindings. Generated.
- min
Reviewers number - Generated.
- min
Reviewers booleanIs Per Group - Generated.
- name string
- notification
Mode string - Allowed values:
alldirectrandom_min_reviewersGenerated.
- notification
Transports string[] - policy
Engine stringMode - Allowed values:
allanyGenerated.
- request
Flow string - UUID or slug of the flow shown to the requester when creating a request against this rule.
- request
Rule stringId - targets string[]
- Objects currently bound to this rule, derived from its request rule bindings. Generated.
- min_
reviewers float - Generated.
- min_
reviewers_ boolis_ per_ group - Generated.
- name str
- notification_
mode str - Allowed values:
alldirectrandom_min_reviewersGenerated.
- notification_
transports Sequence[str] - policy_
engine_ strmode - Allowed values:
allanyGenerated.
- request_
flow str - UUID or slug of the flow shown to the requester when creating a request against this rule.
- request_
rule_ strid - targets Sequence[str]
- Objects currently bound to this rule, derived from its request rule bindings. Generated.
- min
Reviewers Number - Generated.
- min
Reviewers BooleanIs Per Group - Generated.
- name String
- notification
Mode String - Allowed values:
alldirectrandom_min_reviewersGenerated.
- notification
Transports List<String> - policy
Engine StringMode - Allowed values:
allanyGenerated.
- request
Flow String - UUID or slug of the flow shown to the requester when creating a request against this rule.
- request
Rule StringId - targets List<String>
- Objects currently bound to this rule, derived from its request rule bindings. Generated.
Package Details
- Repository
- authentik goauthentik/terraform-provider-authentik
- License
- Notes
- This Pulumi package is based on the
authentikTerraform Provider.
published on Wednesday, Sep 9, 2026 by goauthentik