All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| reparse_dag_file | PUT /api/v2/parseDagFile/{file_token} | Reparse Dag File |
object reparse_dag_file(file_token)
Reparse Dag File
Request re-parsing a DAG file.
import airflow_client.client from airflow_client.client.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost # See configuration.py for a list of all supported configuration parameters. configuration = airflow_client.client.Configuration( host = "http://localhost" ) # 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. configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure Bearer authorization: HTTPBearer configuration = airflow_client.client.Configuration( access_token = os.environ["BEARER_TOKEN"] ) # Enter a context with an instance of the API client with airflow_client.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = airflow_client.client.DAGParsingApi(api_client) file_token = 'file_token_example' # str | try: # Reparse Dag File api_response = api_instance.reparse_dag_file(file_token) print("The response of DAGParsingApi->reparse_dag_file:\n") pprint(api_response) except Exception as e: print("Exception when calling DAGParsingApi->reparse_dag_file: %s\n" % e)
| Name | Type | Description | Notes |
|---|---|---|---|
| file_token | str |
object
OAuth2PasswordBearer, HTTPBearer
| Status code | Description | Response headers |
|---|---|---|
| 201 | Successful Response | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]