oci logo
Oracle Cloud Infrastructure v0.12.0, Mar 17 23

oci.OsubBillingSchedule.getBillingSchedule

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

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testBillingSchedules = Oci.OsubBillingSchedule.GetBillingSchedule.Invoke(new()
    {
        CompartmentId = @var.Compartment_id,
        SubscriptionId = oci_ons_subscription.Test_subscription.Id,
        SubscribedServiceId = oci_core_service.Test_service.Id,
        XOneOriginRegion = @var.Billing_schedule_x_one_origin_region,
    });

});
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/OsubBillingSchedule"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := OsubBillingSchedule.GetBillingSchedule(ctx, &osubbillingschedule.GetBillingScheduleArgs{
			CompartmentId:       _var.Compartment_id,
			SubscriptionId:      oci_ons_subscription.Test_subscription.Id,
			SubscribedServiceId: pulumi.StringRef(oci_core_service.Test_service.Id),
			XOneOriginRegion:    pulumi.StringRef(_var.Billing_schedule_x_one_origin_region),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.OsubBillingSchedule.OsubBillingScheduleFunctions;
import com.pulumi.oci.OsubBillingSchedule.inputs.GetBillingScheduleArgs;
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 = OsubBillingScheduleFunctions.getBillingSchedule(GetBillingScheduleArgs.builder()
            .compartmentId(var_.compartment_id())
            .subscriptionId(oci_ons_subscription.test_subscription().id())
            .subscribedServiceId(oci_core_service.test_service().id())
            .xOneOriginRegion(var_.billing_schedule_x_one_origin_region())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_billing_schedules = oci.OsubBillingSchedule.get_billing_schedule(compartment_id=var["compartment_id"],
    subscription_id=oci_ons_subscription["test_subscription"]["id"],
    subscribed_service_id=oci_core_service["test_service"]["id"],
    x_one_origin_region=var["billing_schedule_x_one_origin_region"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testBillingSchedules = oci.OsubBillingSchedule.getBillingSchedule({
    compartmentId: _var.compartment_id,
    subscriptionId: oci_ons_subscription.test_subscription.id,
    subscribedServiceId: oci_core_service.test_service.id,
    xOneOriginRegion: _var.billing_schedule_x_one_origin_region,
});
variables:
  testBillingSchedules:
    fn::invoke:
      Function: oci:OsubBillingSchedule:getBillingSchedule
      Arguments:
        compartmentId: ${var.compartment_id}
        subscriptionId: ${oci_ons_subscription.test_subscription.id}
        subscribedServiceId: ${oci_core_service.test_service.id}
        xOneOriginRegion: ${var.billing_schedule_x_one_origin_region}

Using getBillingSchedule

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 getBillingSchedule(args: GetBillingScheduleArgs, opts?: InvokeOptions): Promise<GetBillingScheduleResult>
function getBillingScheduleOutput(args: GetBillingScheduleOutputArgs, opts?: InvokeOptions): Output<GetBillingScheduleResult>
def get_billing_schedule(compartment_id: Optional[str] = None,
                         filters: Optional[Sequence[_osubbillingschedule.GetBillingScheduleFilter]] = None,
                         subscribed_service_id: Optional[str] = None,
                         subscription_id: Optional[str] = None,
                         x_one_origin_region: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetBillingScheduleResult
def get_billing_schedule_output(compartment_id: Optional[pulumi.Input[str]] = None,
                         filters: Optional[pulumi.Input[Sequence[pulumi.Input[_osubbillingschedule.GetBillingScheduleFilterArgs]]]] = None,
                         subscribed_service_id: Optional[pulumi.Input[str]] = None,
                         subscription_id: Optional[pulumi.Input[str]] = None,
                         x_one_origin_region: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetBillingScheduleResult]
func GetBillingSchedule(ctx *Context, args *GetBillingScheduleArgs, opts ...InvokeOption) (*GetBillingScheduleResult, error)
func GetBillingScheduleOutput(ctx *Context, args *GetBillingScheduleOutputArgs, opts ...InvokeOption) GetBillingScheduleResultOutput

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

public static class GetBillingSchedule 
{
    public static Task<GetBillingScheduleResult> InvokeAsync(GetBillingScheduleArgs args, InvokeOptions? opts = null)
    public static Output<GetBillingScheduleResult> Invoke(GetBillingScheduleInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetBillingScheduleResult> getBillingSchedule(GetBillingScheduleArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: oci:OsubBillingSchedule/getBillingSchedule:getBillingSchedule
  arguments:
    # arguments dictionary

The following arguments are supported:

CompartmentId string

The OCID of the compartment.

SubscriptionId string

This param is used to get only the billing schedules for a particular Subscription Id

Filters List<GetBillingScheduleFilter>
SubscribedServiceId string

This param is used to get only the billing schedules for a particular Subscribed Service

XOneOriginRegion string

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.

CompartmentId string

The OCID of the compartment.

SubscriptionId string

This param is used to get only the billing schedules for a particular Subscription Id

Filters []GetBillingScheduleFilter
SubscribedServiceId string

This param is used to get only the billing schedules for a particular Subscribed Service

XOneOriginRegion string

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.

compartmentId String

The OCID of the compartment.

subscriptionId String

This param is used to get only the billing schedules for a particular Subscription Id

filters List<GetBillingScheduleFilter>
subscribedServiceId String

This param is used to get only the billing schedules for a particular Subscribed Service

xOneOriginRegion String

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.

compartmentId string

The OCID of the compartment.

subscriptionId string

This param is used to get only the billing schedules for a particular Subscription Id

filters GetBillingScheduleFilter[]
subscribedServiceId string

This param is used to get only the billing schedules for a particular Subscribed Service

xOneOriginRegion string

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.

compartment_id str

The OCID of the compartment.

subscription_id str

This param is used to get only the billing schedules for a particular Subscription Id

filters GetBillingScheduleFilter]
subscribed_service_id str

This param is used to get only the billing schedules for a particular Subscribed Service

x_one_origin_region str

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.

compartmentId String

The OCID of the 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

xOneOriginRegion String

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.

getBillingSchedule Result

The following output properties are available:

BillingSchedules List<GetBillingScheduleBillingSchedule>

The list of billing_schedules.

CompartmentId string
Id string

The provider-assigned unique ID for this managed resource.

SubscriptionId string
Filters List<GetBillingScheduleFilter>
SubscribedServiceId string
XOneOriginRegion string
BillingSchedules []GetBillingScheduleBillingSchedule

The list of billing_schedules.

CompartmentId string
Id string

The provider-assigned unique ID for this managed resource.

SubscriptionId string
Filters []GetBillingScheduleFilter
SubscribedServiceId string
XOneOriginRegion string
billingSchedules List<GetBillingScheduleBillingSchedule>

The list of billing_schedules.

compartmentId String
id String

The provider-assigned unique ID for this managed resource.

subscriptionId String
filters List<GetBillingScheduleFilter>
subscribedServiceId String
xOneOriginRegion String
billingSchedules GetBillingScheduleBillingSchedule[]

The list of billing_schedules.

compartmentId string
id string

The provider-assigned unique ID for this managed resource.

subscriptionId string
filters GetBillingScheduleFilter[]
subscribedServiceId string
xOneOriginRegion string
billing_schedules GetBillingScheduleBillingSchedule]

The list of billing_schedules.

compartment_id str
id str

The provider-assigned unique ID for this managed resource.

subscription_id str
filters GetBillingScheduleFilter]
subscribed_service_id str
x_one_origin_region str
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
xOneOriginRegion String

Supporting Types

GetBillingScheduleBillingSchedule

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<GetBillingScheduleBillingScheduleProduct>

Product description

Quantity string

Billing schedule quantity

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 []GetBillingScheduleBillingScheduleProduct

Product description

Quantity string

Billing schedule quantity

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<GetBillingScheduleBillingScheduleProduct>

Product description

quantity String

Billing schedule quantity

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 GetBillingScheduleBillingScheduleProduct[]

Product description

quantity string

Billing schedule quantity

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 GetBillingScheduleBillingScheduleProduct]

Product description

quantity str

Billing schedule quantity

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

timeEnd String

Billing schedule end date

timeInvoicing String

Billing schedule invoicing date

timeStart String

Billing schedule start date

GetBillingScheduleBillingScheduleProduct

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

GetBillingScheduleFilter

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.