Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.MeteringComputation.getUsageStatementEmailRecipientsGroups
Explore with Pulumi AI
This data source provides the list of Usage Statement Email Recipients Groups in Oracle Cloud Infrastructure Metering Computation service.
Return the saved usage statement email recipient group.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testUsageStatementEmailRecipientsGroups = oci.MeteringComputation.getUsageStatementEmailRecipientsGroups({
    compartmentId: compartmentId,
    subscriptionId: testSubscription.id,
});
import pulumi
import pulumi_oci as oci
test_usage_statement_email_recipients_groups = oci.MeteringComputation.get_usage_statement_email_recipients_groups(compartment_id=compartment_id,
    subscription_id=test_subscription["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/meteringcomputation"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := meteringcomputation.GetUsageStatementEmailRecipientsGroups(ctx, &meteringcomputation.GetUsageStatementEmailRecipientsGroupsArgs{
			CompartmentId:  compartmentId,
			SubscriptionId: testSubscription.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 testUsageStatementEmailRecipientsGroups = Oci.MeteringComputation.GetUsageStatementEmailRecipientsGroups.Invoke(new()
    {
        CompartmentId = compartmentId,
        SubscriptionId = testSubscription.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.MeteringComputation.MeteringComputationFunctions;
import com.pulumi.oci.MeteringComputation.inputs.GetUsageStatementEmailRecipientsGroupsArgs;
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 testUsageStatementEmailRecipientsGroups = MeteringComputationFunctions.getUsageStatementEmailRecipientsGroups(GetUsageStatementEmailRecipientsGroupsArgs.builder()
            .compartmentId(compartmentId)
            .subscriptionId(testSubscription.id())
            .build());
    }
}
variables:
  testUsageStatementEmailRecipientsGroups:
    fn::invoke:
      function: oci:MeteringComputation:getUsageStatementEmailRecipientsGroups
      arguments:
        compartmentId: ${compartmentId}
        subscriptionId: ${testSubscription.id}
Using getUsageStatementEmailRecipientsGroups
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 getUsageStatementEmailRecipientsGroups(args: GetUsageStatementEmailRecipientsGroupsArgs, opts?: InvokeOptions): Promise<GetUsageStatementEmailRecipientsGroupsResult>
function getUsageStatementEmailRecipientsGroupsOutput(args: GetUsageStatementEmailRecipientsGroupsOutputArgs, opts?: InvokeOptions): Output<GetUsageStatementEmailRecipientsGroupsResult>def get_usage_statement_email_recipients_groups(compartment_id: Optional[str] = None,
                                                filters: Optional[Sequence[GetUsageStatementEmailRecipientsGroupsFilter]] = None,
                                                subscription_id: Optional[str] = None,
                                                opts: Optional[InvokeOptions] = None) -> GetUsageStatementEmailRecipientsGroupsResult
def get_usage_statement_email_recipients_groups_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                                filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetUsageStatementEmailRecipientsGroupsFilterArgs]]]] = None,
                                                subscription_id: Optional[pulumi.Input[str]] = None,
                                                opts: Optional[InvokeOptions] = None) -> Output[GetUsageStatementEmailRecipientsGroupsResult]func GetUsageStatementEmailRecipientsGroups(ctx *Context, args *GetUsageStatementEmailRecipientsGroupsArgs, opts ...InvokeOption) (*GetUsageStatementEmailRecipientsGroupsResult, error)
