gcp預算設定使用幣別

因專案需要開了虛擬機,設定了預算機制免得噴錢噴到脫褲子。

但是兩天後發現怎麼一下子就用完預算了。

經過一陣糾結與查詢後發現,每個帳單帳戶都有自己的幣別設定

可以使用 console功能打入以下就能看到自己使用的幣別了。

gcloud billing accounts list --format="table(name,displayName,open,currencyCode)"

查看目前有效的帳單帳戶:
gcloud billing accounts list –filter=”open=true” –format=”table(name,displayName,open,currencyCode)”

查詢完整的帳單帳戶並輸出 JSON 格式:
gcloud billing accounts list –format=json –filter=”open=true”