Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 1.01 KB

File metadata and controls

55 lines (40 loc) · 1.01 KB

Capella Billing Per Support Plan

This example script retrieves Couchbase Capella billing information for all clusters in an organization that belong to a specific support plan.

Supported Support Plans

  • basic
  • developer pro
  • enterprise

Setup

Install dependencies:

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Update the bearer token in capella_billing_per_support_plan.py:

CONFIG = {
    "bearer_token": "<CAPELLA_BEARER_TOKEN>",
    "base_url": "https://cloudapi.cloud.couchbase.com"
}

Usage

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 true

Notes

The maximum supported billing date range is 366 days.