Data Source: oci_onesubscription_subscriptions
This data source provides the list of Subscriptions in Oracle Cloud Infrastructure Onesubscription service.
This list API returns all subscriptions for a given plan number or subscription id or buyer email and provides additional parameters to include ratecard and commitment details. This API expects exactly one of the above mentioned parameters as input. If more than one parameters are provided the API will throw a 400 - invalid parameters exception and if no parameters are provided it will throw a 400 - missing parameter exception
Example Usage
data "oci_onesubscription_subscriptions" "test_subscriptions" {
#Required
compartment_id = var.compartment_id
#Optional
buyer_email = var.subscription_buyer_email
is_commit_info_required = var.subscription_is_commit_info_required
plan_number = var.subscription_plan_number
subscription_id = oci_onesubscription_subscription.test_subscription.id
}
Argument Reference
The following arguments are supported:
buyer_email
- (Optional) Buyer Email Idcompartment_id
- (Required) The OCID of the root compartment.is_commit_info_required
- (Optional) Boolean value to decide whether commitment services will be shownplan_number
- (Optional) The Plan Numbersubscription_id
- (Optional) Line level Subscription Id
Attributes Reference
The following attributes are exported:
subscriptions
- The list of subscriptions.
Subscription Reference
The following attributes are exported:
currency
- Currency detailsiso_code
- Currency Codename
- Currency namestd_precision
- Standard Precision of the Currency
hold_reason
- Hold reason of the planservice_name
- Customer friendly service name provided by PRGstatus
- Status of the plansubscribed_services
- List of Subscribed Services of the plan
available_amount
- Subscribed sercice available or remaining amountbooking_opty_number
- Booking Opportunity Number of Subscribed Servicecommitment_services
- List of Commitment services of a line
available_amount
- Commitment available amountfunded_allocation_value
- Funded Allocation line valueline_net_amount
- Commitment line net amountquantity
- Commitment quantitytime_end
- Commitment end datetime_start
- Commitment start date
csi
- Subscribed service CSI numberdata_center_region
- Subscribed service data center regionfunded_allocation_value
- Funded Allocation line value example: 12000.00id
- SPM internal Subscribed Service IDis_intent_to_pay
- Subscribed service intent to pay flagnet_unit_price
- Subscribed service net unit priceoperation_type
- Subscribed service operation typeorder_number
- Sales Order Number associated to the subscribed serviceoriginal_promo_amount
- Subscribed service Promotion Amountpartner_transaction_type
- This field contains the name of the partner to which the subscription belongs - depending on which the invoicing may differpricing_model
- Subscribed service pricing modelproduct
- Product descriptionname
- Product namepart_number
- Product part numnerprovisioning_group
- Product provisioning groupunit_of_measure
- Unit of measure
program_type
- Subscribed service program typepromo_type
- Subscribed service promotion typequantity
- Subscribed service quantitystatus
- Subscribed service statusterm_value
- Term value in Monthsterm_value_uom
- Term value UOMtime_end
- Subscribed service end datetime_start
- Subscribed service start datetotal_value
- Subscribed service total valueused_amount
- Subscribed service used amount
time_end
- Represents the date when the last service of the subscription endstime_hold_release_eta
- Represents the date of the hold releasetime_start
- Represents the date when the first service of the subscription was activated