Warehouses define the underlying object storage (S3, GCS, Azure, etc.) where catalogs store data.
Base Endpoint: /api/v1/warehouses
- Method:
GET - Path:
/api/v1/warehouses - Auth: Tenant Admin Token
curl -X GET http://localhost:8080/api/v1/warehouses \
-H "Authorization: Bearer <token>"- Method:
POST - Path:
/api/v1/warehouses - Body:
{ "name": "s3-warehouse", "storage_config": { "s3.bucket": "my-bucket", "s3.region": "us-east-1", "s3.access-key-id": "AKIA...", "s3.secret-access-key": "secret..." }, "vending_strategy": { "AwsStatic": { "access_key_id": "AKIA...", "secret_access_key": "secret..." } } }
curl -X POST http://localhost:8080/api/v1/warehouses \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '...'- Method:
DELETE - Path:
/api/v1/warehouses/{name}
pangolin-admin list-warehousespangolin-admin create-warehouse s3-warehouse \
--type s3 \
--bucket my-data-bucket \
--region us-east-1 \
--access-key "AKIA..." \
--secret-key "secret..."pangolin-admin delete-warehouse s3-warehousewarehouses = client.warehouses.list()
for w in warehouses:
print(w.name)wh = client.warehouses.create_s3(
name="s3-prod",
bucket="my-prod-bucket",
region="us-east-1",
access_key="AKIA...",
secret_key="secret...",
vending_strategy="AwsStatic"
)
print(f"Created warehouse: {wh.name}")- Log in as a Tenant Admin.
- Navigate to Warehouses in the sidebar.
- List: Validates current warehouses.
- Create: Click "Create Warehouse".
- Name: Unique identifier.
- Type: Select S3 (MinIO provided by default config).
- Credentials: Enter keys if not using IAM roles.
- Click Save.
- Manage: Edit or delete warehouses.