Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.UsageProxy.getSubscriptionRedemptions
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
This data source provides the list of Subscription Redemptions in Oracle Cloud Infrastructure Usage Proxy service.
Returns the list of redemption for the subscription ID.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSubscriptionRedemptions = oci.UsageProxy.getSubscriptionRedemptions({
subscriptionId: testSubscription.id,
tenancyId: testTenancy.id,
timeRedeemedGreaterThanOrEqualTo: subscriptionRedemptionTimeRedeemedGreaterThanOrEqualTo,
timeRedeemedLessThan: subscriptionRedemptionTimeRedeemedLessThan,
});
import pulumi
import pulumi_oci as oci
test_subscription_redemptions = oci.UsageProxy.get_subscription_redemptions(subscription_id=test_subscription["id"],
tenancy_id=test_tenancy["id"],
time_redeemed_greater_than_or_equal_to=subscription_redemption_time_redeemed_greater_than_or_equal_to,
time_redeemed_less_than=subscription_redemption_time_redeemed_less_than)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/UsageProxy"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := UsageProxy.GetSubscriptionRedemptions(ctx, &usageproxy.GetSubscriptionRedemptionsArgs{
SubscriptionId: testSubscription.Id,
TenancyId: testTenancy.Id,
TimeRedeemedGreaterThanOrEqualTo: pulumi.StringRef(subscriptionRedemptionTimeRedeemedGreaterThanOrEqualTo),
TimeRedeemedLessThan: pulumi.StringRef(subscriptionRedemptionTimeRedeemedLessThan),
}, 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 testSubscriptionRedemptions = Oci.UsageProxy.GetSubscriptionRedemptions.Invoke(new()
{
SubscriptionId = testSubscription.Id,
TenancyId = testTenancy.Id,
TimeRedeemedGreaterThanOrEqualTo = subscriptionRedemptionTimeRedeemedGreaterThanOrEqualTo,
TimeRedeemedLessThan = subscriptionRedemptionTimeRedeemedLessThan,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.UsageProxy.UsageProxyFunctions;
import com.pulumi.oci.UsageProxy.inputs.GetSubscriptionRedemptionsArgs;
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 testSubscriptionRedemptions = UsageProxyFunctions.getSubscriptionRedemptions(GetSubscriptionRedemptionsArgs.builder()
.subscriptionId(testSubscription.id())
.tenancyId(testTenancy.id())
.timeRedeemedGreaterThanOrEqualTo(subscriptionRedemptionTimeRedeemedGreaterThanOrEqualTo)
.timeRedeemedLessThan(subscriptionRedemptionTimeRedeemedLessThan)
.build());
}
}
variables:
testSubscriptionRedemptions:
fn::invoke:
Function: oci:UsageProxy:getSubscriptionRedemptions
Arguments:
subscriptionId: ${testSubscription.id}
tenancyId: ${testTenancy.id}
timeRedeemedGreaterThanOrEqualTo: ${subscriptionRedemptionTimeRedeemedGreaterThanOrEqualTo}
timeRedeemedLessThan: ${subscriptionRedemptionTimeRedeemedLessThan}
Using getSubscriptionRedemptions
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 getSubscriptionRedemptions(args: GetSubscriptionRedemptionsArgs, opts?: InvokeOptions): Promise<GetSubscriptionRedemptionsResult>
function getSubscriptionRedemptionsOutput(args: GetSubscriptionRedemptionsOutputArgs, opts?: InvokeOptions): Output<GetSubscriptionRedemptionsResult>
def get_subscription_redemptions(filters: Optional[Sequence[_usageproxy.GetSubscriptionRedemptionsFilter]] = None,
subscription_id: Optional[str] = None,
tenancy_id: Optional[str] = None,
time_redeemed_greater_than_or_equal_to: Optional[str] = None,
time_redeemed_less_than: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSubscriptionRedemptionsResult
def get_subscription_redemptions_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_usageproxy.GetSubscriptionRedemptionsFilterArgs]]]] = None,
subscription_id: Optional[pulumi.Input[str]] = None,
tenancy_id: Optional[pulumi.Input[str]] = None,
time_redeemed_greater_than_or_equal_to: Optional[pulumi.Input[str]] = None,
time_redeemed_less_than: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSubscriptionRedemptionsResult]
func GetSubscriptionRedemptions(ctx *Context, args *GetSubscriptionRedemptionsArgs, opts ...InvokeOption) (*GetSubscriptionRedemptionsResult, error)
func GetSubscriptionRedemptionsOutput(ctx *Context, args *GetSubscriptionRedemptionsOutputArgs, opts ...InvokeOption) GetSubscriptionRedemptionsResultOutput
> Note: This function is named GetSubscriptionRedemptions
in the Go SDK.
public static class GetSubscriptionRedemptions
{
public static Task<GetSubscriptionRedemptionsResult> InvokeAsync(GetSubscriptionRedemptionsArgs args, InvokeOptions? opts = null)
public static Output<GetSubscriptionRedemptionsResult> Invoke(GetSubscriptionRedemptionsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSubscriptionRedemptionsResult> getSubscriptionRedemptions(GetSubscriptionRedemptionsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:UsageProxy/getSubscriptionRedemptions:getSubscriptionRedemptions
arguments:
# arguments dictionary
The following arguments are supported:
- Subscription
Id string - The subscription ID for which rewards information is requested for.
- Tenancy
Id string - The OCID of the tenancy.
- Filters
List<Get
Subscription Redemptions Filter> - Time
Redeemed stringGreater Than Or Equal To - The starting redeemed date filter for the redemption history.
- Time
Redeemed stringLess Than - The ending redeemed date filter for the redemption history.
- Subscription
Id string - The subscription ID for which rewards information is requested for.
- Tenancy
Id string - The OCID of the tenancy.
- Filters
[]Get
Subscription Redemptions Filter - Time
Redeemed stringGreater Than Or Equal To - The starting redeemed date filter for the redemption history.
- Time
Redeemed stringLess Than - The ending redeemed date filter for the redemption history.
- subscription
Id String - The subscription ID for which rewards information is requested for.
- tenancy
Id String - The OCID of the tenancy.
- filters
List<Get
Subscription Redemptions Filter> - time
Redeemed StringGreater Than Or Equal To - The starting redeemed date filter for the redemption history.
- time
Redeemed StringLess Than - The ending redeemed date filter for the redemption history.
- subscription
Id string - The subscription ID for which rewards information is requested for.
- tenancy
Id string - The OCID of the tenancy.
- filters
Get
Subscription Redemptions Filter[] - time
Redeemed stringGreater Than Or Equal To - The starting redeemed date filter for the redemption history.
- time
Redeemed stringLess Than - The ending redeemed date filter for the redemption history.
- subscription_
id str - The subscription ID for which rewards information is requested for.
- tenancy_
id str - The OCID of the tenancy.
- filters
Sequence[usageproxy.
Get Subscription Redemptions Filter] - time_
redeemed_ strgreater_ than_ or_ equal_ to - The starting redeemed date filter for the redemption history.
- time_
redeemed_ strless_ than - The ending redeemed date filter for the redemption history.
- subscription
Id String - The subscription ID for which rewards information is requested for.
- tenancy
Id String - The OCID of the tenancy.
- filters List<Property Map>
- time
Redeemed StringGreater Than Or Equal To - The starting redeemed date filter for the redemption history.
- time
Redeemed StringLess Than - The ending redeemed date filter for the redemption history.
getSubscriptionRedemptions Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Redemption
Collections List<GetSubscription Redemptions Redemption Collection> - The list of redemption_collection.
- Subscription
Id string - Tenancy
Id string - Filters
List<Get
Subscription Redemptions Filter> - Time
Redeemed stringGreater Than Or Equal To - Time
Redeemed stringLess Than
- Id string
- The provider-assigned unique ID for this managed resource.
- Redemption
Collections []GetSubscription Redemptions Redemption Collection - The list of redemption_collection.
- Subscription
Id string - Tenancy
Id string - Filters
[]Get
Subscription Redemptions Filter - Time
Redeemed stringGreater Than Or Equal To - Time
Redeemed stringLess Than
- id String
- The provider-assigned unique ID for this managed resource.
- redemption
Collections List<GetSubscription Redemptions Redemption Collection> - The list of redemption_collection.
- subscription
Id String - tenancy
Id String - filters
List<Get
Subscription Redemptions Filter> - time
Redeemed StringGreater Than Or Equal To - time
Redeemed StringLess Than
- id string
- The provider-assigned unique ID for this managed resource.
- redemption
Collections GetSubscription Redemptions Redemption Collection[] - The list of redemption_collection.
- subscription
Id string - tenancy
Id string - filters
Get
Subscription Redemptions Filter[] - time
Redeemed stringGreater Than Or Equal To - time
Redeemed stringLess Than
- id str
- The provider-assigned unique ID for this managed resource.
- redemption_
collections Sequence[usageproxy.Get Subscription Redemptions Redemption Collection] - The list of redemption_collection.
- subscription_
id str - tenancy_
id str - filters
Sequence[usageproxy.
Get Subscription Redemptions Filter] - time_
redeemed_ strgreater_ than_ or_ equal_ to - time_
redeemed_ strless_ than
- id String
- The provider-assigned unique ID for this managed resource.
- redemption
Collections List<Property Map> - The list of redemption_collection.
- subscription
Id String - tenancy
Id String - filters List<Property Map>
- time
Redeemed StringGreater Than Or Equal To - time
Redeemed StringLess Than
Supporting Types
GetSubscriptionRedemptionsFilter
GetSubscriptionRedemptionsRedemptionCollection
- Items
List<Get
Subscription Redemptions Redemption Collection Item> - The list of redemption summary.
- Items
[]Get
Subscription Redemptions Redemption Collection Item - The list of redemption summary.
- items
List<Get
Subscription Redemptions Redemption Collection Item> - The list of redemption summary.
- items
Get
Subscription Redemptions Redemption Collection Item[] - The list of redemption summary.
- items
Sequence[usageproxy.
Get Subscription Redemptions Redemption Collection Item] - The list of redemption summary.
- items List<Property Map>
- The list of redemption summary.
GetSubscriptionRedemptionsRedemptionCollectionItem
- Items
List<Get
Subscription Redemptions Redemption Collection Item Item> - The list of redemption summary.
- Items
[]Get
Subscription Redemptions Redemption Collection Item Item - The list of redemption summary.
- items
List<Get
Subscription Redemptions Redemption Collection Item Item> - The list of redemption summary.
- items
Get
Subscription Redemptions Redemption Collection Item Item[] - The list of redemption summary.
- items
Sequence[usageproxy.
Get Subscription Redemptions Redemption Collection Item Item] - The list of redemption summary.
- items List<Property Map>
- The list of redemption summary.
GetSubscriptionRedemptionsRedemptionCollectionItemItem
- Base
Rewards double - It provides the redeemed rewards in base/subscription currency.
- Fx
Rate double - It provides the fxRate between invoice currency and subscription currency.
- Invoice
Currency string - The currency associated with invoice.
- Invoice
Number string - It provides the invoice number against the redemption.
- Invoice
Total doubleAmount - It provides the invoice total amount of given redemption.
- Redeemed
Rewards double - It provides the redeemed rewards in invoice currency.
- Redemption
Code string - The redemption code used in the Billing Center during the reward redemption process.
- Redemption
Email string - It provides the redemption email id.
- Time
Invoiced string - It provides the invoice date.
- Time
Redeemed string - It provides redeem date.
- Base
Rewards float64 - It provides the redeemed rewards in base/subscription currency.
- Fx
Rate float64 - It provides the fxRate between invoice currency and subscription currency.
- Invoice
Currency string - The currency associated with invoice.
- Invoice
Number string - It provides the invoice number against the redemption.
- Invoice
Total float64Amount - It provides the invoice total amount of given redemption.
- Redeemed
Rewards float64 - It provides the redeemed rewards in invoice currency.
- Redemption
Code string - The redemption code used in the Billing Center during the reward redemption process.
- Redemption
Email string - It provides the redemption email id.
- Time
Invoiced string - It provides the invoice date.
- Time
Redeemed string - It provides redeem date.
- base
Rewards Double - It provides the redeemed rewards in base/subscription currency.
- fx
Rate Double - It provides the fxRate between invoice currency and subscription currency.
- invoice
Currency String - The currency associated with invoice.
- invoice
Number String - It provides the invoice number against the redemption.
- invoice
Total DoubleAmount - It provides the invoice total amount of given redemption.
- redeemed
Rewards Double - It provides the redeemed rewards in invoice currency.
- redemption
Code String - The redemption code used in the Billing Center during the reward redemption process.
- redemption
Email String - It provides the redemption email id.
- time
Invoiced String - It provides the invoice date.
- time
Redeemed String - It provides redeem date.
- base
Rewards number - It provides the redeemed rewards in base/subscription currency.
- fx
Rate number - It provides the fxRate between invoice currency and subscription currency.
- invoice
Currency string - The currency associated with invoice.
- invoice
Number string - It provides the invoice number against the redemption.
- invoice
Total numberAmount - It provides the invoice total amount of given redemption.
- redeemed
Rewards number - It provides the redeemed rewards in invoice currency.
- redemption
Code string - The redemption code used in the Billing Center during the reward redemption process.
- redemption
Email string - It provides the redemption email id.
- time
Invoiced string - It provides the invoice date.
- time
Redeemed string - It provides redeem date.
- base_
rewards float - It provides the redeemed rewards in base/subscription currency.
- fx_
rate float - It provides the fxRate between invoice currency and subscription currency.
- invoice_
currency str - The currency associated with invoice.
- invoice_
number str - It provides the invoice number against the redemption.
- invoice_
total_ floatamount - It provides the invoice total amount of given redemption.
- redeemed_
rewards float - It provides the redeemed rewards in invoice currency.
- redemption_
code str - The redemption code used in the Billing Center during the reward redemption process.
- redemption_
email str - It provides the redemption email id.
- time_
invoiced str - It provides the invoice date.
- time_
redeemed str - It provides redeem date.
- base
Rewards Number - It provides the redeemed rewards in base/subscription currency.
- fx
Rate Number - It provides the fxRate between invoice currency and subscription currency.
- invoice
Currency String - The currency associated with invoice.
- invoice
Number String - It provides the invoice number against the redemption.
- invoice
Total NumberAmount - It provides the invoice total amount of given redemption.
- redeemed
Rewards Number - It provides the redeemed rewards in invoice currency.
- redemption
Code String - The redemption code used in the Billing Center during the reward redemption process.
- redemption
Email String - It provides the redemption email id.
- time
Invoiced String - It provides the invoice date.
- time
Redeemed String - It provides redeem date.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi