Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.UsageProxy.getSubscriptionRedeemableUser
Explore with Pulumi AI
This data source provides details about a specific Subscription Redeemable User resource in Oracle Cloud Infrastructure Usage Proxy service.
Provides the list of user summary that can redeem rewards for the given subscription ID.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSubscriptionRedeemableUser = oci.UsageProxy.getSubscriptionRedeemableUser({
    subscriptionId: testSubscription.id,
    tenancyId: testTenancy.id,
});
import pulumi
import pulumi_oci as oci
test_subscription_redeemable_user = oci.UsageProxy.get_subscription_redeemable_user(subscription_id=test_subscription["id"],
    tenancy_id=test_tenancy["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/usageproxy"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := usageproxy.GetSubscriptionRedeemableUser(ctx, &usageproxy.GetSubscriptionRedeemableUserArgs{
			SubscriptionId: testSubscription.Id,
			TenancyId:      testTenancy.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 testSubscriptionRedeemableUser = Oci.UsageProxy.GetSubscriptionRedeemableUser.Invoke(new()
    {
        SubscriptionId = testSubscription.Id,
        TenancyId = testTenancy.Id,
    });
});
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.GetSubscriptionRedeemableUserArgs;
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 testSubscriptionRedeemableUser = UsageProxyFunctions.getSubscriptionRedeemableUser(GetSubscriptionRedeemableUserArgs.builder()
            .subscriptionId(testSubscription.id())
            .tenancyId(testTenancy.id())
            .build());
    }
}
variables:
  testSubscriptionRedeemableUser:
    fn::invoke:
      function: oci:UsageProxy:getSubscriptionRedeemableUser
      arguments:
        subscriptionId: ${testSubscription.id}
        tenancyId: ${testTenancy.id}
Using getSubscriptionRedeemableUser
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 getSubscriptionRedeemableUser(args: GetSubscriptionRedeemableUserArgs, opts?: InvokeOptions): Promise<GetSubscriptionRedeemableUserResult>
function getSubscriptionRedeemableUserOutput(args: GetSubscriptionRedeemableUserOutputArgs, opts?: InvokeOptions): Output<GetSubscriptionRedeemableUserResult>def get_subscription_redeemable_user(subscription_id: Optional[str] = None,
                                     tenancy_id: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetSubscriptionRedeemableUserResult
def get_subscription_redeemable_user_output(subscription_id: Optional[pulumi.Input[str]] = None,
                                     tenancy_id: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetSubscriptionRedeemableUserResult]func LookupSubscriptionRedeemableUser(ctx *Context, args *LookupSubscriptionRedeemableUserArgs, opts ...InvokeOption) (*LookupSubscriptionRedeemableUserResult, error)
func LookupSubscriptionRedeemableUserOutput(ctx *Context, args *LookupSubscriptionRedeemableUserOutputArgs, opts ...InvokeOption) LookupSubscriptionRedeemableUserResultOutput> Note: This function is named LookupSubscriptionRedeemableUser in the Go SDK.
public static class GetSubscriptionRedeemableUser 
{
    public static Task<GetSubscriptionRedeemableUserResult> InvokeAsync(GetSubscriptionRedeemableUserArgs args, InvokeOptions? opts = null)
    public static Output<GetSubscriptionRedeemableUserResult> Invoke(GetSubscriptionRedeemableUserInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSubscriptionRedeemableUserResult> getSubscriptionRedeemableUser(GetSubscriptionRedeemableUserArgs args, InvokeOptions options)
public static Output<GetSubscriptionRedeemableUserResult> getSubscriptionRedeemableUser(GetSubscriptionRedeemableUserArgs args, InvokeOptions options)
fn::invoke:
  function: oci:UsageProxy/getSubscriptionRedeemableUser:getSubscriptionRedeemableUser
  arguments:
    # arguments dictionaryThe following arguments are supported:
- SubscriptionId string
- The subscription ID for which rewards information is requested for.
- TenancyId string
- The OCID of the tenancy.
- SubscriptionId string
- The subscription ID for which rewards information is requested for.
- TenancyId string
- The OCID of the tenancy.
- subscriptionId String
- The subscription ID for which rewards information is requested for.
- tenancyId String
- The OCID of the tenancy.
- subscriptionId string
- The subscription ID for which rewards information is requested for.
- tenancyId string
- The OCID of the tenancy.
- subscription_id str
- The subscription ID for which rewards information is requested for.
- tenancy_id str
- The OCID of the tenancy.
- subscriptionId String
- The subscription ID for which rewards information is requested for.
- tenancyId String
- The OCID of the tenancy.
getSubscriptionRedeemableUser Result
The following output properties are available:
- Id string
- Items
List<GetSubscription Redeemable User Item> 
- The list of user summary that can redeem rewards.
- SubscriptionId string
- TenancyId string
- UserId string
- Id string
- Items
[]GetSubscription Redeemable User Item 
- The list of user summary that can redeem rewards.
- SubscriptionId string
- TenancyId string
- UserId string
- id String
- items
List<GetSubscription Redeemable User Item> 
- The list of user summary that can redeem rewards.
- subscriptionId String
- tenancyId String
- userId String
- id string
- items
GetSubscription Redeemable User Item[] 
- The list of user summary that can redeem rewards.
- subscriptionId string
- tenancyId string
- userId string
- id str
- items
Sequence[GetSubscription Redeemable User Item] 
- The list of user summary that can redeem rewards.
- subscription_id str
- tenancy_id str
- user_id str
- id String
- items List<Property Map>
- The list of user summary that can redeem rewards.
- subscriptionId String
- tenancyId String
- userId String
Supporting Types
GetSubscriptionRedeemableUserItem    
- email_id str
- The email ID of the user that can redeem rewards.
- first_name str
- The first name of the user that can redeem rewards.
- last_name str
- The last name of the user that can redeem rewards.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.