costs
Creates, updates, deletes, gets or lists a costs
resource.
Overview
Name | costs |
Type | Resource |
Id | confluent.billing.costs |
Fields
Name | Datatype | Description |
---|---|---|
id | string | ID is the "natural identifier" for an object within its scope/namespace; it is normally unique across time but not space. That is, you can assume that the ID will not be reclaimed and reused after an object is deleted ("time"); however, it may collide with IDs for other object kinds or objects of the same kind within a different scope/namespace ("space"). |
amount | number | Final amount after deducting discounts. |
api_version | string | APIVersion defines the schema version of this representation of a resource. |
discount_amount | number | Amount discounted from the original amount in dollars. |
end_date | string | End date of time period (exclusive) to retrieve billing costs. It is represented in RFC3339 format and is in UTC. |
granularity | string | Granularity at which each line item is aggregated. |
kind | string | Kind defines the object this REST resource represents. |
line_type | string | Type of the line item. |
network_access_type | string | Network access type for the cluster. |
original_amount | number | Original amount accrued for this line item. |
price | number | Price for the line item in dollars. |
product | string | Product name. |
quantity | number | Quantity of the line item. |
resource | object | The resource for a given object |
start_date | string | Start date of time period (inclusive) to retrieve billing costs. It is represented in RFC3339 format and is in UTC. |
unit | string | Unit of the line item. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
list_billing_v1costs | SELECT | end_date, start_date | Retrieve a sorted, filtered, paginated list of all costs. |
SELECT
examples
Retrieve a sorted, filtered, paginated list of all costs.
SELECT
id,
amount,
api_version,
discount_amount,
end_date,
granularity,
kind,
line_type,
network_access_type,
original_amount,
price,
product,
quantity,
resource,
start_date,
unit
FROM confluent.billing.costs
WHERE end_date = '{{ end_date }}'
AND start_date = '{{ start_date }}';