1. Packages
  2. Authentik Provider
  3. API Docs
  4. StageMutualTls
authentik 2025.6.0 published on Wednesday, Jun 18, 2025 by goauthentik

authentik.StageMutualTls

Explore with Pulumi AI

authentik logo
authentik 2025.6.0 published on Wednesday, Jun 18, 2025 by goauthentik

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as authentik from "@pulumi/authentik";
    
    const mtls = new authentik.StageMutualTls("mtls", {});
    
    import pulumi
    import pulumi_authentik as authentik
    
    mtls = authentik.StageMutualTls("mtls")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/authentik/v2025/authentik"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := authentik.NewStageMutualTls(ctx, "mtls", nil)
    		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 mtls = new Authentik.StageMutualTls("mtls");
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.authentik.StageMutualTls;
    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 mtls = new StageMutualTls("mtls");
    
        }
    }
    
    resources:
      mtls:
        type: authentik:StageMutualTls
    

    Create StageMutualTls Resource

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

    Constructor syntax

    new StageMutualTls(name: string, args?: StageMutualTlsArgs, opts?: CustomResourceOptions);
    @overload
    def StageMutualTls(resource_name: str,
                       args: Optional[StageMutualTlsArgs] = None,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def StageMutualTls(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       cert_attribute: Optional[str] = None,
                       certificate_authorities: Optional[Sequence[str]] = None,
                       mode: Optional[str] = None,
                       name: Optional[str] = None,
                       stage_mutual_tls_id: Optional[str] = None,
                       user_attribute: Optional[str] = None)
    func NewStageMutualTls(ctx *Context, name string, args *StageMutualTlsArgs, opts ...ResourceOption) (*StageMutualTls, error)
    public StageMutualTls(string name, StageMutualTlsArgs? args = null, CustomResourceOptions? opts = null)
    public StageMutualTls(String name, StageMutualTlsArgs args)
    public StageMutualTls(String name, StageMutualTlsArgs args, CustomResourceOptions options)
    
    type: authentik:StageMutualTls
    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 StageMutualTlsArgs
    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 StageMutualTlsArgs
    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 StageMutualTlsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args StageMutualTlsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args StageMutualTlsArgs
    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 stageMutualTlsResource = new Authentik.StageMutualTls("stageMutualTlsResource", new()
    {
        CertAttribute = "string",
        CertificateAuthorities = new[]
        {
            "string",
        },
        Mode = "string",
        Name = "string",
        StageMutualTlsId = "string",
        UserAttribute = "string",
    });
    
    example, err := authentik.NewStageMutualTls(ctx, "stageMutualTlsResource", &authentik.StageMutualTlsArgs{
    	CertAttribute: pulumi.String("string"),
    	CertificateAuthorities: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Mode:             pulumi.String("string"),
    	Name:             pulumi.String("string"),
    	StageMutualTlsId: pulumi.String("string"),
    	UserAttribute:    pulumi.String("string"),
    })
    
    var stageMutualTlsResource = new StageMutualTls("stageMutualTlsResource", StageMutualTlsArgs.builder()
        .certAttribute("string")
        .certificateAuthorities("string")
        .mode("string")
        .name("string")
        .stageMutualTlsId("string")
        .userAttribute("string")
        .build());
    
    stage_mutual_tls_resource = authentik.StageMutualTls("stageMutualTlsResource",
        cert_attribute="string",
        certificate_authorities=["string"],
        mode="string",
        name="string",
        stage_mutual_tls_id="string",
        user_attribute="string")
    
    const stageMutualTlsResource = new authentik.StageMutualTls("stageMutualTlsResource", {
        certAttribute: "string",
        certificateAuthorities: ["string"],
        mode: "string",
        name: "string",
        stageMutualTlsId: "string",
        userAttribute: "string",
    });
    
    type: authentik:StageMutualTls
    properties:
        certAttribute: string
        certificateAuthorities:
            - string
        mode: string
        name: string
        stageMutualTlsId: string
        userAttribute: string
    

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

    CertAttribute string
    Allowed values: - subject - common_name - email Defaults to email.
    CertificateAuthorities List<string>
    Mode string
    Allowed values: - optional - required Defaults to optional.
    Name string
    StageMutualTlsId string
    UserAttribute string
    Allowed values: - username - email Defaults to email.
    CertAttribute string
    Allowed values: - subject - common_name - email Defaults to email.
    CertificateAuthorities []string
    Mode string
    Allowed values: - optional - required Defaults to optional.
    Name string
    StageMutualTlsId string
    UserAttribute string
    Allowed values: - username - email Defaults to email.
    certAttribute String
    Allowed values: - subject - common_name - email Defaults to email.
    certificateAuthorities List<String>
    mode String
    Allowed values: - optional - required Defaults to optional.
    name String
    stageMutualTlsId String
    userAttribute String
    Allowed values: - username - email Defaults to email.
    certAttribute string
    Allowed values: - subject - common_name - email Defaults to email.
    certificateAuthorities string[]
    mode string
    Allowed values: - optional - required Defaults to optional.
    name string
    stageMutualTlsId string
    userAttribute string
    Allowed values: - username - email Defaults to email.
    cert_attribute str
    Allowed values: - subject - common_name - email Defaults to email.
    certificate_authorities Sequence[str]
    mode str
    Allowed values: - optional - required Defaults to optional.
    name str
    stage_mutual_tls_id str
    user_attribute str
    Allowed values: - username - email Defaults to email.
    certAttribute String
    Allowed values: - subject - common_name - email Defaults to email.
    certificateAuthorities List<String>
    mode String
    Allowed values: - optional - required Defaults to optional.
    name String
    stageMutualTlsId String
    userAttribute String
    Allowed values: - username - email Defaults to email.

    Outputs

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

    Get an existing StageMutualTls 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?: StageMutualTlsState, opts?: CustomResourceOptions): StageMutualTls
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cert_attribute: Optional[str] = None,
            certificate_authorities: Optional[Sequence[str]] = None,
            mode: Optional[str] = None,
            name: Optional[str] = None,
            stage_mutual_tls_id: Optional[str] = None,
            user_attribute: Optional[str] = None) -> StageMutualTls
    func GetStageMutualTls(ctx *Context, name string, id IDInput, state *StageMutualTlsState, opts ...ResourceOption) (*StageMutualTls, error)
    public static StageMutualTls Get(string name, Input<string> id, StageMutualTlsState? state, CustomResourceOptions? opts = null)
    public static StageMutualTls get(String name, Output<String> id, StageMutualTlsState state, CustomResourceOptions options)
    resources:  _:    type: authentik:StageMutualTls    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.
    The following state arguments are supported:
    CertAttribute string
    Allowed values: - subject - common_name - email Defaults to email.
    CertificateAuthorities List<string>
    Mode string
    Allowed values: - optional - required Defaults to optional.
    Name string
    StageMutualTlsId string
    UserAttribute string
    Allowed values: - username - email Defaults to email.
    CertAttribute string
    Allowed values: - subject - common_name - email Defaults to email.
    CertificateAuthorities []string
    Mode string
    Allowed values: - optional - required Defaults to optional.
    Name string
    StageMutualTlsId string
    UserAttribute string
    Allowed values: - username - email Defaults to email.
    certAttribute String
    Allowed values: - subject - common_name - email Defaults to email.
    certificateAuthorities List<String>
    mode String
    Allowed values: - optional - required Defaults to optional.
    name String
    stageMutualTlsId String
    userAttribute String
    Allowed values: - username - email Defaults to email.
    certAttribute string
    Allowed values: - subject - common_name - email Defaults to email.
    certificateAuthorities string[]
    mode string
    Allowed values: - optional - required Defaults to optional.
    name string
    stageMutualTlsId string
    userAttribute string
    Allowed values: - username - email Defaults to email.
    cert_attribute str
    Allowed values: - subject - common_name - email Defaults to email.
    certificate_authorities Sequence[str]
    mode str
    Allowed values: - optional - required Defaults to optional.
    name str
    stage_mutual_tls_id str
    user_attribute str
    Allowed values: - username - email Defaults to email.
    certAttribute String
    Allowed values: - subject - common_name - email Defaults to email.
    certificateAuthorities List<String>
    mode String
    Allowed values: - optional - required Defaults to optional.
    name String
    stageMutualTlsId String
    userAttribute String
    Allowed values: - username - email Defaults to email.

    Package Details

    Repository
    authentik goauthentik/terraform-provider-authentik
    License
    Notes
    This Pulumi package is based on the authentik Terraform Provider.
    authentik logo
    authentik 2025.6.0 published on Wednesday, Jun 18, 2025 by goauthentik