Data Source: oci_osub_usage_computed_usage_aggregateds
This data source provides the list of Computed Usage Aggregateds in Oracle Cloud Infrastructure Osub Usage service.
This is a collection API which returns a list of aggregated computed usage details (there can be multiple Parent Products under a given SubID each of which is represented under Subscription Service Line # in SPM).
Example Usage
data "oci_osub_usage_computed_usage_aggregateds" "test_computed_usage_aggregateds" {
#Required
compartment_id = var.compartment_id
subscription_id = oci_ons_subscription.test_subscription.id
time_from = var.computed_usage_aggregated_time_from
time_to = var.computed_usage_aggregated_time_to
#Optional
grouping = var.computed_usage_aggregated_grouping
parent_product {
}
x_one_origin_region = var.computed_usage_aggregated_x_one_origin_region
}
Argument Reference
The following arguments are supported:
compartment_id
- (Required) The OCID of the root compartment.grouping
- (Optional) Grouping criteria to use for aggregate the computed Usage, either hourly (HOURLY
), daily (DAILY
), monthly(MONTHLY
) or none (NONE
) to not follow a grouping criteria by date.
parent_product
- (Optional) Product part number for subscribed service line, called parent product.subscription_id
- (Required) Subscription Id is an identifier associated to the service used for filter the Computed Usage in SPM.
time_from
- (Required) Initial date to filter Computed Usage data in SPM. In the case of non aggregated data the time period between of fromDate and toDate , expressed in RFC 3339 timestamp format.time_to
- (Required) Final date to filter Computed Usage data in SPM, expressed in RFC 3339 timestamp format.x_one_origin_region
- (Optional) The Oracle Cloud Infrastructure home region name in case home region is not us-ashburn-1 (IAD), e.g. ap-mumbai-1, us-phoenix-1 etc.
Attributes Reference
The following attributes are exported:
computed_usage_aggregateds
- The list of computed_usage_aggregateds.
ComputedUsageAggregated Reference
The following attributes are exported:
aggregated_computed_usages
- Aggregation of computed usages for the subscribed service.cost
- Sum of Computed Line Amount roundedcost_unrounded
- Sum of Computed Line Amount unroundeddata_center
- Data Center Attribute as sent by MQS to SPM.net_unit_price
- Net Unit Price for the product in consideration.
product
- Product descriptionbilling_category
- Metered service billing categoryname
- Product namepart_number
- Product part numberproduct_category
- Product categoryprovisioning_group
- Product provisioning groupucm_rate_card_part_type
- Rate card part type of Productunit_of_measure
- Unit of Measure
quantity
- Total Quantity that was used for computationtime_metered_on
- Metered Service date , expressed in RFC 3339 timestamp format.type
- Usage compute type in SPM.
currency_code
- Currency codeparent_product
- Product descriptionbilling_category
- Metered service billing categoryname
- Product namepart_number
- Product part numberproduct_category
- Product categoryprovisioning_group
- Product provisioning groupucm_rate_card_part_type
- Rate card part type of Productunit_of_measure
- Unit of Measure
parent_subscribed_service_id
- Subscribed service line parent idplan_number
- Subscribed service asociated subscription plan number.
pricing_model
- Subscribed services pricing modelrate_card_id
- Inernal SPM Ratecard Id at line levelsubscription_id
- Subscription Id is an identifier associated to the service used for filter the Computed Usage in SPMtime_end
- Subscribed services contract line end date, expressed in RFC 3339 timestamp format.time_start
- Subscribed services contract line start date, expressed in RFC 3339 timestamp format.