func GetUsageStatementEmailRecipientsGroupsOutput(ctx *Context, args *GetUsageStatementEmailRecipientsGroupsOutputArgs, opts ...InvokeOption) GetUsageStatementEmailRecipientsGroupsResultOutput> Note: This function is named GetUsageStatementEmailRecipientsGroups in the Go SDK.
public static class GetUsageStatementEmailRecipientsGroups 
{
    public static Task<GetUsageStatementEmailRecipientsGroupsResult> InvokeAsync(GetUsageStatementEmailRecipientsGroupsArgs args, InvokeOptions? opts = null)
    public static Output<GetUsageStatementEmailRecipientsGroupsResult> Invoke(GetUsageStatementEmailRecipientsGroupsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetUsageStatementEmailRecipientsGroupsResult> getUsageStatementEmailRecipientsGroups(GetUsageStatementEmailRecipientsGroupsArgs args, InvokeOptions options)
public static Output<GetUsageStatementEmailRecipientsGroupsResult> getUsageStatementEmailRecipientsGroups(GetUsageStatementEmailRecipientsGroupsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:MeteringComputation/getUsageStatementEmailRecipientsGroups:getUsageStatementEmailRecipientsGroups
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The compartment ID in which to list resources.
- SubscriptionId string
- The UsageStatement Subscription unique OCID.
- Filters
List<GetUsage Statement Email Recipients Groups Filter> 
- CompartmentId string
- The compartment ID in which to list resources.
- SubscriptionId string
- The UsageStatement Subscription unique OCID.
- Filters
[]GetUsage Statement Email Recipients Groups Filter 
- compartmentId String
- The compartment ID in which to list resources.
- subscriptionId String
- The UsageStatement Subscription unique OCID.
- filters
List<GetUsage Statement Email Recipients Groups Filter> 
- compartmentId string
- The compartment ID in which to list resources.
- subscriptionId string
- The UsageStatement Subscription unique OCID.
- filters
GetUsage Statement Email Recipients Groups Filter[] 
- compartment_id str
- The compartment ID in which to list resources.
- subscription_id str
- The UsageStatement Subscription unique OCID.
- filters
Sequence[GetUsage Statement Email Recipients Groups Filter] 
- compartmentId String
- The compartment ID in which to list resources.
- subscriptionId String
- The UsageStatement Subscription unique OCID.
- filters List<Property Map>
getUsageStatementEmailRecipientsGroups Result
The following output properties are available:
- CompartmentId string
- The customer tenancy OCID.
- EmailRecipients List<GetGroup Collections Usage Statement Email Recipients Groups Email Recipients Group Collection> 
- The list of email_recipients_group_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- SubscriptionId string
- Filters
List<GetUsage Statement Email Recipients Groups Filter> 
- CompartmentId string
- The customer tenancy OCID.
- EmailRecipients []GetGroup Collections Usage Statement Email Recipients Groups Email Recipients Group Collection 
- The list of email_recipients_group_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- SubscriptionId string
- Filters
[]GetUsage Statement Email Recipients Groups Filter 
- compartmentId String
- The customer tenancy OCID.
- emailRecipients List<GetGroup Collections Usage Statement Email Recipients Groups Email Recipients Group Collection> 
- The list of email_recipients_group_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- subscriptionId String
- filters
List<GetUsage Statement Email Recipients Groups Filter> 
- compartmentId string
- The customer tenancy OCID.
- emailRecipients GetGroup Collections Usage Statement Email Recipients Groups Email Recipients Group Collection[] 
- The list of email_recipients_group_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- subscriptionId string
- filters
GetUsage Statement Email Recipients Groups Filter[] 
- compartment_id str
- The customer tenancy OCID.
- email_recipients_ Sequence[Getgroup_ collections Usage Statement Email Recipients Groups Email Recipients Group Collection] 
- The list of email_recipients_group_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- subscription_id str
- filters
Sequence[GetUsage Statement Email Recipients Groups Filter] 
- compartmentId String
- The customer tenancy OCID.
- emailRecipients List<Property Map>Group Collections 
- The list of email_recipients_group_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- subscriptionId String
- filters List<Property Map>
Supporting Types
GetUsageStatementEmailRecipientsGroupsEmailRecipientsGroupCollection         
GetUsageStatementEmailRecipientsGroupsEmailRecipientsGroupCollectionItem          
- CompartmentId string
- The compartment ID in which to list resources.
- EmailRecipients stringGroup Id 
- Id string
- The usage statement email recipients group OCID.
- RecipientsLists List<GetUsage Statement Email Recipients Groups Email Recipients Group Collection Item Recipients List> 
- The list of recipient will receive the usage statement email.
- State string
- The email recipient group lifecycle state.
- SubscriptionId string
- The UsageStatement Subscription unique OCID.
- CompartmentId string
- The compartment ID in which to list resources.
- EmailRecipients stringGroup Id 
- Id string
- The usage statement email recipients group OCID.
- RecipientsLists []GetUsage Statement Email Recipients Groups Email Recipients Group Collection Item Recipients List 
- The list of recipient will receive the usage statement email.
- State string
- The email recipient group lifecycle state.
- SubscriptionId string
- The UsageStatement Subscription unique OCID.
- compartmentId String
- The compartment ID in which to list resources.
- emailRecipients StringGroup Id 
- id String
- The usage statement email recipients group OCID.
- recipientsLists List<GetUsage Statement Email Recipients Groups Email Recipients Group Collection Item Recipients List> 
- The list of recipient will receive the usage statement email.
- state String
- The email recipient group lifecycle state.
- subscriptionId String
- The UsageStatement Subscription unique OCID.
- compartmentId string
- The compartment ID in which to list resources.
- emailRecipients stringGroup Id 
- id string
- The usage statement email recipients group OCID.
- recipientsLists GetUsage Statement Email Recipients Groups Email Recipients Group Collection Item Recipients List[] 
- The list of recipient will receive the usage statement email.
- state string
- The email recipient group lifecycle state.
- subscriptionId string
- The UsageStatement Subscription unique OCID.
- compartment_id str
- The compartment ID in which to list resources.
- email_recipients_ strgroup_ id 
- id str
- The usage statement email recipients group OCID.
- recipients_lists Sequence[GetUsage Statement Email Recipients Groups Email Recipients Group Collection Item Recipients List] 
- The list of recipient will receive the usage statement email.
- state str
- The email recipient group lifecycle state.
- subscription_id str
- The UsageStatement Subscription unique OCID.
- compartmentId String
- The compartment ID in which to list resources.
- emailRecipients StringGroup Id 
- id String
- The usage statement email recipients group OCID.
- recipientsLists List<Property Map>
- The list of recipient will receive the usage statement email.
- state String
- The email recipient group lifecycle state.
- subscriptionId String
- The UsageStatement Subscription unique OCID.
GetUsageStatementEmailRecipientsGroupsEmailRecipientsGroupCollectionItemRecipientsList            
- email_id str
- the email of the recipient.
- first_name str
- the first name of the recipient.
- last_name str
- the last name of the recipient.
- state str
- The email recipient group lifecycle state.
GetUsageStatementEmailRecipientsGroupsFilter      
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.