{ "opencollection": "1.0.0", "info": { "name": "Airflow Asset Connection API", "version": "2" }, "items": [ { "info": { "name": "Connection", "type": "folder" }, "items": [ { "info": { "name": "Airflow Get Connection", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/v2/connections/:connection_id", "params": [ { "name": "connection_id", "value": "", "type": "path" } ], "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/auth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Get a connection entry." }, { "info": { "name": "Airflow Patch Connection", "type": "http" }, "http": { "method": "PATCH", "url": "{{baseUrl}}/api/v2/connections/:connection_id", "params": [ { "name": "connection_id", "value": "", "type": "path" }, { "name": "update_mask", "value": "", "type": "query" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/auth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Update a connection entry." }, { "info": { "name": "Airflow Delete Connection", "type": "http" }, "http": { "method": "DELETE", "url": "{{baseUrl}}/api/v2/connections/:connection_id", "params": [ { "name": "connection_id", "value": "", "type": "path" } ], "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/auth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Delete a connection entry." }, { "info": { "name": "Airflow Get Connections", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/v2/connections", "params": [ { "name": "limit", "value": "", "type": "query" }, { "name": "offset", "value": "", "type": "query" }, { "name": "order_by", "value": "", "type": "query", "description": "Attributes to order by, multi criteria sort is supported. Prefix with `-` for descending order. Supported attributes: `conn_id, conn_type, description, host, port, id, team_name, connection_id`" }, { "name": "connection_id_pattern", "value": "", "type": "query", "description": "SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). or the pipe `|` operator for OR logic (e.g. `dag1 | dag2`). Regular expressions are **not** supported." } ], "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/auth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Get all connection entries." }, { "info": { "name": "Airflow Post Connection", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/api/v2/connections", "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/auth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Create connection entry." }, { "info": { "name": "Airflow Bulk Connections", "type": "http" }, "http": { "method": "PATCH", "url": "{{baseUrl}}/api/v2/connections", "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/auth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Bulk create, update, and delete connections." }, { "info": { "name": "Airflow Test Connection", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/api/v2/connections/test", "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/auth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Test an API connection.\n\nThis method first creates an in-memory transient conn_id & exports that to an env var,\nas some hook classes tries to find out the `conn` from their __init__ method & errors out if not found.\nIt also deletes the conn id env connection after the test." }, { "info": { "name": "Airflow Create Default Connections", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/api/v2/connections/defaults", "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/auth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Create default connections." } ] } ], "bundled": true }