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"});
const exampleApplication = new authentik.Application("example", {
name: "example app",
slug: "example-app",
});
const exampleRequestRuleBinding = new authentik.RequestRuleBinding("example", {
rule: example.requestRuleId,
target: exampleApplication.uuid,
expiryPending: "hours=8",
expiryGrantedMax: "hours=720",
});
import pulumi
import pulumi_authentik as authentik
example = authentik.RequestRule("example", name="Example access request rule")
example_application = authentik.Application("example",
name="example app",
slug="example-app")
example_request_rule_binding = authentik.RequestRuleBinding("example",
rule=example.request_rule_id,
target=example_application.uuid,
expiry_pending="hours=8",
expiry_granted_max="hours=720")
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 {
example, err := authentik.NewRequestRule(ctx, "example", &authentik.RequestRuleArgs{
Name: pulumi.String("Example access request rule"),
})
if err != nil {
return err
}
exampleApplication, err := authentik.NewApplication(ctx, "example", &authentik.ApplicationArgs{
Name: pulumi.String("example app"),
Slug: pulumi.String("example-app"),
})
if err != nil {
return err
}
_, err = authentik.NewRequestRuleBinding(ctx, "example", &authentik.RequestRuleBindingArgs{
Rule: example.RequestRuleId,
Target: exampleApplication.Uuid,
ExpiryPending: pulumi.String("hours=8"),
ExpiryGrantedMax: pulumi.String("hours=720"),
})
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",
});
var exampleApplication = new Authentik.Application("example", new()
{
Name = "example app",
Slug = "example-app",
});
var exampleRequestRuleBinding = new Authentik.RequestRuleBinding("example", new()
{
Rule = example.RequestRuleId,
Target = exampleApplication.Uuid,
ExpiryPending = "hours=8",
ExpiryGrantedMax = "hours=720",
});
});
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 com.pulumi.authentik.Application;
import com.pulumi.authentik.ApplicationArgs;
import com.pulumi.authentik.RequestRuleBinding;
import com.pulumi.authentik.RequestRuleBindingArgs;
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")
.build());
var exampleApplication = new Application("exampleApplication", ApplicationArgs.builder()
.name("example app")
.slug("example-app")
.build());
var exampleRequestRuleBinding = new RequestRuleBinding("exampleRequestRuleBinding", RequestRuleBindingArgs.builder()
.rule(example.requestRuleId())
.target(exampleApplication.uuid())
.expiryPending("hours=8")
.expiryGrantedMax("hours=720")
.build());
}
}
resources:
example:
type: authentik:RequestRule
properties:
name: Example access request rule
exampleApplication:
type: authentik:Application
name: example
properties:
name: example app
slug: example-app
exampleRequestRuleBinding:
type: authentik:RequestRuleBinding
name: example
properties:
rule: ${example.requestRuleId}
target: ${exampleApplication.uuid}
expiryPending: hours=8
expiryGrantedMax: hours=720
Example coming soon!
Create RequestRuleBinding Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RequestRuleBinding(name: string, args: RequestRuleBindingArgs, opts?: CustomResourceOptions);@overload
def RequestRuleBinding(resource_name: str,
args: RequestRuleBindingArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RequestRuleBinding(resource_name: str,
opts: Optional[ResourceOptions] = None,
rule: Optional[str] = None,
target: Optional[str] = None,
expiry_granted_max: Optional[str] = None,
expiry_pending: Optional[str] = None,
policy_engine_mode: Optional[str] = None,
request_rule_binding_id: Optional[str] = None)func NewRequestRuleBinding(ctx *Context, name string, args RequestRuleBindingArgs, opts ...ResourceOption) (*RequestRuleBinding, error)public RequestRuleBinding(string name, RequestRuleBindingArgs args, CustomResourceOptions? opts = null)
public RequestRuleBinding(String name, RequestRuleBindingArgs args)
public RequestRuleBinding(String name, RequestRuleBindingArgs args, CustomResourceOptions options)
type: authentik:RequestRuleBinding
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "authentik_request_rule_binding" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args RequestRuleBindingArgs
- 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 RequestRuleBindingArgs
- 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 RequestRuleBindingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RequestRuleBindingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RequestRuleBindingArgs
- 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 requestRuleBindingResource = new Authentik.RequestRuleBinding("requestRuleBindingResource", new()
{
Rule = "string",
Target = "string",
ExpiryGrantedMax = "string",
ExpiryPending = "string",
PolicyEngineMode = "string",
RequestRuleBindingId = "string",
});
example, err := authentik.NewRequestRuleBinding(ctx, "requestRuleBindingResource", &authentik.RequestRuleBindingArgs{
Rule: pulumi.String("string"),
Target: pulumi.String("string"),
ExpiryGrantedMax: pulumi.String("string"),
ExpiryPending: pulumi.String("string"),
PolicyEngineMode: pulumi.String("string"),
RequestRuleBindingId: pulumi.String("string"),
})
resource "authentik_request_rule_binding" "requestRuleBindingResource" {
lifecycle {
create_before_destroy = true
}
rule = "string"
target = "string"
expiry_granted_max = "string"
expiry_pending = "string"
policy_engine_mode = "string"
request_rule_binding_id = "string"
}
var requestRuleBindingResource = new RequestRuleBinding("requestRuleBindingResource", RequestRuleBindingArgs.builder()
.rule("string")
.target("string")
.expiryGrantedMax("string")
.expiryPending("string")
.policyEngineMode("string")
.requestRuleBindingId("string")
.build());
request_rule_binding_resource = authentik.RequestRuleBinding("requestRuleBindingResource",
rule="string",
target="string",
expiry_granted_max="string",
expiry_pending="string",
policy_engine_mode="string",
request_rule_binding_id="string")
const requestRuleBindingResource = new authentik.RequestRuleBinding("requestRuleBindingResource", {
rule: "string",
target: "string",
expiryGrantedMax: "string",
expiryPending: "string",
policyEngineMode: "string",
requestRuleBindingId: "string",
});
type: authentik:RequestRuleBinding
properties:
expiryGrantedMax: string
expiryPending: string
policyEngineMode: string
requestRuleBindingId: string
rule: string
target: string
RequestRuleBinding 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 RequestRuleBinding resource accepts the following input properties:
- Rule string
- UUID of the authentik.RequestRule this binding applies.
- Target string
- ID of the object this binding makes requestable.
- Expiry
Granted stringMax - The maximum duration a grant approved against this binding can last. Format: hours=1;minutes=2;seconds=3. Generated.
- Expiry
Pending string - How long a request against this binding stays pending before it automatically lapses if not approved or denied. Format: hours=1;minutes=2;seconds=3. Generated.
- Policy
Engine stringMode - Allowed values:
allanyGenerated.
- Request
Rule stringBinding Id
- Rule string
- UUID of the authentik.RequestRule this binding applies.
- Target string
- ID of the object this binding makes requestable.
- Expiry
Granted stringMax - The maximum duration a grant approved against this binding can last. Format: hours=1;minutes=2;seconds=3. Generated.
- Expiry
Pending string - How long a request against this binding stays pending before it automatically lapses if not approved or denied. Format: hours=1;minutes=2;seconds=3. Generated.
- Policy
Engine stringMode - Allowed values:
allanyGenerated.
- Request
Rule stringBinding Id
- rule string
- UUID of the authentik.RequestRule this binding applies.
- target string
- ID of the object this binding makes requestable.
- expiry_
granted_ stringmax - The maximum duration a grant approved against this binding can last. Format: hours=1;minutes=2;seconds=3. Generated.
- expiry_
pending string - How long a request against this binding stays pending before it automatically lapses if not approved or denied. Format: hours=1;minutes=2;seconds=3. Generated.
- policy_
engine_ stringmode - Allowed values:
allanyGenerated.
- request_
rule_ stringbinding_ id
- rule String
- UUID of the authentik.RequestRule this binding applies.
- target String
- ID of the object this binding makes requestable.
- expiry
Granted StringMax - The maximum duration a grant approved against this binding can last. Format: hours=1;minutes=2;seconds=3. Generated.
- expiry
Pending String - How long a request against this binding stays pending before it automatically lapses if not approved or denied. Format: hours=1;minutes=2;seconds=3. Generated.
- policy
Engine StringMode - Allowed values:
allanyGenerated.
- request
Rule StringBinding Id
- rule string
- UUID of the authentik.RequestRule this binding applies.
- target string
- ID of the object this binding makes requestable.
- expiry
Granted stringMax - The maximum duration a grant approved against this binding can last. Format: hours=1;minutes=2;seconds=3. Generated.
- expiry
Pending string - How long a request against this binding stays pending before it automatically lapses if not approved or denied. Format: hours=1;minutes=2;seconds=3. Generated.
- policy
Engine stringMode - Allowed values:
allanyGenerated.
- request
Rule stringBinding Id
- rule str
- UUID of the authentik.RequestRule this binding applies.
- target str
- ID of the object this binding makes requestable.
- expiry_
granted_ strmax - The maximum duration a grant approved against this binding can last. Format: hours=1;minutes=2;seconds=3. Generated.
- expiry_
pending str - How long a request against this binding stays pending before it automatically lapses if not approved or denied. Format: hours=1;minutes=2;seconds=3. Generated.
- policy_
engine_ strmode - Allowed values:
allanyGenerated.
- request_
rule_ strbinding_ id
- rule String
- UUID of the authentik.RequestRule this binding applies.
- target String
- ID of the object this binding makes requestable.
- expiry
Granted StringMax - The maximum duration a grant approved against this binding can last. Format: hours=1;minutes=2;seconds=3. Generated.
- expiry
Pending String - How long a request against this binding stays pending before it automatically lapses if not approved or denied. Format: hours=1;minutes=2;seconds=3. Generated.
- policy
Engine StringMode - Allowed values:
allanyGenerated.
- request
Rule StringBinding Id
Outputs
All input properties are implicitly available as output properties. Additionally, the RequestRuleBinding resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- List<string>
- Objects related to this binding's target, derived server-side. Generated.
- Id string
- The provider-assigned unique ID for this managed resource.
- []string
- Objects related to this binding's target, derived server-side. Generated.
- id string
- The provider-assigned unique ID for this managed resource.
- list(string)
- Objects related to this binding's target, derived server-side. Generated.
- id String
- The provider-assigned unique ID for this managed resource.
- List<String>
- Objects related to this binding's target, derived server-side. Generated.
- id string
- The provider-assigned unique ID for this managed resource.
- string[]
- Objects related to this binding's target, derived server-side. Generated.
- id str
- The provider-assigned unique ID for this managed resource.
- Sequence[str]
- Objects related to this binding's target, derived server-side. Generated.
- id String
- The provider-assigned unique ID for this managed resource.
- List<String>
- Objects related to this binding's target, derived server-side. Generated.
Look up Existing RequestRuleBinding Resource
Get an existing RequestRuleBinding 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?: RequestRuleBindingState, opts?: CustomResourceOptions): RequestRuleBinding@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
expiry_granted_max: Optional[str] = None,
expiry_pending: Optional[str] = None,
policy_engine_mode: Optional[str] = None,
relateds: Optional[Sequence[str]] = None,
request_rule_binding_id: Optional[str] = None,
rule: Optional[str] = None,
target: Optional[str] = None) -> RequestRuleBindingfunc GetRequestRuleBinding(ctx *Context, name string, id IDInput, state *RequestRuleBindingState, opts ...ResourceOption) (*RequestRuleBinding, error)public static RequestRuleBinding Get(string name, Input<string> id, RequestRuleBindingState? state, CustomResourceOptions? opts = null)public static RequestRuleBinding get(String name, Output<String> id, RequestRuleBindingState state, CustomResourceOptions options)resources: _: type: authentik:RequestRuleBinding get: id: ${id}import {
to = authentik_request_rule_binding.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.
- Expiry
Granted stringMax - The maximum duration a grant approved against this binding can last. Format: hours=1;minutes=2;seconds=3. Generated.
- Expiry
Pending string - How long a request against this binding stays pending before it automatically lapses if not approved or denied. Format: hours=1;minutes=2;seconds=3. Generated.
- Policy
Engine stringMode - Allowed values:
allanyGenerated.
- List<string>
- Objects related to this binding's target, derived server-side. Generated.
- Request
Rule stringBinding Id - Rule string
- UUID of the authentik.RequestRule this binding applies.
- Target string
- ID of the object this binding makes requestable.
- Expiry
Granted stringMax - The maximum duration a grant approved against this binding can last. Format: hours=1;minutes=2;seconds=3. Generated.
- Expiry
Pending string - How long a request against this binding stays pending before it automatically lapses if not approved or denied. Format: hours=1;minutes=2;seconds=3. Generated.
- Policy
Engine stringMode - Allowed values:
allanyGenerated.
- []string
- Objects related to this binding's target, derived server-side. Generated.
- Request
Rule stringBinding Id - Rule string
- UUID of the authentik.RequestRule this binding applies.
- Target string
- ID of the object this binding makes requestable.
- expiry_
granted_ stringmax - The maximum duration a grant approved against this binding can last. Format: hours=1;minutes=2;seconds=3. Generated.
- expiry_
pending string - How long a request against this binding stays pending before it automatically lapses if not approved or denied. Format: hours=1;minutes=2;seconds=3. Generated.
- policy_
engine_ stringmode - Allowed values:
allanyGenerated.
- list(string)
- Objects related to this binding's target, derived server-side. Generated.
- request_
rule_ stringbinding_ id - rule string
- UUID of the authentik.RequestRule this binding applies.
- target string
- ID of the object this binding makes requestable.
- expiry
Granted StringMax - The maximum duration a grant approved against this binding can last. Format: hours=1;minutes=2;seconds=3. Generated.
- expiry
Pending String - How long a request against this binding stays pending before it automatically lapses if not approved or denied. Format: hours=1;minutes=2;seconds=3. Generated.
- policy
Engine StringMode - Allowed values:
allanyGenerated.
- List<String>
- Objects related to this binding's target, derived server-side. Generated.
- request
Rule StringBinding Id - rule String
- UUID of the authentik.RequestRule this binding applies.
- target String
- ID of the object this binding makes requestable.
- expiry
Granted stringMax - The maximum duration a grant approved against this binding can last. Format: hours=1;minutes=2;seconds=3. Generated.
- expiry
Pending string - How long a request against this binding stays pending before it automatically lapses if not approved or denied. Format: hours=1;minutes=2;seconds=3. Generated.
- policy
Engine stringMode - Allowed values:
allanyGenerated.
- string[]
- Objects related to this binding's target, derived server-side. Generated.
- request
Rule stringBinding Id - rule string
- UUID of the authentik.RequestRule this binding applies.
- target string
- ID of the object this binding makes requestable.
- expiry_
granted_ strmax - The maximum duration a grant approved against this binding can last. Format: hours=1;minutes=2;seconds=3. Generated.
- expiry_
pending str - How long a request against this binding stays pending before it automatically lapses if not approved or denied. Format: hours=1;minutes=2;seconds=3. Generated.
- policy_
engine_ strmode - Allowed values:
allanyGenerated.
- Sequence[str]
- Objects related to this binding's target, derived server-side. Generated.
- request_
rule_ strbinding_ id - rule str
- UUID of the authentik.RequestRule this binding applies.
- target str
- ID of the object this binding makes requestable.
- expiry
Granted StringMax - The maximum duration a grant approved against this binding can last. Format: hours=1;minutes=2;seconds=3. Generated.
- expiry
Pending String - How long a request against this binding stays pending before it automatically lapses if not approved or denied. Format: hours=1;minutes=2;seconds=3. Generated.
- policy
Engine StringMode - Allowed values:
allanyGenerated.
- List<String>
- Objects related to this binding's target, derived server-side. Generated.
- request
Rule StringBinding Id - rule String
- UUID of the authentik.RequestRule this binding applies.
- target String
- ID of the object this binding makes requestable.
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