Data Source: oci_osub_subscription_ratecards
This data source provides the list of Ratecards in Oracle Cloud Infrastructure Osub Subscription 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_osub_subscription_ratecards" "test_ratecards" {
#Required
compartment_id = var.compartment_id
subscription_id = oci_osub_subscription_subscription.test_subscription.id
#Optional
part_number = var.ratecard_part_number
time_from = var.ratecard_time_from
time_to = var.ratecard_time_to
x_one_origin_region = var.ratecard_x_one_origin_region
}
Argument Reference
The following arguments are supported:
compartment_id
- (Required) The OCID of the 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 datex_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:
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 Product
unit_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
time_end
- Rate card end datetime_start
- Rate card start date