Data Source: oci_onesubscription_ratecards
This data source provides the list of Ratecards in Oracle Cloud Infrastructure Onesubscription service.
List API that returns all ratecards for given Subscription Id and Account ID (if provided) and for a particular date range
Example Usage
data "oci_onesubscription_ratecards" "test_ratecards" {
#Required
compartment_id = var.compartment_id
subscription_id = oci_onesubscription_subscription.test_subscription.id
#Optional
part_number = var.ratecard_part_number
time_from = var.ratecard_time_from
time_to = var.ratecard_time_to
}
Argument Reference
The following arguments are supported:
compartment_id
- (Required) The OCID of the root compartment.part_number
- (Optional) This param is used to get the rate card(s) filterd by the partNumbersubscription_id
- (Required) Line level Subscription Idtime_from
- (Optional) This param is used to get the rate card(s) whose effective start date starts on or after a particular datetime_to
- (Optional) This param is used to get the rate card(s) whose effective end date ends on or before a particular date
Attributes Reference
The following attributes are exported:
rate_cards
- The list of rate_cards.
Ratecard Reference
The following attributes are exported:
currency
- Currency detailsiso_code
- Currency Codename
- Currency namestd_precision
- Standard Precision of the Currency
discretionary_discount_percentage
- Rate card discretionary discount percentageis_tier
- Rate card price tier flagnet_unit_price
- Rate card net unit priceoverage_price
- Rate card overage priceproduct
- Product descriptionbilling_category
- Metered service billing categoryname
- Product namepart_number
- Product part numnerproduct_category
- Product categoryucm_rate_card_part_type
- Rate card part type of Productunit_of_measure
- Unit of measure
rate_card_tiers
- List of tiered rate card pricesnet_unit_price
- Rate card tier net unit priceoverage_price
- Rate card tier overage priceup_to_quantity
- Rate card tier quantity range
subscribed_service_id
- SPM internal Subscribed Service IDtime_end
- Rate card end datetime_start
- Rate card start date