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

authentik.Outpost

Explore with Pulumi AI

Example Usage

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

const default_authorization_flow = authentik.getFlow({
    slug: "default-provider-authorization-implicit-consent",
});
const proxy = new authentik.ProviderProxy("proxy", {
    authorizationFlow: default_authorization_flow.then(default_authorization_flow => default_authorization_flow.id),
    externalHost: "http://foo.bar.baz",
    internalHost: "http://internal.local",
});
const outpost = new authentik.Outpost("outpost", {protocolProviders: [proxy.providerProxyId]});
Copy
import pulumi
import pulumi_authentik as authentik

default_authorization_flow = authentik.get_flow(slug="default-provider-authorization-implicit-consent")
proxy = authentik.ProviderProxy("proxy",
    authorization_flow=default_authorization_flow.id,
    external_host="http://foo.bar.baz",
    internal_host="http://internal.local")
outpost = authentik.Outpost("outpost", protocol_providers=[proxy.provider_proxy_id])
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 {
		default_authorization_flow, err := authentik.LookupFlow(ctx, &authentik.LookupFlowArgs{
			Slug: pulumi.StringRef("default-provider-authorization-implicit-consent"),
		}, nil)
		if err != nil {
			return err
		}
		proxy, err := authentik.NewProviderProxy(ctx, "proxy", &authentik.ProviderProxyArgs{
			AuthorizationFlow: pulumi.String(default_authorization_flow.Id),
			ExternalHost:      pulumi.String("http://foo.bar.baz"),
			InternalHost:      pulumi.String("http://internal.local"),
		})
		if err != nil {
			return err
		}
		_, err = authentik.NewOutpost(ctx, "outpost", &authentik.OutpostArgs{
			ProtocolProviders: pulumi.Float64Array{
				proxy.ProviderProxyId,
			},
		})
		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 default_authorization_flow = Authentik.GetFlow.Invoke(new()
    {
        Slug = "default-provider-authorization-implicit-consent",
    });

    var proxy = new Authentik.ProviderProxy("proxy", new()
    {
        AuthorizationFlow = default_authorization_flow.Apply(default_authorization_flow => default_authorization_flow.Apply(getFlowResult => getFlowResult.Id)),
        ExternalHost = "http://foo.bar.baz",
        InternalHost = "http://internal.local",
    });

    var outpost = new Authentik.Outpost("outpost", new()
    {
        ProtocolProviders = new[]
        {
            proxy.ProviderProxyId,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.authentik.AuthentikFunctions;
import com.pulumi.authentik.inputs.GetFlowArgs;
import com.pulumi.authentik.ProviderProxy;
import com.pulumi.authentik.ProviderProxyArgs;
import com.pulumi.authentik.Outpost;
import com.pulumi.authentik.OutpostArgs;
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) {
        final var default-authorization-flow = AuthentikFunctions.getFlow(GetFlowArgs.builder()
            .slug("default-provider-authorization-implicit-consent")
            .build());

        var proxy = new ProviderProxy("proxy", ProviderProxyArgs.builder()
            .authorizationFlow(default_authorization_flow.id())
            .externalHost("http://foo.bar.baz")
            .internalHost("http://internal.local")
            .build());

        var outpost = new Outpost("outpost", OutpostArgs.builder()
            .protocolProviders(proxy.providerProxyId())
            .build());

    }
}
Copy
resources:
  proxy:
    type: authentik:ProviderProxy
    properties:
      authorizationFlow: ${["default-authorization-flow"].id}
      externalHost: http://foo.bar.baz
      internalHost: http://internal.local
  outpost:
    type: authentik:Outpost
    properties:
      protocolProviders:
        - ${proxy.providerProxyId}
variables:
  default-authorization-flow:
    fn::invoke:
      function: authentik:getFlow
      arguments:
        slug: default-provider-authorization-implicit-consent
Copy

Create Outpost Resource

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

Constructor syntax

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

@overload
def Outpost(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            protocol_providers: Optional[Sequence[float]] = None,
            config: Optional[str] = None,
            name: Optional[str] = None,
            outpost_id: Optional[str] = None,
            service_connection: Optional[str] = None,
            type: Optional[str] = None)
func NewOutpost(ctx *Context, name string, args OutpostArgs, opts ...ResourceOption) (*Outpost, error)
public Outpost(string name, OutpostArgs args, CustomResourceOptions? opts = null)
public Outpost(String name, OutpostArgs args)
public Outpost(String name, OutpostArgs args, CustomResourceOptions options)
type: authentik:Outpost
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 This property is required. OutpostArgs
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 This property is required. OutpostArgs
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 This property is required. OutpostArgs
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 This property is required. OutpostArgs
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. OutpostArgs
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 outpostResource = new Authentik.Outpost("outpostResource", new()
{
    ProtocolProviders = new[]
    {
        0,
    },
    Config = "string",
    Name = "string",
    OutpostId = "string",
    ServiceConnection = "string",
    Type = "string",
});
Copy
example, err := authentik.NewOutpost(ctx, "outpostResource", &authentik.OutpostArgs{
	ProtocolProviders: pulumi.Float64Array{
		pulumi.Float64(0),
	},
	Config:            pulumi.String("string"),
	Name:              pulumi.String("string"),
	OutpostId:         pulumi.String("string"),
	ServiceConnection: pulumi.String("string"),
	Type:              pulumi.String("string"),
})
Copy
var outpostResource = new Outpost("outpostResource", OutpostArgs.builder()
    .protocolProviders(0)
    .config("string")
    .name("string")
    .outpostId("string")
    .serviceConnection("string")
    .type("string")
    .build());
Copy
outpost_resource = authentik.Outpost("outpostResource",
    protocol_providers=[0],
    config="string",
    name="string",
    outpost_id="string",
    service_connection="string",
    type="string")
Copy
const outpostResource = new authentik.Outpost("outpostResource", {
    protocolProviders: [0],
    config: "string",
    name: "string",
    outpostId: "string",
    serviceConnection: "string",
    type: "string",
});
Copy
type: authentik:Outpost
properties:
    config: string
    name: string
    outpostId: string
    protocolProviders:
        - 0
    serviceConnection: string
    type: string
Copy

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

ProtocolProviders This property is required. List<double>
Config string
JSON format expected. Use jsonencode() to pass objects. Generated.
Name string
OutpostId string
ServiceConnection string
Type string
Allowed values: - proxy - ldap - radius - rac Defaults to proxy.
ProtocolProviders This property is required. []float64
Config string
JSON format expected. Use jsonencode() to pass objects. Generated.
Name string
OutpostId string
ServiceConnection string
Type string
Allowed values: - proxy - ldap - radius - rac Defaults to proxy.
protocolProviders This property is required. List<Double>
config String
JSON format expected. Use jsonencode() to pass objects. Generated.
name String
outpostId String
serviceConnection String
type String
Allowed values: - proxy - ldap - radius - rac Defaults to proxy.
protocolProviders This property is required. number[]
config string
JSON format expected. Use jsonencode() to pass objects. Generated.
name string
outpostId string
serviceConnection string
type string
Allowed values: - proxy - ldap - radius - rac Defaults to proxy.
protocol_providers This property is required. Sequence[float]
config str
JSON format expected. Use jsonencode() to pass objects. Generated.
name str
outpost_id str
service_connection str
type str
Allowed values: - proxy - ldap - radius - rac Defaults to proxy.
protocolProviders This property is required. List<Number>
config String
JSON format expected. Use jsonencode() to pass objects. Generated.
name String
outpostId String
serviceConnection String
type String
Allowed values: - proxy - ldap - radius - rac Defaults to proxy.

Outputs

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

Get an existing Outpost 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?: OutpostState, opts?: CustomResourceOptions): Outpost
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        config: Optional[str] = None,
        name: Optional[str] = None,
        outpost_id: Optional[str] = None,
        protocol_providers: Optional[Sequence[float]] = None,
        service_connection: Optional[str] = None,
        type: Optional[str] = None) -> Outpost
