1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OneSubsription
  5. getBillingSchedules
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.OneSubsription.getBillingSchedules

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

    This data source provides the list of Billing Schedules in Oracle Cloud Infrastructure Onesubscription service.

    This list API returns all billing schedules for given subscription id and for a particular Subscribed Service if provided

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testBillingSchedules = oci.OneSubsription.getBillingSchedules({
        compartmentId: compartmentId,
        subscriptionId: testSubscription.id,
        subscribedServiceId: testSubscribedService.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_billing_schedules = oci.OneSubsription.get_billing_schedules(compartment_id=compartment_id,
        subscription_id=test_subscription["id"],
        subscribed_service_id=test_subscribed_service["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/OneSubsription"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := OneSubsription.GetBillingSchedules(ctx, &onesubsription.GetBillingSchedulesArgs{
    			CompartmentId:       compartmentId,
    			SubscriptionId:      testSubscription.Id,
    			SubscribedServiceId: pulumi.StringRef(testSubscribedService.Id),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testBillingSchedules = Oci.OneSubsription.GetBillingSchedules.Invoke(new()
        {
            CompartmentId = compartmentId,
            SubscriptionId = testSubscription.Id,
            SubscribedServiceId = testSubscribedService.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.OneSubsription.OneSubsriptionFunctions;
    import com.pulumi.oci.OneSubsription.inputs.GetBillingSchedulesArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var testBillingSchedules = OneSubsriptionFunctions.getBillingSchedules(GetBillingSchedulesArgs.builder()
                .compartmentId(compartmentId)
                .subscriptionId(testSubscription.id())
                .subscribedServiceId(testSubscribedService.id())
                .build());
    
        }
    }
    
    variables:
      testBillingSchedules:
        fn::invoke:
          Function: oci:OneSubsription:getBillingSchedules
          Arguments:
            compartmentId: ${compartmentId}
            subscriptionId: ${testSubscription.id}
            subscribedServiceId: ${testSubscribedService.id}
    

    Using getBillingSchedules

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getBillingSchedules(args: GetBillingSchedulesArgs, opts?: InvokeOptions): Promise<GetBillingSchedulesResult>
    function getBillingSchedulesOutput(args: GetBillingSchedulesOutputArgs, opts?: InvokeOptions): Output<GetBillingSchedulesResult>
    def get_billing_schedules(compartment_id: Optional[str] = None,
                              filters: Optional[Sequence[_onesubsription.GetBillingSchedulesFilter]] = None,
                              subscribed_service_id: Optional[str] = None,
                              subscription_id: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetBillingSchedulesResult
    def get_billing_schedules_output(compartment_id: Optional[pulumi.Input[str]] = None,
                              filters: Optional[pulumi.Input[Sequence[pulumi.Input[_onesubsription.GetBillingSchedulesFilterArgs]]]] = None,
                              subscribed_service_id: Optional[pulumi.Input[str]] = None,
                              subscription_id: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetBillingSchedulesResult]
    func GetBillingSchedules(ctx *Context, args *GetBillingSchedulesArgs, opts ...InvokeOption) (*GetBillingSchedulesResult, error)
    func GetBillingSchedulesOutput(ctx *Context, args *GetBillingSchedulesOutputArgs, opts ...InvokeOption) GetBillingSchedulesResultOutput

    > Note: This function is named GetBillingSchedules in the Go SDK.

    public static class GetBillingSchedules 
    {
        public static Task<GetBillingSchedulesResult> InvokeAsync(GetBillingSchedulesArgs args, InvokeOptions? opts = null)
        public static Output<GetBillingSchedulesResult> Invoke(GetBillingSchedulesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetBillingSchedulesResult> getBillingSchedules(GetBillingSchedulesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:OneSubsription/getBillingSchedules:getBillingSchedules
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The OCID of the root compartment.
    SubscriptionId string
    This param is used to get only the billing schedules for a particular Subscription Id
    Filters List<GetBillingSchedulesFilter>
    SubscribedServiceId string
    This param is used to get only the billing schedules for a particular Subscribed Service
    CompartmentId string
    The OCID of the root compartment.
    SubscriptionId string
    This param is used to get only the billing schedules for a particular Subscription Id
    Filters []GetBillingSchedulesFilter
    SubscribedServiceId string
    This param is used to get only the billing schedules for a particular Subscribed Service
    compartmentId String
    The OCID of the root compartment.
    subscriptionId String
    This param is used to get only the billing schedules for a particular Subscription Id
    filters List<GetBillingSchedulesFilter>
    subscribedServiceId String
    This param is used to get only the billing schedules for a particular Subscribed Service
    compartmentId string
    The OCID of the root compartment.
    subscriptionId string
    This param is used to get only the billing schedules for a particular Subscription Id
    filters GetBillingSchedulesFilter[]
    subscribedServiceId string
    This param is used to get only the billing schedules for a particular Subscribed Service
    compartment_id str
    The OCID of the root compartment.
    subscription_id str
    This param is used to get only the billing schedules for a particular Subscription Id
    filters Sequence[onesubsription.GetBillingSchedulesFilter]
    subscribed_service_id str
    This param is used to get only the billing schedules for a particular Subscribed Service
    compartmentId String
    The OCID of the root compartment.
    subscriptionId String
    This param is used to get only the billing schedules for a particular Subscription Id
    filters List<Property Map>
    subscribedServiceId String
    This param is used to get only the billing schedules for a particular Subscribed Service

    getBillingSchedules Result

    The following output properties are available:

    BillingSchedules List<GetBillingSchedulesBillingSchedule>
    The list of billing_schedules.
    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    SubscriptionId string
    Filters List<GetBillingSchedulesFilter>
    SubscribedServiceId string
    SPM internal Subscribed Service ID
    BillingSchedules []GetBillingSchedulesBillingSchedule
    The list of billing_schedules.
    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    SubscriptionId string
    Filters []GetBillingSchedulesFilter
    SubscribedServiceId string
    SPM internal Subscribed Service ID
    billingSchedules List<GetBillingSchedulesBillingSchedule>
    The list of billing_schedules.
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    subscriptionId String
    filters List<GetBillingSchedulesFilter>
    subscribedServiceId String
    SPM internal Subscribed Service ID
    billingSchedules GetBillingSchedulesBillingSchedule[]
    The list of billing_schedules.
    compartmentId string
    id string
    The provider-assigned unique ID for this managed resource.
    subscriptionId string
    filters GetBillingSchedulesFilter[]
    subscribedServiceId string
    SPM internal Subscribed Service ID
    billing_schedules Sequence[onesubsription.GetBillingSchedulesBillingSchedule]
    The list of billing_schedules.
    compartment_id str
    id str
    The provider-assigned unique ID for this managed resource.
    subscription_id str
    filters Sequence[onesubsription.GetBillingSchedulesFilter]
    subscribed_service_id str
    SPM internal Subscribed Service ID
    billingSchedules List<Property Map>
    The list of billing_schedules.
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    subscriptionId String
    filters List<Property Map>
    subscribedServiceId String
    SPM internal Subscribed Service ID

    Supporting Types

    GetBillingSchedulesBillingSchedule

    Amount string
    Billing schedule line net amount
    ArCustomerTransactionId string
    Indicates the associated AR Customer transaction id a unique identifier existing on AR.
    ArInvoiceNumber string
    Indicates the associated AR Invoice Number
    BillingFrequency string
    Billing frequency
    InvoiceStatus string
    Billing schedule invoice status
    NetUnitPrice string
    Billing schedule net unit price
    OrderNumber string
    Order number associated with the Subscribed Service
    Products List<GetBillingSchedulesBillingScheduleProduct>
    Product description
    Quantity string
    Billing schedule quantity
    SubscribedServiceId string
    This param is used to get only the billing schedules for a particular Subscribed Service
    TimeEnd string
    Billing schedule end date
    TimeInvoicing string
    Billing schedule invoicing date
    TimeStart string
    Billing schedule start date
    Amount string
    Billing schedule line net amount
    ArCustomerTransactionId string
    Indicates the associated AR Customer transaction id a unique identifier existing on AR.
    ArInvoiceNumber string
    Indicates the associated AR Invoice Number
    BillingFrequency string
    Billing frequency
    InvoiceStatus string
    Billing schedule invoice status
    NetUnitPrice string
    Billing schedule net unit price
    OrderNumber string
    Order number associated with the Subscribed Service
    Products []GetBillingSchedulesBillingScheduleProduct
    Product description
    Quantity string
    Billing schedule quantity
    SubscribedServiceId string
    This param is used to get only the billing schedules for a particular Subscribed Service
    TimeEnd string
    Billing schedule end date
    TimeInvoicing string
    Billing schedule invoicing date
    TimeStart string
    Billing schedule start date
    amount String
    Billing schedule line net amount
    arCustomerTransactionId String
    Indicates the associated AR Customer transaction id a unique identifier existing on AR.
    arInvoiceNumber String
    Indicates the associated AR Invoice Number
    billingFrequency String
    Billing frequency
    invoiceStatus String
    Billing schedule invoice status
    netUnitPrice String
    Billing schedule net unit price
    orderNumber String
    Order number associated with the Subscribed Service
    products List<GetBillingSchedulesBillingScheduleProduct>
    Product description
    quantity String
    Billing schedule quantity
    subscribedServiceId String
    This param is used to get only the billing schedules for a particular Subscribed Service
    timeEnd String
    Billing schedule end date
    timeInvoicing String
    Billing schedule invoicing date
    timeStart String
    Billing schedule start date
    amount string
    Billing schedule line net amount
    arCustomerTransactionId string
    Indicates the associated AR Customer transaction id a unique identifier existing on AR.
    arInvoiceNumber string
    Indicates the associated AR Invoice Number
    billingFrequency string
    Billing frequency
    invoiceStatus string
    Billing schedule invoice status
    netUnitPrice string
    Billing schedule net unit price
    orderNumber string
    Order number associated with the Subscribed Service
    products GetBillingSchedulesBillingScheduleProduct[]
    Product description
    quantity string
    Billing schedule quantity
    subscribedServiceId string
    This param is used to get only the billing schedules for a particular Subscribed Service
    timeEnd string
    Billing schedule end date
    timeInvoicing string
    Billing schedule invoicing date
    timeStart string
    Billing schedule start date
    amount str
    Billing schedule line net amount
    ar_customer_transaction_id str
    Indicates the associated AR Customer transaction id a unique identifier existing on AR.
    ar_invoice_number str
    Indicates the associated AR Invoice Number
    billing_frequency str
    Billing frequency
    invoice_status str
    Billing schedule invoice status
    net_unit_price str
    Billing schedule net unit price
    order_number str
    Order number associated with the Subscribed Service
    products Sequence[onesubsription.GetBillingSchedulesBillingScheduleProduct]
    Product description
    quantity str
    Billing schedule quantity
    subscribed_service_id str
    This param is used to get only the billing schedules for a particular Subscribed Service
    time_end str
    Billing schedule end date
    time_invoicing str
    Billing schedule invoicing date
    time_start str
    Billing schedule start date
    amount String
    Billing schedule line net amount
    arCustomerTransactionId String
    Indicates the associated AR Customer transaction id a unique identifier existing on AR.
    arInvoiceNumber String
    Indicates the associated AR Invoice Number
    billingFrequency String
    Billing frequency
    invoiceStatus String
    Billing schedule invoice status
    netUnitPrice String
    Billing schedule net unit price
    orderNumber String
    Order number associated with the Subscribed Service
    products List<Property Map>
    Product description
    quantity String
    Billing schedule quantity
    subscribedServiceId String
    This param is used to get only the billing schedules for a particular Subscribed Service
    timeEnd String
    Billing schedule end date
    timeInvoicing String
    Billing schedule invoicing date
    timeStart String
    Billing schedule start date

    GetBillingSchedulesBillingScheduleProduct

    Name string
    Product name
    PartNumber string
    Indicates the associated AR Invoice Number
    Name string
    Product name
    PartNumber string
    Indicates the associated AR Invoice Number
    name String
    Product name
    partNumber String
    Indicates the associated AR Invoice Number
    name string
    Product name
    partNumber string
    Indicates the associated AR Invoice Number
    name str
    Product name
    part_number str
    Indicates the associated AR Invoice Number
    name String
    Product name
    partNumber String
    Indicates the associated AR Invoice Number

    GetBillingSchedulesFilter

    Name string
    Product name
    Values List<string>
    Regex bool
    Name string
    Product name
    Values []string
    Regex bool
    name String
    Product name
    values List<String>
    regex Boolean
    name string
    Product name
    values string[]
    regex boolean
    name str
    Product name
    values Sequence[str]
    regex bool
    name String
    Product name
    values List<String>
    regex Boolean

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi