Skip to content

Latest commit

 

History

History
82 lines (55 loc) · 2.18 KB

File metadata and controls

82 lines (55 loc) · 2.18 KB

authentik_client.RootApi

All URIs are relative to /api/v3

Method HTTP request Description
root_config_retrieve GET /root/config/

root_config_retrieve

Config root_config_retrieve()

Retrieve public configuration options

Example

  • Bearer Authentication (authentik):
import authentik_client
from authentik_client.models.config import Config
from authentik_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to /api/v3
# See configuration.py for a list of all supported configuration parameters.
configuration = authentik_client.Configuration(
    host = "/api/v3"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: authentik
configuration = authentik_client.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)

# Enter a context with an instance of the API client
with authentik_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = authentik_client.RootApi(api_client)

    try:
        api_response = api_instance.root_config_retrieve()
        print("The response of RootApi->root_config_retrieve:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling RootApi->root_config_retrieve: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

Config

Authorization

authentik

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 -
400 -
403 -

[Back to top] [Back to API list] [Back to Model list] [Back to README]