(connections)
Create a connection
import airbyte_api
from airbyte_api import models
s = airbyte_api.AirbyteAPI(
security=models.Security(
basic_auth=models.SchemeBasicAuth(
password="",
username="",
),
),
)
res = s.connections.create_connection(request=models.ConnectionCreateRequest(
destination_id='e478de0d-a3a0-475c-b019-25f7dd29e281',
source_id='95e66a59-8045-4307-9678-63bc3c9b8c93',
name='Postgres-to-Bigquery',
namespace_format='${SOURCE_NAMESPACE}',
))
if res.connection_response is not None:
# handle response
pass
api.CreateConnectionResponse
Error Object |
Status Code |
Content Type |
errors.SDKError |
4xx-5xx |
/ |
Delete a Connection
import airbyte_api
from airbyte_api import api, models
s = airbyte_api.AirbyteAPI(
security=models.Security(
basic_auth=models.SchemeBasicAuth(
password="",
username="",
),
),
)
res = s.connections.delete_connection(request=api.DeleteConnectionRequest(
connection_id='<value>',
))
if res is not None:
# handle response
pass
api.DeleteConnectionResponse
Error Object |
Status Code |
Content Type |
errors.SDKError |
4xx-5xx |
/ |
Get Connection details
import airbyte_api
from airbyte_api import api, models
s = airbyte_api.AirbyteAPI(
security=models.Security(
basic_auth=models.SchemeBasicAuth(
password="",
username="",
),
),
)
res = s.connections.get_connection(request=api.GetConnectionRequest(
connection_id='<value>',
))
if res.connection_response is not None:
# handle response
pass
api.GetConnectionResponse
Error Object |
Status Code |
Content Type |
errors.SDKError |
4xx-5xx |
/ |
List connections
import airbyte_api
from airbyte_api import api, models
s = airbyte_api.AirbyteAPI(
security=models.Security(
basic_auth=models.SchemeBasicAuth(
password="",
username="",
),
),
)
res = s.connections.list_connections(request=api.ListConnectionsRequest())
if res.connections_response is not None:
# handle response
pass
api.ListConnectionsResponse
Error Object |
Status Code |
Content Type |
errors.SDKError |
4xx-5xx |
/ |
Update Connection details
import airbyte_api
from airbyte_api import api, models
s = airbyte_api.AirbyteAPI(
security=models.Security(
basic_auth=models.SchemeBasicAuth(
password="",
username="",
),
),
)
res = s.connections.patch_connection(request=api.PatchConnectionRequest(
connection_patch_request=models.ConnectionPatchRequest(
name='Postgres-to-Bigquery',
namespace_format='${SOURCE_NAMESPACE}',
),
connection_id='<value>',
))
if res.connection_response is not None:
# handle response
pass
api.PatchConnectionResponse
Error Object |
Status Code |
Content Type |
errors.SDKError |
4xx-5xx |
/ |