Data Source: oci_osub_billing_schedule_billing_schedules
This data source provides the list of Billing Schedules in Oracle Cloud Infrastructure Osub Billing Schedule service.
This list API returns all billing schedules for given subscription id and for a particular Subscribed Service if provided
Example Usage
data "oci_osub_billing_schedule_billing_schedules" "test_billing_schedules" {
#Required
compartment_id = var.compartment_id
subscription_id = oci_ons_subscription.test_subscription.id
#Optional
subscribed_service_id = oci_core_service.test_service.id
x_one_origin_region = var.billing_schedule_x_one_origin_region
}
Argument Reference
The following arguments are supported:
compartment_id
- (Required) The OCID of the compartment.subscribed_service_id
- (Optional) This param is used to get only the billing schedules for a particular Subscribed Servicesubscription_id
- (Required) This param is used to get only the billing schedules for a particular Subscription Idx_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:
billing_schedules
- The list of billing_schedules.
BillingSchedule Reference
The following attributes are exported:
amount
- Billing schedule line net amountar_customer_transaction_id
- Indicates the associated AR Customer transaction id a unique identifier existing on AR.ar_invoice_number
- Indicates the associated AR Invoice Numberbilling_frequency
- Billing frequencyinvoice_status
- Billing schedule invoice statusnet_unit_price
- Billing schedule net unit priceorder_number
- Order number associated with the Subscribed Serviceproduct
- Product descriptionname
- Product namepart_number
- Indicates the associated AR Invoice Number
quantity
- Billing schedule quantitytime_end
- Billing schedule end datetime_invoicing
- Billing schedule invoicing datetime_start
- Billing schedule start date