1. Registry
  2. Packages
  3. Authentik Provider
  4. API Docs
  5. RequestRuleChildBinding
Viewing docs for authentik 2026.8.0
published on Wednesday, Sep 9, 2026 by goauthentik
Viewing docs for authentik 2026.8.0
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 primary = new authentik.Application("primary", {
        name: "example app",
        slug: "example-app",
    });
    const secondary = new authentik.Application("secondary", {
        name: "example app addon",
        slug: "example-app-addon",
    });
    const exampleRequestRuleBinding = new authentik.RequestRuleBinding("example", {
        rule: example.requestRuleId,
        target: primary.uuid,
    });
    // Make the addon requestable alongside the primary application, under the same rule
    const exampleRequestRuleChildBinding = new authentik.RequestRuleChildBinding("example", {
        binding: exampleRequestRuleBinding.requestRuleBindingId,
        target: secondary.uuid,
    });
    
    import pulumi
    import pulumi_authentik as authentik
    
    example = authentik.RequestRule("example", name="Example access request rule")
    primary = authentik.Application("primary",
        name="example app",
        slug="example-app")
    secondary = authentik.Application("secondary",
        name="example app addon",
        slug="example-app-addon")
    example_request_rule_binding = authentik.RequestRuleBinding("example",
        rule=example.request_rule_id,
        target=primary.uuid)
    # Make the addon requestable alongside the primary application, under the same rule
    example_request_rule_child_binding = authentik.RequestRuleChildBinding("example",
        binding=example_request_rule_binding.request_rule_binding_id,
        target=secondary.uuid)
    
    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
    		}
    		primary, err := authentik.NewApplication(ctx, "primary", &authentik.ApplicationArgs{
    			Name: pulumi.String("example app"),
    			Slug: pulumi.String("example-app"),
    		})
    		if err != nil {
    			return err
    		}
    		secondary, err := authentik.NewApplication(ctx, "secondary", &authentik.ApplicationArgs{
    			Name: pulumi.String("example app addon"),
    			Slug: pulumi.String("example-app-addon"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleRequestRuleBinding, err := authentik.NewRequestRuleBinding(ctx, "example", &authentik.RequestRuleBindingArgs{
    			Rule:   example.RequestRuleId,
    			Target: primary.Uuid,
    		})
    		if err != nil {
    			return err
    		}
    		// Make the addon requestable alongside the primary application, under the same rule
    		_, err = authentik.NewRequestRuleChildBinding(ctx, "example", &authentik.RequestRuleChildBindingArgs{
    			Binding: exampleRequestRuleBinding.RequestRuleBindingId,
    			Target:  secondary.Uuid,
    		})
    		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 primary = new Authentik.Application("primary", new()
        {
            Name = "example app",
            Slug = "example-app",
        });
    
        var secondary = new Authentik.Application("secondary", new()
        {
            Name = "example app addon",
            Slug = "example-app-addon",
        });
    
        var exampleRequestRuleBinding = new Authentik.RequestRuleBinding("example", new()
        {
            Rule = example.RequestRuleId,
            Target = primary.Uuid,
        });
    
        // Make the addon requestable alongside the primary application, under the same rule
        var exampleRequestRuleChildBinding = new Authentik.RequestRuleChildBinding("example", new()
        {
            Binding = exampleRequestRuleBinding.RequestRuleBindingId,
            Target = secondary.Uuid,
        });
    
    });
    
    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 com.pulumi.authentik.RequestRuleChildBinding;
    import com.pulumi.authentik.RequestRuleChildBindingArgs;
    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 primary = new Application("primary", ApplicationArgs.builder()
                .name("example app")
                .slug("example-app")
                .build());
    
            var secondary = new Application("secondary", ApplicationArgs.builder()
                .name("example app addon")
                .slug("example-app-addon")
                .build());
    
            var exampleRequestRuleBinding = new RequestRuleBinding("exampleRequestRuleBinding", RequestRuleBindingArgs.builder()
                .rule(example.requestRuleId())
                .target(primary.uuid())
                .build());
    
            // Make the addon requestable alongside the primary application, under the same rule
            var exampleRequestRuleChildBinding = new RequestRuleChildBinding("exampleRequestRuleChildBinding", RequestRuleChildBindingArgs.builder()
                .binding(exampleRequestRuleBinding.requestRuleBindingId())
                .target(secondary.uuid())
                .build());
    
        }
    }
    
    resources:
      example:
        type: authentik:RequestRule
        properties:
          name: Example access request rule
      primary:
        type: authentik:Application
        properties:
          name: example app
          slug: example-app
      secondary:
        type: authentik:Application
        properties:
          name: example app addon
          slug: example-app-addon
      exampleRequestRuleBinding:
        type: authentik:RequestRuleBinding
        name: example
        properties:
          rule: ${example.requestRuleId}
          target: ${primary.uuid}
      # Make the addon requestable alongside the primary application, under the same rule
      exampleRequestRuleChildBinding:
        type: authentik:RequestRuleChildBinding
        name: example
        properties:
          binding: ${exampleRequestRuleBinding.requestRuleBindingId}
          target: ${secondary.uuid}
    
    Example coming soon!
    

    Create RequestRuleChildBinding Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new RequestRuleChildBinding(name: string, args: RequestRuleChildBindingArgs, opts?: CustomResourceOptions);
    @overload
    def RequestRuleChildBinding(resource_name: str,
                                args: RequestRuleChildBindingArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def RequestRuleChildBinding(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                binding: Optional[str] = None,
                                target: Optional[str] = None,
                                request_rule_child_binding_id: Optional[str] = None)
    func NewRequestRuleChildBinding(ctx *Context, name string, args RequestRuleChildBindingArgs, opts ...ResourceOption) (*RequestRuleChildBinding, error)
    public RequestRuleChildBinding(string name, RequestRuleChildBindingArgs args, CustomResourceOptions? opts = null)
    public RequestRuleChildBinding(String name, RequestRuleChildBindingArgs args)
    public RequestRuleChildBinding(String name, RequestRuleChildBindingArgs args, CustomResourceOptions options)
    
    type: authentik:RequestRuleChildBinding
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "authentik_request_rule_child_binding" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args RequestRuleChildBindingArgs
    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 RequestRuleChildBindingArgs
    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 RequestRuleChildBindingArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RequestRuleChildBindingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RequestRuleChildBindingArgs
    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 requestRuleChildBindingResource = new Authentik.RequestRuleChildBinding("requestRuleChildBindingResource", new()
    {
        Binding = "string",
        Target = "string",
        RequestRuleChildBindingId = "string",
    });
    
    example, err := authentik.NewRequestRuleChildBinding(ctx, "requestRuleChildBindingResource", &authentik.RequestRuleChildBindingArgs{
    	Binding:                   pulumi.String("string"),
    	Target:                    pulumi.String("string"),
    	RequestRuleChildBindingId: pulumi.String("string"),
    })
    
    resource "authentik_request_rule_child_binding" "requestRuleChildBindingResource" {
      lifecycle {
        create_before_destroy = true
      }
      binding                       = "string"
      target                        = "string"
      request_rule_child_binding_id = "string"
    }
    
    var requestRuleChildBindingResource = new RequestRuleChildBinding("requestRuleChildBindingResource", RequestRuleChildBindingArgs.builder()
        .binding("string")
        .target("string")
        .requestRuleChildBindingId("string")
        .build());
    
    request_rule_child_binding_resource = authentik.RequestRuleChildBinding("requestRuleChildBindingResource",
        binding="string",
        target="string",
        request_rule_child_binding_id="string")
    
    const requestRuleChildBindingResource = new authentik.RequestRuleChildBinding("requestRuleChildBindingResource", {
        binding: "string",
        target: "string",
        requestRuleChildBindingId: "string",
    });
    
    type: authentik:RequestRuleChildBinding
    properties:
        binding: string
        requestRuleChildBindingId: string
        target: string
    

    RequestRuleChildBinding 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 RequestRuleChildBinding resource accepts the following input properties:

    Binding string
    UUID of the authentikrequestrule_binding this child binding extends.
    Target string
    ID of the additional object this child binding makes requestable alongside the parent binding's target.
    RequestRuleChildBindingId string
    The ID of this resource.
    Binding string
    UUID of the authentikrequestrule_binding this child binding extends.
    Target string
    ID of the additional object this child binding makes requestable alongside the parent binding's target.
    RequestRuleChildBindingId string
    The ID of this resource.
    binding string
    UUID of the authentikrequestrule_binding this child binding extends.
    target string
    ID of the additional object this child binding makes requestable alongside the parent binding's target.
    request_rule_child_binding_id string
    The ID of this resource.
    binding String
    UUID of the authentikrequestrule_binding this child binding extends.
    target String
    ID of the additional object this child binding makes requestable alongside the parent binding's target.
    requestRuleChildBindingId String
    The ID of this resource.
    binding string
    UUID of the authentikrequestrule_binding this child binding extends.
    target string
    ID of the additional object this child binding makes requestable alongside the parent binding's target.
    requestRuleChildBindingId string
    The ID of this resource.
    binding str
    UUID of the authentikrequestrule_binding this child binding extends.
    target str
    ID of the additional object this child binding makes requestable alongside the parent binding's target.
    request_rule_child_binding_id str
    The ID of this resource.
    binding String
    UUID of the authentikrequestrule_binding this child binding extends.
    target String
    ID of the additional object this child binding makes requestable alongside the parent binding's target.
    requestRuleChildBindingId String
    The ID of this resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the RequestRuleChildBinding 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 RequestRuleChildBinding Resource

    Get an existing RequestRuleChildBinding 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?: RequestRuleChildBindingState, opts?: CustomResourceOptions): RequestRuleChildBinding
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            binding: Optional[str] = None,
            request_rule_child_binding_id: Optional[str] = None,
            target: Optional[str] = None) -> RequestRuleChildBinding
    func GetRequestRuleChildBinding(ctx *Context, name string, id IDInput, state *RequestRuleChildBindingState, opts ...ResourceOption) (*RequestRuleChildBinding, error)
    public static RequestRuleChildBinding Get(string name, Input<string> id, RequestRuleChildBindingState? state, CustomResourceOptions? opts = null)
    public static RequestRuleChildBinding get(String name, Output<String> id, RequestRuleChildBindingState state, CustomResourceOptions options)
    resources:  _:    type: authentik:RequestRuleChildBinding    get:      id: ${id}
    import {
      to = authentik_request_rule_child_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.
    The following state arguments are supported:
    Binding string
    UUID of the authentikrequestrule_binding this child binding extends.
    RequestRuleChildBindingId string
    The ID of this resource.
    Target string
    ID of the additional object this child binding makes requestable alongside the parent binding's target.
    Binding string
    UUID of the authentikrequestrule_binding this child binding extends.
    RequestRuleChildBindingId string
    The ID of this resource.
    Target string
    ID of the additional object this child binding makes requestable alongside the parent binding's target.
    binding string
    UUID of the authentikrequestrule_binding this child binding extends.
    request_rule_child_binding_id string
    The ID of this resource.
    target string
    ID of the additional object this child binding makes requestable alongside the parent binding's target.
    binding String
    UUID of the authentikrequestrule_binding this child binding extends.
    requestRuleChildBindingId String
    The ID of this resource.
    target String
    ID of the additional object this child binding makes requestable alongside the parent binding's target.
    binding string
    UUID of the authentikrequestrule_binding this child binding extends.
    requestRuleChildBindingId string
    The ID of this resource.
    target string
    ID of the additional object this child binding makes requestable alongside the parent binding's target.
    binding str
    UUID of the authentikrequestrule_binding this child binding extends.
    request_rule_child_binding_id str
    The ID of this resource.
    target str
    ID of the additional object this child binding makes requestable alongside the parent binding's target.
    binding String
    UUID of the authentikrequestrule_binding this child binding extends.
    requestRuleChildBindingId String
    The ID of this resource.
    target String
    ID of the additional object this child binding makes requestable alongside the parent binding's target.

    Package Details

    Repository
    authentik goauthentik/terraform-provider-authentik
    License
    Notes
    This Pulumi package is based on the authentik Terraform Provider.
    Viewing docs for authentik 2026.8.0
    published on Wednesday, Sep 9, 2026 by goauthentik

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial