Billing
Get Organization Billing Summary
Get Organization Daily Cost
List Organization Billing History
Top Up Organization Prepaid Balance
Re-trigger Organization Prepaid Recharge
Get Organization Usage Statement
ModelsExpand Collapse
type BillingHistoryEntry struct{…}A single billing history line item: a prepaid credit or a manual adjustment.
A single billing history line item: a prepaid credit or a manual adjustment.
FundingPurpose BillingHistoryEntryFundingPurposeOptionalFunding flow that produced this entry, for a grant: “first_charge”,
“auto_recharge”, “manual_top_up”, or “manual_recharge”. Null for adjustments.
Funding flow that produced this entry, for a grant: “first_charge”, “auto_recharge”, “manual_top_up”, or “manual_recharge”. Null for adjustments.
type BillingHistoryEntryList struct{…}
Items []BillingHistoryEntry
FundingPurpose BillingHistoryEntryFundingPurposeOptionalFunding flow that produced this entry, for a grant: “first_charge”,
“auto_recharge”, “manual_top_up”, or “manual_recharge”. Null for adjustments.
Funding flow that produced this entry, for a grant: “first_charge”, “auto_recharge”, “manual_top_up”, or “manual_recharge”. Null for adjustments.
Pagination PaginationPagination response details.
Pagination response details.
type OrganizationDailyCost struct{…}Daily usage cost over a date range: one entry per UTC day (zero on idle days), summing open and closed resources. Suitable for a daily cost bar chart.
Daily usage cost over a date range: one entry per UTC day (zero on idle days), summing open and closed resources. Suitable for a daily cost bar chart.
Days []DailyCostPointOne entry per UTC day in the range, oldest first.
One entry per UTC day in the range, oldest first.
type OrganizationUsageStatement struct{…}Itemized usage statement for a billing month: consumption grouped by project, resource type, and dimension. Costs are recorded at consumption time, not re-priced.
Itemized usage statement for a billing month: consumption grouped by project, resource type, and dimension. Costs are recorded at consumption time, not re-priced.
Projects []StatementProjectOne entry per project with consumption in the month, ordered by name.
One entry per project with consumption in the month, ordered by name.
ResourceTypes []StatementResourceTypeConsumption grouped by resource type.
Consumption grouped by resource type.
Items []StatementLineItemTop-level metered dimensions; a dimension expanded into components carries them in children.
Top-level metered dimensions; a dimension expanded into components carries them in children.
Children []StatementLineItemLeafComponent dimensions nested under this one (e.g. vCPU and memory under an instance type). Empty for a leaf.
Component dimensions nested under this one (e.g. vCPU and memory under an instance type). Empty for a leaf.
type StatementLineItem struct{…}A top-level metered dimension. Heads nest components as children (cost is the subtotal, unit_price null); standalone dimensions carry a unit price and an empty children array.
A top-level metered dimension. Heads nest components as children (cost is the subtotal, unit_price null); standalone dimensions carry a unit price and an empty children array.
Children []StatementLineItemLeafComponent dimensions nested under this one (e.g. vCPU and memory under an instance type). Empty for a leaf.
Component dimensions nested under this one (e.g. vCPU and memory under an instance type). Empty for a leaf.
type StatementProject struct{…}A single project’s consumption within a usage statement.
A single project’s consumption within a usage statement.
ResourceTypes []StatementResourceTypeConsumption grouped by resource type.
Consumption grouped by resource type.
Items []StatementLineItemTop-level metered dimensions; a dimension expanded into components carries them in children.
Top-level metered dimensions; a dimension expanded into components carries them in children.
Children []StatementLineItemLeafComponent dimensions nested under this one (e.g. vCPU and memory under an instance type). Empty for a leaf.
Component dimensions nested under this one (e.g. vCPU and memory under an instance type). Empty for a leaf.
type StatementResourceType struct{…}Consumption for one resource type within a project (e.g. every VM, every volume).
Consumption for one resource type within a project (e.g. every VM, every volume).
Items []StatementLineItemTop-level metered dimensions; a dimension expanded into components carries them in children.
Top-level metered dimensions; a dimension expanded into components carries them in children.
Children []StatementLineItemLeafComponent dimensions nested under this one (e.g. vCPU and memory under an instance type). Empty for a leaf.
Component dimensions nested under this one (e.g. vCPU and memory under an instance type). Empty for a leaf.
BillingRecharge Policy
Get Organization Recharge Policy
Update Organization Recharge Policy
ModelsExpand Collapse
type OrganizationRechargePolicy struct{…}An organization’s current recharge policy. policy_args is null for a manual policy.
An organization’s current recharge policy. policy_args is null for a manual policy.
Policy RechargePolicyModePolicy is the top-up mode.
Policy is the top-up mode.
PolicyArgs AutomaticPolicyArgsPolicyArgs carries the threshold parameters. Required when policy is
“automatic”; must be omitted when policy is “manual”.
PolicyArgs carries the threshold parameters. Required when policy is “automatic”; must be omitted when policy is “manual”.