airflow.providers.airbyte.hooks.airbyte¶
Attributes¶
Classes¶
Hook for Airbyte API. |
Module Contents¶
- class airflow.providers.airbyte.hooks.airbyte.AirbyteHook(airbyte_conn_id='airbyte_default', api_version='v1')[source]¶
Bases:
airflow.providers.common.compat.sdk.BaseHookHook for Airbyte API.
- Parameters:
- create_api_session()[source]¶
Create Airbyte API session.
When
client_idandclient_secretare provided (via the connection’s Login and Password fields), the SDK authenticates with OAuth2 Client Credentials — required for Airbyte Cloud and Enterprise deployments.When credentials are not provided, the session is created without authentication. This is the correct mode for Airbyte OSS deployments that do not have the
/v1/applications/tokenendpoint enabled.
- get_job_details(job_id)[source]¶
Use Http async call to retrieve metadata for a specific job of an Airbyte Sync.
- Parameters:
job_id (int) – The ID of an Airbyte Sync Job.
- get_job_status(job_id)[source]¶
Retrieve the status for a specific job of an Airbyte Sync.
- Parameters:
job_id (int) – The ID of an Airbyte Sync Job.