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

authentik.getSource

Explore with Pulumi AI

authentik 2025.2.0 published on Monday, Mar 24, 2025 by goauthentik

Get Source by name, slug or managed

Example Usage

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

const inbuilt = authentik.getSource({
    managed: "goauthentik.io/sources/inbuilt",
});
Copy
import pulumi
import pulumi_authentik as authentik

inbuilt = authentik.get_source(managed="goauthentik.io/sources/inbuilt")
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.GetSource(ctx, &authentik.GetSourceArgs{
			Managed: pulumi.StringRef("goauthentik.io/sources/inbuilt"),
		}, 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 inbuilt = Authentik.GetSource.Invoke(new()
    {
        Managed = "goauthentik.io/sources/inbuilt",
    });

});
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.GetSourceArgs;
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 inbuilt = AuthentikFunctions.getSource(GetSourceArgs.builder()
            .managed("goauthentik.io/sources/inbuilt")
            .build());

    }
}
Copy
variables:
  inbuilt:
    fn::invoke:
      function: authentik:getSource
      arguments:
        managed: goauthentik.io/sources/inbuilt
Copy

Using getSource

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getSource(args: GetSourceArgs, opts?: InvokeOptions): Promise<GetSourceResult>
function getSourceOutput(args: GetSourceOutputArgs, opts?: InvokeOptions): Output<GetSourceResult>
Copy
def get_source(id: Optional[str] = None,
               managed: Optional[str] = None,
               slug: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetSourceResult
def get_source_output(id: Optional[pulumi.Input[str]] = None,
               managed: Optional[pulumi.Input[str]] = None,
               slug: Optional[pulumi.Input[str]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[GetSourceResult]
Copy
func GetSource(ctx *Context, args *GetSourceArgs, opts ...InvokeOption) (*GetSourceResult, error)
func GetSourceOutput(ctx *Context, args *GetSourceOutputArgs, opts ...InvokeOption) GetSourceResultOutput
Copy

> Note: This function is named GetSource in the Go SDK.

public static class GetSource 
{
    public static Task<GetSourceResult> InvokeAsync(GetSourceArgs args, InvokeOptions? opts = null)
    public static Output<GetSourceResult> Invoke(GetSourceInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetSourceResult> getSource(GetSourceArgs args, InvokeOptions options)
public static Output<GetSourceResult> getSource(GetSourceArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: authentik:index/getSource:getSource
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id string
The ID of this resource.
Managed string
Generated.
Slug string
Generated.
Id string
The ID of this resource.
Managed string
Generated.
Slug string
Generated.
id String
The ID of this resource.
managed String
Generated.
slug String
Generated.
id string
The ID of this resource.
managed string
Generated.
slug string
Generated.
id str
The ID of this resource.
managed str
Generated.
slug str
Generated.
id String
The ID of this resource.
managed String
Generated.
slug String
Generated.

getSource Result

The following output properties are available:

Id string
The ID of this resource.
Managed string
Generated.
Name string
Generated.
Slug string
Generated.
Uuid string
Generated.
Id string
The ID of this resource.
Managed string
Generated.
Name string
Generated.
Slug string
Generated.
Uuid string
Generated.
id String
The ID of this resource.
managed String
Generated.
name String
Generated.
slug String
Generated.
uuid String
Generated.
id string
The ID of this resource.
managed string
Generated.
name string
Generated.
slug string
Generated.
uuid string
Generated.
id str
The ID of this resource.
managed str
Generated.
name str
Generated.
slug str
Generated.
uuid str
Generated.
id String
The ID of this resource.
managed String
Generated.
name String
Generated.
slug String
Generated.
uuid String
Generated.

Package Details

Repository
authentik goauthentik/terraform-provider-authentik
License
Notes
This Pulumi package is based on the authentik Terraform Provider.
authentik 2025.2.0 published on Monday, Mar 24, 2025 by goauthentik