Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.OsubBillingSchedule.getBillingSchedule
Explore with Pulumi AI
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
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testBillingSchedules = oci.OsubBillingSchedule.getBillingSchedule({
compartmentId: compartmentId,
subscriptionId: testSubscription.id,
subscribedServiceId: testService.id,
xOneOriginRegion: billingScheduleXOneOriginRegion,
});
import pulumi
import pulumi_oci as oci
test_billing_schedules = oci.OsubBillingSchedule.get_billing_schedule(compartment_id=compartment_id,
subscription_id=test_subscription["id"],
subscribed_service_id=test_service["id"],
x_one_origin_region=billing_schedule_x_one_origin_region)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/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: compartmentId,
SubscriptionId: testSubscription.Id,
SubscribedServiceId: pulumi.StringRef(testService.Id),
XOneOriginRegion: pulumi.StringRef(billingScheduleXOneOriginRegion),
}, 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.OsubBillingSchedule.GetBillingSchedule.Invoke(new()
{
CompartmentId = compartmentId,
SubscriptionId = testSubscription.Id,
SubscribedServiceId = testService.Id,
XOneOriginRegion = billingScheduleXOneOriginRegion,
});
});
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(compartmentId)
.subscriptionId(testSubscription.id())
.subscribedServiceId(testService.id())
.xOneOriginRegion(billingScheduleXOneOriginRegion)
.build());
}
}
variables:
testBillingSchedules:
fn::invoke:
Function: oci:OsubBillingSchedule:getBillingSchedule
Arguments:
compartmentId: ${compartmentId}
subscriptionId: ${testSubscription.id}
subscribedServiceId: ${testService.id}
xOneOriginRegion: ${billingScheduleXOneOriginRegion}
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:
- Compartment
Id string - The OCID of the compartment.
- Subscription
Id string - This param is used to get only the billing schedules for a particular Subscription Id
- Filters
List<Get
Billing Schedule Filter> - Subscribed
Service stringId - This param is used to get only the billing schedules for a particular Subscribed Service
- XOne
Origin stringRegion - 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 string - The OCID of the compartment.
- Subscription
Id string - This param is used to get only the billing schedules for a particular Subscription Id
- Filters
[]Get
Billing Schedule Filter - Subscribed
Service stringId - This param is used to get only the billing schedules for a particular Subscribed Service
- XOne
Origin stringRegion - 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 String - The OCID of the compartment.
- subscription
Id String - This param is used to get only the billing schedules for a particular Subscription Id
- filters
List<Get
Billing Schedule Filter> - subscribed
Service StringId - This param is used to get only the billing schedules for a particular Subscribed Service
- x
One StringOrigin Region - 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 string - The OCID of the compartment.
- subscription
Id string - This param is used to get only the billing schedules for a particular Subscription Id
- filters
Get
Billing Schedule Filter[] - subscribed
Service stringId - This param is used to get only the billing schedules for a particular Subscribed Service
- x
One stringOrigin Region - 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
Sequence[osubbillingschedule.
Get Billing Schedule Filter] - subscribed_
service_ strid - This param is used to get only the billing schedules for a particular Subscribed Service
- x_
one_ strorigin_ region - 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 String - The OCID of the compartment.
- subscription
Id String - This param is used to get only the billing schedules for a particular Subscription Id
- filters List<Property Map>
- subscribed
Service StringId - This param is used to get only the billing schedules for a particular Subscribed Service
- x
One StringOrigin Region - 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:
- Billing
Schedules List<GetBilling Schedule Billing Schedule> - The list of billing_schedules.
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Subscription
Id string - Filters
List<Get
Billing Schedule Filter> - Subscribed
Service stringId - XOne
Origin stringRegion
- Billing
Schedules []GetBilling Schedule Billing Schedule - The list of billing_schedules.
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Subscription
Id string - Filters
[]Get
Billing Schedule Filter - Subscribed
Service stringId - XOne
Origin stringRegion
- billing
Schedules List<GetBilling Schedule Billing Schedule> - The list of billing_schedules.
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- subscription
Id String - filters
List<Get
Billing Schedule Filter> - subscribed
Service StringId - x
One StringOrigin Region
- billing
Schedules GetBilling Schedule Billing Schedule[] - The list of billing_schedules.
- compartment
Id string - id string
- The provider-assigned unique ID for this managed resource.
- subscription
Id string - filters
Get
Billing Schedule Filter[] - subscribed
Service stringId - x
One stringOrigin Region
- billing_
schedules Sequence[osubbillingschedule.Get Billing Schedule Billing Schedule] - The list of billing_schedules.
- compartment_
id str - id str
- The provider-assigned unique ID for this managed resource.
- subscription_
id str - filters
Sequence[osubbillingschedule.
Get Billing Schedule Filter] - subscribed_
service_ strid - x_
one_ strorigin_ region
- billing
Schedules List<Property Map> - The list of billing_schedules.
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- subscription
Id String - filters List<Property Map>
- subscribed
Service StringId - x
One StringOrigin Region
Supporting Types
GetBillingScheduleBillingSchedule
- Amount string
- Billing schedule line net amount
- Ar
Customer stringTransaction Id - Indicates the associated AR Customer transaction id a unique identifier existing on AR.
- Ar
Invoice stringNumber - Indicates the associated AR Invoice Number
- Billing
Frequency string - Billing frequency
- Invoice
Status string - Billing schedule invoice status
- Net
Unit stringPrice - Billing schedule net unit price
- Order
Number string - Order number associated with the Subscribed Service
- Products
List<Get
Billing Schedule Billing Schedule Product> - Product description
- Quantity string
- Billing schedule quantity
- Time
End string - Billing schedule end date
- Time
Invoicing string - Billing schedule invoicing date
- Time
Start string - Billing schedule start date
- Amount string
- Billing schedule line net amount
- Ar
Customer stringTransaction Id - Indicates the associated AR Customer transaction id a unique identifier existing on AR.
- Ar
Invoice stringNumber - Indicates the associated AR Invoice Number
- Billing
Frequency string - Billing frequency
- Invoice
Status string - Billing schedule invoice status
- Net
Unit stringPrice - Billing schedule net unit price
- Order
Number string - Order number associated with the Subscribed Service
- Products
[]Get
Billing Schedule Billing Schedule Product - Product description
- Quantity string
- Billing schedule quantity
- Time
End string - Billing schedule end date
- Time
Invoicing string - Billing schedule invoicing date
- Time
Start string - Billing schedule start date
- amount String
- Billing schedule line net amount
- ar
Customer StringTransaction Id - Indicates the associated AR Customer transaction id a unique identifier existing on AR.
- ar
Invoice StringNumber - Indicates the associated AR Invoice Number
- billing
Frequency String - Billing frequency
- invoice
Status String - Billing schedule invoice status
- net
Unit StringPrice - Billing schedule net unit price
- order
Number String - Order number associated with the Subscribed Service
- products
List<Get
Billing Schedule Billing Schedule Product> - Product description
- quantity String
- Billing schedule quantity
- time
End String - Billing schedule end date
- time
Invoicing String - Billing schedule invoicing date
- time
Start String - Billing schedule start date
- amount string
- Billing schedule line net amount
- ar
Customer stringTransaction Id - Indicates the associated AR Customer transaction id a unique identifier existing on AR.
- ar
Invoice stringNumber - Indicates the associated AR Invoice Number
- billing
Frequency string - Billing frequency
- invoice
Status string - Billing schedule invoice status
- net
Unit stringPrice - Billing schedule net unit price
- order
Number string - Order number associated with the Subscribed Service
- products
Get
Billing Schedule Billing Schedule Product[] - Product description
- quantity string
- Billing schedule quantity
- time
End string - Billing schedule end date
- time
Invoicing string - Billing schedule invoicing date
- time
Start string - Billing schedule start date
- amount str
- Billing schedule line net amount
- ar_
customer_ strtransaction_ id - Indicates the associated AR Customer transaction id a unique identifier existing on AR.
- ar_
invoice_ strnumber - Indicates the associated AR Invoice Number
- billing_
frequency str - Billing frequency
- invoice_
status str - Billing schedule invoice status
- net_
unit_ strprice - Billing schedule net unit price
- order_
number str - Order number associated with the Subscribed Service
- products
Sequence[osubbillingschedule.
Get Billing Schedule Billing Schedule Product] - 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
- ar
Customer StringTransaction Id - Indicates the associated AR Customer transaction id a unique identifier existing on AR.
- ar
Invoice StringNumber - Indicates the associated AR Invoice Number
- billing
Frequency String - Billing frequency
- invoice
Status String - Billing schedule invoice status
- net
Unit StringPrice - Billing schedule net unit price
- order
Number String - Order number associated with the Subscribed Service
- products List<Property Map>
- Product description
- quantity String
- Billing schedule quantity
- time
End String - Billing schedule end date
- time
Invoicing String - Billing schedule invoicing date
- time
Start String - Billing schedule start date
GetBillingScheduleBillingScheduleProduct
- Name string
- Product name
- Part
Number string - Indicates the associated AR Invoice Number
- Name string
- Product name
- Part
Number string - Indicates the associated AR Invoice Number
- name String
- Product name
- part
Number String - Indicates the associated AR Invoice Number
- name string
- Product name
- part
Number string - Indicates the associated AR Invoice Number
- name str
- Product name
- part_
number str - Indicates the associated AR Invoice Number
- name String
- Product name
- part
Number String - Indicates the associated AR Invoice Number
GetBillingScheduleFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.