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

oci.UsageProxy.getSubscriptionRedeemableUsers

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 Subscription Redeemable Users 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 testSubscriptionRedeemableUsers = oci.UsageProxy.getSubscriptionRedeemableUsers({
        subscriptionId: testSubscription.id,
        tenancyId: testTenancy.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_subscription_redeemable_users = oci.UsageProxy.get_subscription_redeemable_users(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.GetSubscriptionRedeemableUsers(ctx, &usageproxy.GetSubscriptionRedeemableUsersArgs{
    			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 testSubscriptionRedeemableUsers = Oci.UsageProxy.GetSubscriptionRedeemableUsers.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.GetSubscriptionRedeemableUsersArgs;
    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 testSubscriptionRedeemableUsers = UsageProxyFunctions.getSubscriptionRedeemableUsers(GetSubscriptionRedeemableUsersArgs.builder()
                .subscriptionId(testSubscription.id())
                .tenancyId(testTenancy.id())
                .build());
    
        }
    }
    
    variables:
      testSubscriptionRedeemableUsers:
        fn::invoke:
          Function: oci:UsageProxy:getSubscriptionRedeemableUsers
          Arguments:
            subscriptionId: ${testSubscription.id}
            tenancyId: ${testTenancy.id}
    

    Using getSubscriptionRedeemableUsers

    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 getSubscriptionRedeemableUsers(args: GetSubscriptionRedeemableUsersArgs, opts?: InvokeOptions): Promise<GetSubscriptionRedeemableUsersResult>
    function getSubscriptionRedeemableUsersOutput(args: GetSubscriptionRedeemableUsersOutputArgs, opts?: InvokeOptions): Output<GetSubscriptionRedeemableUsersResult>
    def get_subscription_redeemable_users(filters: Optional[Sequence[_usageproxy.GetSubscriptionRedeemableUsersFilter]] = None,
                                          subscription_id: Optional[str] = None,
                                          tenancy_id: Optional[str] = None,
                                          opts: Optional[InvokeOptions] = None) -> GetSubscriptionRedeemableUsersResult
    def get_subscription_redeemable_users_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_usageproxy.GetSubscriptionRedeemableUsersFilterArgs]]]] = None,
                                          subscription_id: Optional[pulumi.Input[str]] = None,
                                          tenancy_id: Optional[pulumi.Input[str]] = None,
                                          opts: Optional[InvokeOptions] = None) -> Output[GetSubscriptionRedeemableUsersResult]
    func GetSubscriptionRedeemableUsers(ctx *Context, args *GetSubscriptionRedeemableUsersArgs, opts ...InvokeOption) (*GetSubscriptionRedeemableUsersResult, error)
    func GetSubscriptionRedeemableUsersOutput(ctx *Context, args *GetSubscriptionRedeemableUsersOutputArgs, opts ...InvokeOption) GetSubscriptionRedeemableUsersResultOutput

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

    public static class GetSubscriptionRedeemableUsers 
    {
        public static Task<GetSubscriptionRedeemableUsersResult> InvokeAsync(GetSubscriptionRedeemableUsersArgs args, InvokeOptions? opts = null)
        public static Output<GetSubscriptionRedeemableUsersResult> Invoke(GetSubscriptionRedeemableUsersInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSubscriptionRedeemableUsersResult> getSubscriptionRedeemableUsers(GetSubscriptionRedeemableUsersArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:UsageProxy/getSubscriptionRedeemableUsers:getSubscriptionRedeemableUsers
      arguments:
        # arguments dictionary

    The following arguments are supported:

    SubscriptionId string
    The subscription ID for which rewards information is requested for.
    TenancyId string
    The OCID of the tenancy.
    Filters List<GetSubscriptionRedeemableUsersFilter>
    SubscriptionId string
    The subscription ID for which rewards information is requested for.
    TenancyId string
    The OCID of the tenancy.
    Filters []GetSubscriptionRedeemableUsersFilter
    subscriptionId String
    The subscription ID for which rewards information is requested for.
    tenancyId String
    The OCID of the tenancy.
    filters List<GetSubscriptionRedeemableUsersFilter>
    subscriptionId string
    The subscription ID for which rewards information is requested for.
    tenancyId string
    The OCID of the tenancy.
    filters GetSubscriptionRedeemableUsersFilter[]
    subscription_id str
    The subscription ID for which rewards information is requested for.
    tenancy_id str
    The OCID of the tenancy.
    filters Sequence[usageproxy.GetSubscriptionRedeemableUsersFilter]
    subscriptionId String
    The subscription ID for which rewards information is requested for.
    tenancyId String
    The OCID of the tenancy.
    filters List<Property Map>

    getSubscriptionRedeemableUsers Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    RedeemableUserCollections List<GetSubscriptionRedeemableUsersRedeemableUserCollection>
    The list of redeemable_user_collection.
    SubscriptionId string
    TenancyId string
    Filters List<GetSubscriptionRedeemableUsersFilter>
    Id string
    The provider-assigned unique ID for this managed resource.
    RedeemableUserCollections []GetSubscriptionRedeemableUsersRedeemableUserCollection
    The list of redeemable_user_collection.
    SubscriptionId string
    TenancyId string
    Filters []GetSubscriptionRedeemableUsersFilter
    id String
    The provider-assigned unique ID for this managed resource.
    redeemableUserCollections List<GetSubscriptionRedeemableUsersRedeemableUserCollection>
    The list of redeemable_user_collection.
    subscriptionId String
    tenancyId String
    filters List<GetSubscriptionRedeemableUsersFilter>
    id string
    The provider-assigned unique ID for this managed resource.
    redeemableUserCollections GetSubscriptionRedeemableUsersRedeemableUserCollection[]
    The list of redeemable_user_collection.
    subscriptionId string
    tenancyId string
    filters GetSubscriptionRedeemableUsersFilter[]
    id String
    The provider-assigned unique ID for this managed resource.
    redeemableUserCollections List<Property Map>
    The list of redeemable_user_collection.
    subscriptionId String
    tenancyId String
    filters List<Property Map>

    Supporting Types

    GetSubscriptionRedeemableUsersFilter

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

    GetSubscriptionRedeemableUsersRedeemableUserCollection

    Items List<GetSubscriptionRedeemableUsersRedeemableUserCollectionItem>
    The list of user summary that can redeem rewards.
    Items []GetSubscriptionRedeemableUsersRedeemableUserCollectionItem
    The list of user summary that can redeem rewards.
    items List<GetSubscriptionRedeemableUsersRedeemableUserCollectionItem>
    The list of user summary that can redeem rewards.
    items GetSubscriptionRedeemableUsersRedeemableUserCollectionItem[]
    The list of user summary that can redeem rewards.
    items List<Property Map>
    The list of user summary that can redeem rewards.

    GetSubscriptionRedeemableUsersRedeemableUserCollectionItem

    Items List<GetSubscriptionRedeemableUsersRedeemableUserCollectionItemItem>
    The list of user summary that can redeem rewards.
    SubscriptionId string
    The subscription ID for which rewards information is requested for.
    TenancyId string
    The OCID of the tenancy.
    UserId string
    Items []GetSubscriptionRedeemableUsersRedeemableUserCollectionItemItem
    The list of user summary that can redeem rewards.
    SubscriptionId string
    The subscription ID for which rewards information is requested for.
    TenancyId string
    The OCID of the tenancy.
    UserId string
    items List<GetSubscriptionRedeemableUsersRedeemableUserCollectionItemItem>
    The list of user summary that can redeem rewards.
    subscriptionId String
    The subscription ID for which rewards information is requested for.
    tenancyId String
    The OCID of the tenancy.
    userId String
    items GetSubscriptionRedeemableUsersRedeemableUserCollectionItemItem[]
    The list of user summary that can redeem rewards.
    subscriptionId string
    The subscription ID for which rewards information is requested for.
    tenancyId string
    The OCID of the tenancy.
    userId string
    items Sequence[usageproxy.GetSubscriptionRedeemableUsersRedeemableUserCollectionItemItem]
    The list of user summary that can redeem rewards.
    subscription_id str
    The subscription ID for which rewards information is requested for.
    tenancy_id str
    The OCID of the tenancy.
    user_id str
    items List<Property Map>
    The list of user summary that can redeem rewards.
    subscriptionId String
    The subscription ID for which rewards information is requested for.
    tenancyId String
    The OCID of the tenancy.
    userId String

    GetSubscriptionRedeemableUsersRedeemableUserCollectionItemItem

    EmailId string
    The email ID of the user that can redeem rewards.
    FirstName string
    The first name of the user that can redeem rewards.
    LastName string
    The last name of the user that can redeem rewards.
    EmailId string
    The email ID of the user that can redeem rewards.
    FirstName string
    The first name of the user that can redeem rewards.
    LastName string
    The last name of the user that can redeem rewards.
    emailId String
    The email ID of the user that can redeem rewards.
    firstName String
    The first name of the user that can redeem rewards.
    lastName String
    The last name of the user that can redeem rewards.
    emailId string
    The email ID of the user that can redeem rewards.
    firstName string
    The first name of the user that can redeem rewards.
    lastName string
    The last name of the user that can redeem rewards.
    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.
    emailId String
    The email ID of the user that can redeem rewards.
    firstName String
    The first name of the user that can redeem rewards.
    lastName String
    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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi