Viewing docs for authentik 2025.12.1
published on Thursday, Feb 5, 2026 by goauthentik
published on Thursday, Feb 5, 2026 by goauthentik
Viewing docs for authentik 2025.12.1
published on Thursday, Feb 5, 2026 by goauthentik
published on Thursday, Feb 5, 2026 by goauthentik
Get a Kubernetes Service Connection by name
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as authentik from "@pulumi/authentik";
// To get the ID of a Kubernetes Service Connection by name
const local = authentik.getServiceConnectionKubernetes({
name: "Local Kubernetes Cluster",
});
import pulumi
import pulumi_authentik as authentik
# To get the ID of a Kubernetes Service Connection by name
local = authentik.get_service_connection_kubernetes(name="Local Kubernetes Cluster")
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 {
// To get the ID of a Kubernetes Service Connection by name
_, err := authentik.LookupServiceConnectionKubernetes(ctx, &authentik.LookupServiceConnectionKubernetesArgs{
Name: "Local Kubernetes Cluster",
}, 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(() =>
{
// To get the ID of a Kubernetes Service Connection by name
var local = Authentik.GetServiceConnectionKubernetes.Invoke(new()
{
Name = "Local Kubernetes Cluster",
});
});
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.GetServiceConnectionKubernetesArgs;
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) {
// To get the ID of a Kubernetes Service Connection by name
final var local = AuthentikFunctions.getServiceConnectionKubernetes(GetServiceConnectionKubernetesArgs.builder()
.name("Local Kubernetes Cluster")
.build());
}
}
variables:
# To get the ID of a Kubernetes Service Connection by name
local:
fn::invoke:
function: authentik:getServiceConnectionKubernetes
arguments:
name: Local Kubernetes Cluster
Using getServiceConnectionKubernetes
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 getServiceConnectionKubernetes(args: GetServiceConnectionKubernetesArgs, opts?: InvokeOptions): Promise<GetServiceConnectionKubernetesResult>
function getServiceConnectionKubernetesOutput(args: GetServiceConnectionKubernetesOutputArgs, opts?: InvokeOptions): Output<GetServiceConnectionKubernetesResult>def get_service_connection_kubernetes(id: Optional[str] = None,
kubeconfig: Optional[str] = None,
local: Optional[bool] = None,
name: Optional[str] = None,
verify_ssl: Optional[bool] = None,
opts: Optional[InvokeOptions] = None) -> GetServiceConnectionKubernetesResult
def get_service_connection_kubernetes_output(id: Optional[pulumi.Input[str]] = None,
kubeconfig: Optional[pulumi.Input[str]] = None,
local: Optional[pulumi.Input[bool]] = None,
name: Optional[pulumi.Input[str]] = None,
verify_ssl: Optional[pulumi.Input[bool]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetServiceConnectionKubernetesResult]func LookupServiceConnectionKubernetes(ctx *Context, args *LookupServiceConnectionKubernetesArgs, opts ...InvokeOption) (*LookupServiceConnectionKubernetesResult, error)
func LookupServiceConnectionKubernetesOutput(ctx *Context, args *LookupServiceConnectionKubernetesOutputArgs, opts ...InvokeOption) LookupServiceConnectionKubernetesResultOutput> Note: This function is named LookupServiceConnectionKubernetes in the Go SDK.
public static class GetServiceConnectionKubernetes
{
public static Task<GetServiceConnectionKubernetesResult> InvokeAsync(GetServiceConnectionKubernetesArgs args, InvokeOptions? opts = null)
public static Output<GetServiceConnectionKubernetesResult> Invoke(GetServiceConnectionKubernetesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetServiceConnectionKubernetesResult> getServiceConnectionKubernetes(GetServiceConnectionKubernetesArgs args, InvokeOptions options)
public static Output<GetServiceConnectionKubernetesResult> getServiceConnectionKubernetes(GetServiceConnectionKubernetesArgs args, InvokeOptions options)
fn::invoke:
function: authentik:index/getServiceConnectionKubernetes:getServiceConnectionKubernetes
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- Id string
- The ID of this resource.
- Kubeconfig string
- Generated.
- Local bool
- Generated.
- Verify
Ssl bool - Generated.
- Name string
- Id string
- The ID of this resource.
- Kubeconfig string
- Generated.
- Local bool
- Generated.
- Verify
Ssl bool - Generated.
- name String
- id String
- The ID of this resource.
- kubeconfig String
- Generated.
- local Boolean
- Generated.
- verify
Ssl Boolean - Generated.
- name string
- id string
- The ID of this resource.
- kubeconfig string
- Generated.
- local boolean
- Generated.
- verify
Ssl boolean - Generated.
- name str
- id str
- The ID of this resource.
- kubeconfig str
- Generated.
- local bool
- Generated.
- verify_
ssl bool - Generated.
- name String
- id String
- The ID of this resource.
- kubeconfig String
- Generated.
- local Boolean
- Generated.
- verify
Ssl Boolean - Generated.
getServiceConnectionKubernetes Result
The following output properties are available:
- Id string
- The ID of this resource.
- Kubeconfig string
- Generated.
- Local bool
- Generated.
- Name string
- Verify
Ssl bool - Generated.
- Id string
- The ID of this resource.
- Kubeconfig string
- Generated.
- Local bool
- Generated.
- Name string
- Verify
Ssl bool - Generated.
- id String
- The ID of this resource.
- kubeconfig String
- Generated.
- local Boolean
- Generated.
- name String
- verify
Ssl Boolean - Generated.
- id string
- The ID of this resource.
- kubeconfig string
- Generated.
- local boolean
- Generated.
- name string
- verify
Ssl boolean - Generated.
- id str
- The ID of this resource.
- kubeconfig str
- Generated.
- local bool
- Generated.
- name str
- verify_
ssl bool - Generated.
- id String
- The ID of this resource.
- kubeconfig String
- Generated.
- local Boolean
- Generated.
- name String
- verify
Ssl Boolean - Generated.
Package Details
- Repository
- authentik goauthentik/terraform-provider-authentik
- License
- Notes
- This Pulumi package is based on the
authentikTerraform Provider.
Viewing docs for authentik 2025.12.1
published on Thursday, Feb 5, 2026 by goauthentik
published on Thursday, Feb 5, 2026 by goauthentik
