This example script retrieves Couchbase Capella billing information for all clusters in an organization that belong to a specific support plan.
- basic
- developer pro
- enterprise
Install dependencies:
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txtUpdate the bearer token in capella_billing_per_support_plan.py:
CONFIG = {
"bearer_token": "<CAPELLA_BEARER_TOKEN>",
"base_url": "https://cloudapi.cloud.couchbase.com"
}Full response:
python3 capella_billing_per_support_plan.py \
--org-id "<ORG_ID>" \
--start-date "2026-04-01" \
--end-date "2026-04-30" \
--support-plan "enterprise"Total only:
python3 capella_billing_per_support_plan.py \
--org-id "<ORG_ID>" \
--start-date "2026-04-01" \
--end-date "2026-04-30" \
--support-plan "enterprise" \
--total-only trueThe maximum supported billing date range is 366 days.