prefect
How to get these credentialsConnection to one Prefect 3 API: a Prefect Cloud workspace (API URL plus API key) or a self-hosted Prefect server (API URL, plus the server's basic-auth string when it sets one).
CREATE SECRET prefect (
TYPE prefect,
api_url '<api_url>', -- required
api_key '<PREFECT_API_KEY>', -- secret
auth_string '<PREFECT_AUTH_STRING>', -- secret
ui_url '<ui_url>',
page_size '<page_size>',
timeout '<timeout>'
);
| Key | Type | Required | Description |
|---|---|---|---|
| api_url | VARCHAR | Yes | The PREFECT_API_URL: 'https://api.prefect.cloud/api/accounts/<account_id>/workspaces/<workspace_id>' for Prefect Cloud, or 'http://host:4200/api' for a self-hosted server. |
| api_key secret | VARCHAR | No | Prefect Cloud API key (pnu_... or a service-account key), sent as a bearer token. |
| auth_string secret | VARCHAR | No | Self-hosted servers started with PREFECT_SERVER_API_AUTH_STRING: the same 'user:password' string, sent as HTTP basic auth. |
| ui_url | VARCHAR | No | Base URL of the Prefect UI for the url columns. Default: derived from api_url (https://app.prefect.cloud/account/<a>/workspace/<w>, or api_url without /api). |
| page_size | BIGINT | No | Objects requested per API page, 1 to 200 (default 200; events use at most 50). |
| timeout | DOUBLE | No | Per-request timeout in seconds (default 30). |
Needed by variable_values