All URIs are relative to /api/v3
| Method | HTTP request | Description |
|---|---|---|
| root_config_retrieve | GET /root/config/ |
Config root_config_retrieve()
Retrieve public configuration options
- 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)This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | - | |
| 400 | - | |
| 403 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]