list-gcp-billing-accounts-settings
dci list-gcp-billing-accounts-settings [flags]
Returns one item per onboarded GCP Billing Account. Each item includes that billing
account's recommendation and automation engine settings for each product line activated
on it, per region scope: one global entry for compute, and one entry per known region
for cloud_sql.
Cloud SQL regions come from the billing account's persisted settings: a region is added
when eligible spend is first seen there and is never removed, so its settings entry
remains listed even if spend later drops to zero. Items are sorted by
billingAccountId; within an item, services lists compute before cloud_sql, with
cloud_sql regions sorted alphabetically.
Settings are stored independently on each billing account. Existing customer-level settings are copied lazily when an account is first read or initialized; if no valid legacy value exists, the complete backend defaults are materialized once on the account. Only product lines that are activated/onboarded for a given billing account are returned.
In the DoiT Console, these settings are edited on an account's Settings tab.
Settings are read-only through the API and edited on the account's Settings tab in the DoiT
Console. Each item lists services[] (today compute only) with purchaseMode
(autonomous or requires_approval), minimumCommitment and maximumCommitment in USD
per hour (0 means no cap), lastDayOfMonthForPurchase, the preferred term, and the
coverage policy. Unlike the AWS settings, GCP settings are stored per billing account, so
values can differ between accounts.
Examples
# The recommendation and purchasing engine settings for each onboarded GCP billing account, per activated product line.
dci list-gcp-billing-accounts-settings
# The nested settings as JSON, for scripts.
dci list-gcp-billing-accounts-settings --output json
# Every page as YAML, easier to read when there are many billing accounts.
dci list-gcp-billing-accounts-settings --all --output yaml