1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. MeteringComputation
  5. getUsageStatementEmailRecipientsGroups
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 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,
});
Copy
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"])
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
variables:
  testUsageStatementEmailRecipientsGroups:
    fn::invoke:
      function: oci:MeteringComputation:getUsageStatementEmailRecipientsGroups
      arguments:
        compartmentId: ${compartmentId}
        subscriptionId: ${testSubscription.id}
Copy

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>
Copy
def get_usage_statement_email_recipients_groups(compartment_id: Optional[str] = None,
                                                filters: Optional[Sequence[_meteringcomputation.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[_meteringcomputation.GetUsageStatementEmailRecipientsGroupsFilterArgs]]]] = None,
                                                subscription_id: Optional[pulumi.Input[str]] = None,
                                                opts: Optional[InvokeOptions] = None) -> Output[GetUsageStatementEmailRecipientsGroupsResult]
Copy
func GetUsageStatementEmailRecipientsGroups(ctx *Context, args *GetUsageStatementEmailRecipientsGroupsArgs, opts ...InvokeOption) (*GetUsageStatementEmailRecipientsGroupsResult, error)
func GetUsageStatementEmailRecipientsGroupsOutput(ctx *Context, args *GetUsageStatementEmailRecipientsGroupsOutputArgs, opts ...InvokeOption) GetUsageStatementEmailRecipientsGroupsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetUsageStatementEmailRecipientsGroupsResult> getUsageStatementEmailRecipientsGroups(GetUsageStatementEmailRecipientsGroupsArgs args, InvokeOptions options)
public static Output<GetUsageStatementEmailRecipientsGroupsResult> getUsageStatementEmailRecipientsGroups(GetUsageStatementEmailRecipientsGroupsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:MeteringComputation/getUsageStatementEmailRecipientsGroups:getUsageStatementEmailRecipientsGroups
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. string
The compartment ID in which to list resources.
SubscriptionId This property is required. string
The UsageStatement Subscription unique OCID.
Filters Changes to this property will trigger replacement. List<GetUsageStatementEmailRecipientsGroupsFilter>
CompartmentId This property is required. string
The compartment ID in which to list resources.
SubscriptionId This property is required. string
The UsageStatement Subscription unique OCID.
Filters Changes to this property will trigger replacement. []GetUsageStatementEmailRecipientsGroupsFilter
compartmentId This property is required. String
The compartment ID in which to list resources.
subscriptionId This property is required. String
The UsageStatement Subscription unique OCID.
filters Changes to this property will trigger replacement. List<GetUsageStatementEmailRecipientsGroupsFilter>
compartmentId This property is required. string
The compartment ID in which to list resources.
subscriptionId This property is required. string
The UsageStatement Subscription unique OCID.
filters Changes to this property will trigger replacement. GetUsageStatementEmailRecipientsGroupsFilter[]
compartment_id This property is required. str
The compartment ID in which to list resources.
subscription_id This property is required. str
The UsageStatement Subscription unique OCID.
filters Changes to this property will trigger replacement. Sequence[meteringcomputation.GetUsageStatementEmailRecipientsGroupsFilter]
compartmentId This property is required. String
The compartment ID in which to list resources.
subscriptionId This property is required. String
The UsageStatement Subscription unique OCID.
filters Changes to this property will trigger replacement. List<Property Map>

getUsageStatementEmailRecipientsGroups Result

The following output properties are available:

CompartmentId string
The customer tenancy OCID.
EmailRecipientsGroupCollections List<GetUsageStatementEmailRecipientsGroupsEmailRecipientsGroupCollection>
The list of email_recipients_group_collection.
Id string
The provider-assigned unique ID for this managed resource.
SubscriptionId string
Filters List<GetUsageStatementEmailRecipientsGroupsFilter>
CompartmentId string
The customer tenancy OCID.
EmailRecipientsGroupCollections []GetUsageStatementEmailRecipientsGroupsEmailRecipientsGroupCollection
The list of email_recipients_group_collection.
Id string
The provider-assigned unique ID for this managed resource.
SubscriptionId string
Filters []GetUsageStatementEmailRecipientsGroupsFilter
compartmentId String
The customer tenancy OCID.
emailRecipientsGroupCollections List<GetUsageStatementEmailRecipientsGroupsEmailRecipientsGroupCollection>
The list of email_recipients_group_collection.
id String
The provider-assigned unique ID for this managed resource.
subscriptionId String
filters List<GetUsageStatementEmailRecipientsGroupsFilter>
compartmentId string
The customer tenancy OCID.
emailRecipientsGroupCollections GetUsageStatementEmailRecipientsGroupsEmailRecipientsGroupCollection[]
The list of email_recipients_group_collection.
id string
The provider-assigned unique ID for this managed resource.
subscriptionId string
filters GetUsageStatementEmailRecipientsGroupsFilter[]
compartmentId String
The customer tenancy OCID.
emailRecipientsGroupCollections List<Property Map>
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

items This property is required. List<Property Map>

GetUsageStatementEmailRecipientsGroupsEmailRecipientsGroupCollectionItem

CompartmentId This property is required. string
The compartment ID in which to list resources.
EmailRecipientsGroupId This property is required. string
Id This property is required. string
The usage statement email recipients group OCID.
RecipientsLists This property is required. List<GetUsageStatementEmailRecipientsGroupsEmailRecipientsGroupCollectionItemRecipientsList>
The list of recipient will receive the usage statement email.
State This property is required. string
The email recipient group lifecycle state.
SubscriptionId This property is required. string
The UsageStatement Subscription unique OCID.
CompartmentId This property is required. string
The compartment ID in which to list resources.
EmailRecipientsGroupId This property is required. string
Id This property is required. string
The usage statement email recipients group OCID.
RecipientsLists This property is required. []GetUsageStatementEmailRecipientsGroupsEmailRecipientsGroupCollectionItemRecipientsList
The list of recipient will receive the usage statement email.
State This property is required. string
The email recipient group lifecycle state.
SubscriptionId This property is required. string
The UsageStatement Subscription unique OCID.
compartmentId This property is required. String
The compartment ID in which to list resources.
emailRecipientsGroupId This property is required. String
id This property is required. String
The usage statement email recipients group OCID.
recipientsLists This property is required. List<GetUsageStatementEmailRecipientsGroupsEmailRecipientsGroupCollectionItemRecipientsList>
The list of recipient will receive the usage statement email.
state This property is required. String
The email recipient group lifecycle state.
subscriptionId This property is required. String
The UsageStatement Subscription unique OCID.
compartmentId This property is required. string
The compartment ID in which to list resources.
emailRecipientsGroupId This property is required. string
id This property is required. string
The usage statement email recipients group OCID.
recipientsLists This property is required. GetUsageStatementEmailRecipientsGroupsEmailRecipientsGroupCollectionItemRecipientsList[]
The list of recipient will receive the usage statement email.
state This property is required. string
The email recipient group lifecycle state.
subscriptionId This property is required. string
The UsageStatement Subscription unique OCID.
compartment_id This property is required. str
The compartment ID in which to list resources.
email_recipients_group_id This property is required. str
id This property is required. str
The usage statement email recipients group OCID.
recipients_lists This property is required. Sequence[meteringcomputation.GetUsageStatementEmailRecipientsGroupsEmailRecipientsGroupCollectionItemRecipientsList]
The list of recipient will receive the usage statement email.
state This property is required. str
The email recipient group lifecycle state.
subscription_id This property is required. str
The UsageStatement Subscription unique OCID.
compartmentId This property is required. String
The compartment ID in which to list resources.
emailRecipientsGroupId This property is required. String
id This property is required. String
The usage statement email recipients group OCID.
recipientsLists This property is required. List<Property Map>
The list of recipient will receive the usage statement email.
state This property is required. String
The email recipient group lifecycle state.
subscriptionId This property is required. String
The UsageStatement Subscription unique OCID.

GetUsageStatementEmailRecipientsGroupsEmailRecipientsGroupCollectionItemRecipientsList

EmailId This property is required. string
the email of the recipient.
FirstName This property is required. string
the first name of the recipient.
LastName This property is required. string
the last name of the recipient.
State This property is required. string
The email recipient group lifecycle state.
EmailId This property is required. string
the email of the recipient.
FirstName This property is required. string
the first name of the recipient.
LastName This property is required. string
the last name of the recipient.
State This property is required. string
The email recipient group lifecycle state.
emailId This property is required. String
the email of the recipient.
firstName This property is required. String
the first name of the recipient.
lastName This property is required. String
the last name of the recipient.
state This property is required. String
The email recipient group lifecycle state.
emailId This property is required. string
the email of the recipient.
firstName This property is required. string
the first name of the recipient.
lastName This property is required. string
the last name of the recipient.
state This property is required. string
The email recipient group lifecycle state.
email_id This property is required. str
the email of the recipient.
first_name This property is required. str
the first name of the recipient.
last_name This property is required. str
the last name of the recipient.
state This property is required. str
The email recipient group lifecycle state.
emailId This property is required. String
the email of the recipient.
firstName This property is required. String
the first name of the recipient.
lastName This property is required. String
the last name of the recipient.
state This property is required. String
The email recipient group lifecycle state.

GetUsageStatementEmailRecipientsGroupsFilter

Name This property is required. string
Values This property is required. List<string>
Regex bool
Name This property is required. string
Values This property is required. []string
Regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean
name This property is required. string
values This property is required. string[]
regex boolean
name This property is required. str
values This property is required. Sequence[str]
regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.