All URIs are relative to /api/v3
| Method | HTTP request | Description |
|---|---|---|
| flows_bindings_create | POST /flows/bindings/ | |
| flows_bindings_destroy | DELETE /flows/bindings/{fsb_uuid}/ | |
| flows_bindings_list | GET /flows/bindings/ | |
| flows_bindings_partial_update | PATCH /flows/bindings/{fsb_uuid}/ | |
| flows_bindings_retrieve | GET /flows/bindings/{fsb_uuid}/ | |
| flows_bindings_update | PUT /flows/bindings/{fsb_uuid}/ | |
| flows_bindings_used_by_list | GET /flows/bindings/{fsb_uuid}/used_by/ | |
| flows_executor_get | GET /flows/executor/{flow_slug}/ | |
| flows_executor_solve | POST /flows/executor/{flow_slug}/ | |
| flows_inspector_get | GET /flows/inspector/{flow_slug}/ | |
| flows_instances_cache_clear_create | POST /flows/instances/cache_clear/ | |
| flows_instances_cache_info_retrieve | GET /flows/instances/cache_info/ | |
| flows_instances_create | POST /flows/instances/ | |
| flows_instances_destroy | DELETE /flows/instances/{slug}/ | |
| flows_instances_diagram_retrieve | GET /flows/instances/{slug}/diagram/ | |
| flows_instances_execute_retrieve | GET /flows/instances/{slug}/execute/ | |
| flows_instances_export_retrieve | GET /flows/instances/{slug}/export/ | |
| flows_instances_import_create | POST /flows/instances/import/ | |
| flows_instances_list | GET /flows/instances/ | |
| flows_instances_partial_update | PATCH /flows/instances/{slug}/ | |
| flows_instances_retrieve | GET /flows/instances/{slug}/ | |
| flows_instances_update | PUT /flows/instances/{slug}/ | |
| flows_instances_used_by_list | GET /flows/instances/{slug}/used_by/ |
FlowStageBinding flows_bindings_create(flow_stage_binding_request)
FlowStageBinding Viewset
- Bearer Authentication (authentik):
import authentik_client
from authentik_client.models.flow_stage_binding import FlowStageBinding
from authentik_client.models.flow_stage_binding_request import FlowStageBindingRequest
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.FlowsApi(api_client)
flow_stage_binding_request = authentik_client.FlowStageBindingRequest() # FlowStageBindingRequest |
try:
api_response = api_instance.flows_bindings_create(flow_stage_binding_request)
print("The response of FlowsApi->flows_bindings_create:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling FlowsApi->flows_bindings_create: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| flow_stage_binding_request | FlowStageBindingRequest |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | - | |
| 400 | - | |
| 403 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
flows_bindings_destroy(fsb_uuid)
FlowStageBinding Viewset
- Bearer Authentication (authentik):
import authentik_client
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.FlowsApi(api_client)
fsb_uuid = UUID('38400000-8cf0-11bd-b23e-10b96e4ef00d') # UUID | A UUID string identifying this Flow Stage Binding.
try:
api_instance.flows_bindings_destroy(fsb_uuid)
except Exception as e:
print("Exception when calling FlowsApi->flows_bindings_destroy: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| fsb_uuid | UUID | A UUID string identifying this Flow Stage Binding. |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 204 | No response body | - |
| 400 | - | |
| 403 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PaginatedFlowStageBindingList flows_bindings_list(evaluate_on_plan=evaluate_on_plan, fsb_uuid=fsb_uuid, invalid_response_action=invalid_response_action, order=order, ordering=ordering, page=page, page_size=page_size, pbm_uuid=pbm_uuid, policies=policies, policy_engine_mode=policy_engine_mode, re_evaluate_policies=re_evaluate_policies, search=search, stage=stage, target=target)
FlowStageBinding Viewset
- Bearer Authentication (authentik):
import authentik_client
from authentik_client.models.paginated_flow_stage_binding_list import PaginatedFlowStageBindingList
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.FlowsApi(api_client)
evaluate_on_plan = True # bool | (optional)
fsb_uuid = UUID('38400000-8cf0-11bd-b23e-10b96e4ef00d') # UUID | (optional)
invalid_response_action = 'invalid_response_action_example' # str | Configure how the flow executor should handle an invalid response to a challenge. RETRY returns the error message and a similar challenge to the executor. RESTART restarts the flow from the beginning, and RESTART_WITH_CONTEXT restarts the flow while keeping the current context. (optional)
order = 56 # int | (optional)
ordering = 'ordering_example' # str | Which field to use when ordering the results. (optional)
page = 56 # int | A page number within the paginated result set. (optional)
page_size = 56 # int | Number of results to return per page. (optional)
pbm_uuid = UUID('38400000-8cf0-11bd-b23e-10b96e4ef00d') # UUID | (optional)
policies = None # List[UUID] | (optional)
policy_engine_mode = 'policy_engine_mode_example' # str | (optional)
re_evaluate_policies = True # bool | (optional)
search = 'search_example' # str | A search term. (optional)
stage = UUID('38400000-8cf0-11bd-b23e-10b96e4ef00d') # UUID | (optional)
target = UUID('38400000-8cf0-11bd-b23e-10b96e4ef00d') # UUID | (optional)
try:
api_response = api_instance.flows_bindings_list(evaluate_on_plan=evaluate_on_plan, fsb_uuid=fsb_uuid, invalid_response_action=invalid_response_action, order=order, ordering=ordering, page=page, page_size=page_size, pbm_uuid=pbm_uuid, policies=policies, policy_engine_mode=policy_engine_mode, re_evaluate_policies=re_evaluate_policies, search=search, stage=stage, target=target)
print("The response of FlowsApi->flows_bindings_list:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling FlowsApi->flows_bindings_list: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| evaluate_on_plan | bool | [optional] | |
| fsb_uuid | UUID | [optional] | |
| invalid_response_action | str | Configure how the flow executor should handle an invalid response to a challenge. RETRY returns the error message and a similar challenge to the executor. RESTART restarts the flow from the beginning, and RESTART_WITH_CONTEXT restarts the flow while keeping the current context. | [optional] |
| order | int | [optional] | |
| ordering | str | Which field to use when ordering the results. | [optional] |
| page | int | A page number within the paginated result set. | [optional] |
| page_size | int | Number of results to return per page. | [optional] |
| pbm_uuid | UUID | [optional] | |
| policies | List[UUID] | [optional] | |
| policy_engine_mode | str | [optional] | |
| re_evaluate_policies | bool | [optional] | |
| search | str | A search term. | [optional] |
| stage | UUID | [optional] | |
| target | UUID | [optional] |
- 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]
FlowStageBinding flows_bindings_partial_update(fsb_uuid, patched_flow_stage_binding_request=patched_flow_stage_binding_request)
FlowStageBinding Viewset
- Bearer Authentication (authentik):
import authentik_client
from authentik_client.models.flow_stage_binding import FlowStageBinding
from authentik_client.models.patched_flow_stage_binding_request import PatchedFlowStageBindingRequest
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.FlowsApi(api_client)
fsb_uuid = UUID('38400000-8cf0-11bd-b23e-10b96e4ef00d') # UUID | A UUID string identifying this Flow Stage Binding.
patched_flow_stage_binding_request = authentik_client.PatchedFlowStageBindingRequest() # PatchedFlowStageBindingRequest | (optional)
try:
api_response = api_instance.flows_bindings_partial_update(fsb_uuid, patched_flow_stage_binding_request=patched_flow_stage_binding_request)
print("The response of FlowsApi->flows_bindings_partial_update:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling FlowsApi->flows_bindings_partial_update: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| fsb_uuid | UUID | A UUID string identifying this Flow Stage Binding. | |
| patched_flow_stage_binding_request | PatchedFlowStageBindingRequest | [optional] |
- Content-Type: application/json
- 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]
FlowStageBinding flows_bindings_retrieve(fsb_uuid)
FlowStageBinding Viewset
- Bearer Authentication (authentik):
import authentik_client
from authentik_client.models.flow_stage_binding import FlowStageBinding
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.FlowsApi(api_client)
fsb_uuid = UUID('38400000-8cf0-11bd-b23e-10b96e4ef00d') # UUID | A UUID string identifying this Flow Stage Binding.
try:
api_response = api_instance.flows_bindings_retrieve(fsb_uuid)
print("The response of FlowsApi->flows_bindings_retrieve:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling FlowsApi->flows_bindings_retrieve: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| fsb_uuid | UUID | A UUID string identifying this Flow Stage Binding. |
- 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]
FlowStageBinding flows_bindings_update(fsb_uuid, flow_stage_binding_request)
FlowStageBinding Viewset
- Bearer Authentication (authentik):
import authentik_client
from authentik_client.models.flow_stage_binding import FlowStageBinding
from authentik_client.models.flow_stage_binding_request import FlowStageBindingRequest
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.FlowsApi(api_client)
fsb_uuid = UUID('38400000-8cf0-11bd-b23e-10b96e4ef00d') # UUID | A UUID string identifying this Flow Stage Binding.
flow_stage_binding_request = authentik_client.FlowStageBindingRequest() # FlowStageBindingRequest |
try:
api_response = api_instance.flows_bindings_update(fsb_uuid, flow_stage_binding_request)
print("The response of FlowsApi->flows_bindings_update:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling FlowsApi->flows_bindings_update: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| fsb_uuid | UUID | A UUID string identifying this Flow Stage Binding. | |
| flow_stage_binding_request | FlowStageBindingRequest |
- Content-Type: application/json
- 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]
List[UsedBy] flows_bindings_used_by_list(fsb_uuid)
Get a list of all objects that use this object
- Bearer Authentication (authentik):
import authentik_client
from authentik_client.models.used_by import UsedBy
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.FlowsApi(api_client)
fsb_uuid = UUID('38400000-8cf0-11bd-b23e-10b96e4ef00d') # UUID | A UUID string identifying this Flow Stage Binding.
try:
api_response = api_instance.flows_bindings_used_by_list(fsb_uuid)
print("The response of FlowsApi->flows_bindings_used_by_list:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling FlowsApi->flows_bindings_used_by_list: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| fsb_uuid | UUID | A UUID string identifying this Flow Stage Binding. |
- 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]
ChallengeTypes flows_executor_get(flow_slug, query)
Get the next pending challenge from the currently active flow.
- Bearer Authentication (authentik):
import authentik_client
from authentik_client.models.challenge_types import ChallengeTypes
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.FlowsApi(api_client)
flow_slug = 'flow_slug_example' # str |
query = 'query_example' # str | Querystring as received
try:
api_response = api_instance.flows_executor_get(flow_slug, query)
print("The response of FlowsApi->flows_executor_get:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling FlowsApi->flows_executor_get: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| flow_slug | str | ||
| query | str | Querystring as received |
- 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]
ChallengeTypes flows_executor_solve(flow_slug, query, flow_challenge_response_request=flow_challenge_response_request)
Solve the previously retrieved challenge and advanced to the next stage.
- Bearer Authentication (authentik):
import authentik_client
from authentik_client.models.challenge_types import ChallengeTypes
from authentik_client.models.flow_challenge_response_request import FlowChallengeResponseRequest
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.FlowsApi(api_client)
flow_slug = 'flow_slug_example' # str |
query = 'query_example' # str | Querystring as received
flow_challenge_response_request = authentik_client.FlowChallengeResponseRequest() # FlowChallengeResponseRequest | (optional)
try:
api_response = api_instance.flows_executor_solve(flow_slug, query, flow_challenge_response_request=flow_challenge_response_request)
print("The response of FlowsApi->flows_executor_solve:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling FlowsApi->flows_executor_solve: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| flow_slug | str | ||
| query | str | Querystring as received | |
| flow_challenge_response_request | FlowChallengeResponseRequest | [optional] |
- Content-Type: application/json
- 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]
FlowInspection flows_inspector_get(flow_slug)
Get current flow state and record it
- Bearer Authentication (authentik):
import authentik_client
from authentik_client.models.flow_inspection import FlowInspection
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.FlowsApi(api_client)
flow_slug = 'flow_slug_example' # str |
try:
api_response = api_instance.flows_inspector_get(flow_slug)
print("The response of FlowsApi->flows_inspector_get:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling FlowsApi->flows_inspector_get: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| flow_slug | str |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | - | |
| 400 | No flow plan in session. | - |
| 403 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
flows_instances_cache_clear_create()
Clear flow cache
- Bearer Authentication (authentik):
import authentik_client
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.FlowsApi(api_client)
try:
api_instance.flows_instances_cache_clear_create()
except Exception as e:
print("Exception when calling FlowsApi->flows_instances_cache_clear_create: %s\n" % e)This endpoint does not need any parameter.
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 204 | Successfully cleared cache | - |
| 400 | Bad request | - |
| 403 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Cache flows_instances_cache_info_retrieve()
Info about cached flows
- Bearer Authentication (authentik):
import authentik_client
from authentik_client.models.cache import Cache
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.FlowsApi(api_client)
try:
api_response = api_instance.flows_instances_cache_info_retrieve()
print("The response of FlowsApi->flows_instances_cache_info_retrieve:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling FlowsApi->flows_instances_cache_info_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]
Flow flows_instances_create(flow_request)
Flow Viewset
- Bearer Authentication (authentik):
import authentik_client
from authentik_client.models.flow import Flow
from authentik_client.models.flow_request import FlowRequest
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.FlowsApi(api_client)
flow_request = authentik_client.FlowRequest() # FlowRequest |
try:
api_response = api_instance.flows_instances_create(flow_request)
print("The response of FlowsApi->flows_instances_create:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling FlowsApi->flows_instances_create: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| flow_request | FlowRequest |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | - | |
| 400 | - | |
| 403 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
flows_instances_destroy(slug)
Flow Viewset
- Bearer Authentication (authentik):
import authentik_client
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.FlowsApi(api_client)
slug = 'slug_example' # str |
try:
api_instance.flows_instances_destroy(slug)
except Exception as e:
print("Exception when calling FlowsApi->flows_instances_destroy: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| slug | str |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 204 | No response body | - |
| 400 | - | |
| 403 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
FlowDiagram flows_instances_diagram_retrieve(slug)
Return diagram for flow with slug slug, in the format used by flowchart.js
- Bearer Authentication (authentik):
import authentik_client
from authentik_client.models.flow_diagram import FlowDiagram
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.FlowsApi(api_client)
slug = 'slug_example' # str |
try:
api_response = api_instance.flows_instances_diagram_retrieve(slug)
print("The response of FlowsApi->flows_instances_diagram_retrieve:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling FlowsApi->flows_instances_diagram_retrieve: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| slug | str |
- 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]
Link flows_instances_execute_retrieve(slug)
Execute flow for current user
- Bearer Authentication (authentik):
import authentik_client
from authentik_client.models.link import Link
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.FlowsApi(api_client)
slug = 'slug_example' # str |
try:
api_response = api_instance.flows_instances_execute_retrieve(slug)
print("The response of FlowsApi->flows_instances_execute_retrieve:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling FlowsApi->flows_instances_execute_retrieve: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| slug | str |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | - | |
| 400 | Flow not applicable | - |
| 403 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
bytearray flows_instances_export_retrieve(slug)
Export flow to .yaml file
- Bearer Authentication (authentik):
import authentik_client
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.FlowsApi(api_client)
slug = 'slug_example' # str |
try:
api_response = api_instance.flows_instances_export_retrieve(slug)
print("The response of FlowsApi->flows_instances_export_retrieve:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling FlowsApi->flows_instances_export_retrieve: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| slug | str |
bytearray
- 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]
FlowImportResult flows_instances_import_create(file=file, clear=clear)
Import flow from .yaml file
- Bearer Authentication (authentik):
import authentik_client
from authentik_client.models.flow_import_result import FlowImportResult
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.FlowsApi(api_client)
file = None # bytearray | (optional)
clear = False # bool | (optional) (default to False)
try:
api_response = api_instance.flows_instances_import_create(file=file, clear=clear)
print("The response of FlowsApi->flows_instances_import_create:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling FlowsApi->flows_instances_import_create: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| file | bytearray | [optional] | |
| clear | bool | [optional] [default to False] |
- Content-Type: multipart/form-data
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 204 | - | |
| 400 | - | |
| 403 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PaginatedFlowList flows_instances_list(denied_action=denied_action, designation=designation, flow_uuid=flow_uuid, name=name, ordering=ordering, page=page, page_size=page_size, search=search, slug=slug)
Flow Viewset
- Bearer Authentication (authentik):
import authentik_client
from authentik_client.models.paginated_flow_list import PaginatedFlowList
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.FlowsApi(api_client)
denied_action = 'denied_action_example' # str | Configure what should happen when a flow denies access to a user. (optional)
designation = 'designation_example' # str | Decides what this Flow is used for. For example, the Authentication flow is redirect to when an un-authenticated user visits authentik. (optional)
flow_uuid = UUID('38400000-8cf0-11bd-b23e-10b96e4ef00d') # UUID | (optional)
name = 'name_example' # str | (optional)
ordering = 'ordering_example' # str | Which field to use when ordering the results. (optional)
page = 56 # int | A page number within the paginated result set. (optional)
page_size = 56 # int | Number of results to return per page. (optional)
search = 'search_example' # str | A search term. (optional)
slug = 'slug_example' # str | (optional)
try:
api_response = api_instance.flows_instances_list(denied_action=denied_action, designation=designation, flow_uuid=flow_uuid, name=name, ordering=ordering, page=page, page_size=page_size, search=search, slug=slug)
print("The response of FlowsApi->flows_instances_list:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling FlowsApi->flows_instances_list: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| denied_action | str | Configure what should happen when a flow denies access to a user. | [optional] |
| designation | str | Decides what this Flow is used for. For example, the Authentication flow is redirect to when an un-authenticated user visits authentik. | [optional] |
| flow_uuid | UUID | [optional] | |
| name | str | [optional] | |
| ordering | str | Which field to use when ordering the results. | [optional] |
| page | int | A page number within the paginated result set. | [optional] |
| page_size | int | Number of results to return per page. | [optional] |
| search | str | A search term. | [optional] |
| slug | str | [optional] |
- 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]
Flow flows_instances_partial_update(slug, patched_flow_request=patched_flow_request)
Flow Viewset
- Bearer Authentication (authentik):
import authentik_client
from authentik_client.models.flow import Flow
from authentik_client.models.patched_flow_request import PatchedFlowRequest
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.FlowsApi(api_client)
slug = 'slug_example' # str |
patched_flow_request = authentik_client.PatchedFlowRequest() # PatchedFlowRequest | (optional)
try:
api_response = api_instance.flows_instances_partial_update(slug, patched_flow_request=patched_flow_request)
print("The response of FlowsApi->flows_instances_partial_update:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling FlowsApi->flows_instances_partial_update: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| slug | str | ||
| patched_flow_request | PatchedFlowRequest | [optional] |
- Content-Type: application/json
- 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]
Flow flows_instances_retrieve(slug)
Flow Viewset
- Bearer Authentication (authentik):
import authentik_client
from authentik_client.models.flow import Flow
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.FlowsApi(api_client)
slug = 'slug_example' # str |
try:
api_response = api_instance.flows_instances_retrieve(slug)
print("The response of FlowsApi->flows_instances_retrieve:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling FlowsApi->flows_instances_retrieve: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| slug | str |
- 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]
Flow flows_instances_update(slug, flow_request)
Flow Viewset
- Bearer Authentication (authentik):
import authentik_client
from authentik_client.models.flow import Flow
from authentik_client.models.flow_request import FlowRequest
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.FlowsApi(api_client)
slug = 'slug_example' # str |
flow_request = authentik_client.FlowRequest() # FlowRequest |
try:
api_response = api_instance.flows_instances_update(slug, flow_request)
print("The response of FlowsApi->flows_instances_update:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling FlowsApi->flows_instances_update: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| slug | str | ||
| flow_request | FlowRequest |
- Content-Type: application/json
- 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]
List[UsedBy] flows_instances_used_by_list(slug)
Get a list of all objects that use this object
- Bearer Authentication (authentik):
import authentik_client
from authentik_client.models.used_by import UsedBy
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.FlowsApi(api_client)
slug = 'slug_example' # str |
try:
api_response = api_instance.flows_instances_used_by_list(slug)
print("The response of FlowsApi->flows_instances_used_by_list:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling FlowsApi->flows_instances_used_by_list: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| slug | str |
- 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]