Skip to content

couchbaselabs/capella-billing-per-support-plan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages