Data Source: oci_usage_proxy_subscription_product
This data source provides details about a specific Subscription Product resource in Oracle Cloud Infrastructure Usage Proxy service.
Provides product information that is specific to a reward usage period and its usage details.
Example Usage
data "oci_usage_proxy_subscription_product" "test_subscription_product" {
#Required
subscription_id = oci_ons_subscription.test_subscription.id
tenancy_id = oci_identity_tenancy.test_tenancy.id
usage_period_key = var.subscription_product_usage_period_key
#Optional
producttype = var.subscription_product_producttype
}
Argument Reference
The following arguments are supported:
producttype
- (Optional) The field to specify the type of product.subscription_id
- (Required) The subscription ID for which rewards information is requested for.tenancy_id
- (Required) The OCID of the tenancy.usage_period_key
- (Required) The SPM Identifier for the usage period.
Attributes Reference
The following attributes are exported:
items
- The list of product rewards summaries.earned_rewards
- The earned rewards for the product.is_eligible_to_earn_rewards
- The boolean parameter to indicate if the product is eligible to earn rewards.product_name
- The rate card product name.product_number
- The rate card product number.usage_amount
- The rate card product usage amount.