1. Packages
  2. Authentik Provider
  3. API Docs
  4. StageConsent
authentik 2025.2.0 published on Monday, Mar 24, 2025 by goauthentik

authentik.StageConsent

Explore with Pulumi AI

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as authentik from "@pulumi/authentik";

const name = new authentik.StageConsent("name", {});
Copy
import pulumi
import pulumi_authentik as authentik

name = authentik.StageConsent("name")
Copy
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.NewStageConsent(ctx, "name", nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Authentik = Pulumi.Authentik;

return await Deployment.RunAsync(() => 
{
    var name = new Authentik.StageConsent("name");

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.authentik.StageConsent;
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 name = new StageConsent("name");

    }
}
Copy
resources:
  name:
    type: authentik:StageConsent
Copy

Create StageConsent Resource

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

Constructor syntax

new StageConsent(name: string, args?: StageConsentArgs, opts?: CustomResourceOptions);
@overload
def StageConsent(resource_name: str,
                 args: Optional[StageConsentArgs] = None,
                 opts: Optional[ResourceOptions] = None)

@overload
def StageConsent(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 consent_expire_in: Optional[str] = None,
                 mode: Optional[str] = None,
                 name: Optional[str] = None,
                 stage_consent_id: Optional[str] = None)
func NewStageConsent(ctx *Context, name string, args *StageConsentArgs, opts ...ResourceOption) (*StageConsent, error)
public StageConsent(string name, StageConsentArgs? args = null, CustomResourceOptions? opts = null)
public StageConsent(String name, StageConsentArgs args)
public StageConsent(String name, StageConsentArgs args, CustomResourceOptions options)
type: authentik:StageConsent
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args StageConsentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args StageConsentArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args StageConsentArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args StageConsentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. StageConsentArgs
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 stageConsentResource = new Authentik.StageConsent("stageConsentResource", new()
{
    ConsentExpireIn = "string",
    Mode = "string",
    Name = "string",
    StageConsentId = "string",
});
Copy
example, err := authentik.NewStageConsent(ctx, "stageConsentResource", &authentik.StageConsentArgs{
	ConsentExpireIn: pulumi.String("string"),
	Mode:            pulumi.String("string"),
	Name:            pulumi.String("string"),
	StageConsentId:  pulumi.String("string"),
})
Copy
var stageConsentResource = new StageConsent("stageConsentResource", StageConsentArgs.builder()
    .consentExpireIn("string")
    .mode("string")
    .name("string")
    .stageConsentId("string")
    .build());
Copy
stage_consent_resource = authentik.StageConsent("stageConsentResource",
    consent_expire_in="string",
    mode="string",
    name="string",
    stage_consent_id="string")
Copy
const stageConsentResource = new authentik.StageConsent("stageConsentResource", {
    consentExpireIn: "string",
    mode: "string",
    name: "string",
    stageConsentId: "string",
});
Copy
type: authentik:StageConsent
properties:
    consentExpireIn: string
    mode: string
    name: string
    stageConsentId: string
Copy

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

ConsentExpireIn string
Defaults to weeks=4.
Mode string
Allowed values: - always_require - permanent - expiring Defaults to always_require.
Name string
StageConsentId string
ConsentExpireIn string
Defaults to weeks=4.
Mode string
Allowed values: - always_require - permanent - expiring Defaults to always_require.
Name string
StageConsentId string
consentExpireIn String
Defaults to weeks=4.
mode String
Allowed values: - always_require - permanent - expiring Defaults to always_require.
name String
stageConsentId String
consentExpireIn string
Defaults to weeks=4.
mode string
Allowed values: - always_require - permanent - expiring Defaults to always_require.
name string
stageConsentId string
consent_expire_in str
Defaults to weeks=4.
mode str
Allowed values: - always_require - permanent - expiring Defaults to always_require.
name str
stage_consent_id str
consentExpireIn String
Defaults to weeks=4.
mode String
Allowed values: - always_require - permanent - expiring Defaults to always_require.
name String
stageConsentId String

Outputs

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

Get an existing StageConsent 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?: StageConsentState, opts?: CustomResourceOptions): StageConsent
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        consent_expire_in: Optional[str] = None,
        mode: Optional[str] = None,
        name: Optional[str] = None,
        stage_consent_id: Optional[str] = None) -> StageConsent
func GetStageConsent(ctx *Context, name string, id IDInput, state *StageConsentState, opts ...ResourceOption) (*StageConsent, error)
public static StageConsent Get(string name, Input<string> id, StageConsentState? state, CustomResourceOptions? opts = null)
public static StageConsent get(String name, Output<String> id, StageConsentState state, CustomResourceOptions options)
resources:  _:    type: authentik:StageConsent    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
ConsentExpireIn string
Defaults to weeks=4.
Mode string
Allowed values: - always_require - permanent - expiring Defaults to always_require.
Name string
StageConsentId string
ConsentExpireIn string
Defaults to weeks=4.
Mode string
Allowed values: - always_require - permanent - expiring Defaults to always_require.
Name string
StageConsentId string
consentExpireIn String
Defaults to weeks=4.
mode String
Allowed values: - always_require - permanent - expiring Defaults to always_require.
name String
stageConsentId String
consentExpireIn string
Defaults to weeks=4.
mode string
Allowed values: - always_require - permanent - expiring Defaults to always_require.
name string
stageConsentId string
consent_expire_in str
Defaults to weeks=4.
mode str
Allowed values: - always_require - permanent - expiring Defaults to always_require.
name str
stage_consent_id str
consentExpireIn String
Defaults to weeks=4.
mode String
Allowed values: - always_require - permanent - expiring Defaults to always_require.
name String
stageConsentId String

Package Details

Repository
authentik goauthentik/terraform-provider-authentik
License
Notes
This Pulumi package is based on the authentik Terraform Provider.