func GetOutpost(ctx *Context, name string, id IDInput, state *OutpostState, opts ...ResourceOption) (*Outpost, error)
public static Outpost Get(string name, Input<string> id, OutpostState? state, CustomResourceOptions? opts = null)
public static Outpost get(String name, Output<String> id, OutpostState state, CustomResourceOptions options)
resources:  _:    type: authentik:Outpost    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:
Config string
JSON format expected. Use jsonencode() to pass objects. Generated.
Name string
OutpostId string
ProtocolProviders List<double>
ServiceConnection string
Type string
Allowed values: - proxy - ldap - radius - rac Defaults to proxy.
Config string
JSON format expected. Use jsonencode() to pass objects. Generated.
Name string
OutpostId string
ProtocolProviders []float64
ServiceConnection string
Type string
Allowed values: - proxy - ldap - radius - rac Defaults to proxy.
config String
JSON format expected. Use jsonencode() to pass objects. Generated.
name String
outpostId String
protocolProviders List<Double>
serviceConnection String
type String
Allowed values: - proxy - ldap - radius - rac Defaults to proxy.
config string
JSON format expected. Use jsonencode() to pass objects. Generated.
name string
outpostId string
protocolProviders number[]
serviceConnection string
type string
Allowed values: - proxy - ldap - radius - rac Defaults to proxy.
config str
JSON format expected. Use jsonencode() to pass objects. Generated.
name str
outpost_id str
protocol_providers Sequence[float]
service_connection str
type str
Allowed values: - proxy - ldap - radius - rac Defaults to proxy.
config String
JSON format expected. Use jsonencode() to pass objects. Generated.
name String
outpostId String
protocolProviders List<Number>
serviceConnection String
type String
Allowed values: - proxy - ldap - radius - rac Defaults to proxy.

Package Details

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