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

oci.MeteringComputation.getUsageStatementEmailRecipientsGroups

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 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[_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]
    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:MeteringComputation/getUsageStatementEmailRecipientsGroups:getUsageStatementEmailRecipientsGroups
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The compartment ID in which to list resources.
    SubscriptionId string
    The UsageStatement Subscription unique OCID.
    Filters List<GetUsageStatementEmailRecipientsGroupsFilter>
    CompartmentId string
    The compartment ID in which to list resources.
    SubscriptionId string
    The UsageStatement Subscription unique OCID.
    Filters []GetUsageStatementEmailRecipientsGroupsFilter
    compartmentId String
    The compartment ID in which to list resources.
    subscriptionId String
    The UsageStatement Subscription unique OCID.
    filters List<GetUsageStatementEmailRecipientsGroupsFilter>
    compartmentId string
    The compartment ID in which to list resources.
    subscriptionId string
    The UsageStatement Subscription unique OCID.
    filters GetUsageStatementEmailRecipientsGroupsFilter[]
    compartment_id str
    The compartment ID in which to list resources.
    subscription_id str
    The UsageStatement Subscription unique OCID.
    filters Sequence[meteringcomputation.GetUsageStatementEmailRecipientsGroupsFilter]
    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.
    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

    GetUsageStatementEmailRecipientsGroupsEmailRecipientsGroupCollectionItem

    CompartmentId string
    The compartment ID in which to list resources.
    EmailRecipientsGroupId string
    Id string
    The usage statement email recipients group OCID.
    RecipientsLists List<GetUsageStatementEmailRecipientsGroupsEmailRecipientsGroupCollectionItemRecipientsList>
    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.
    EmailRecipientsGroupId string
    Id string
    The usage statement email recipients group OCID.
    RecipientsLists []GetUsageStatementEmailRecipientsGroupsEmailRecipientsGroupCollectionItemRecipientsList
    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.
    emailRecipientsGroupId String
    id String
    The usage statement email recipients group OCID.
    recipientsLists List<GetUsageStatementEmailRecipientsGroupsEmailRecipientsGroupCollectionItemRecipientsList>
    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.
    emailRecipientsGroupId string
    id string
    The usage statement email recipients group OCID.
    recipientsLists GetUsageStatementEmailRecipientsGroupsEmailRecipientsGroupCollectionItemRecipientsList[]
    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_group_id str
    id str
    The usage statement email recipients group OCID.
    recipients_lists Sequence[meteringcomputation.GetUsageStatementEmailRecipientsGroupsEmailRecipientsGroupCollectionItemRecipientsList]
    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.
    emailRecipientsGroupId String
    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

    EmailId string
    the email of the recipient.
    FirstName string
    the first name of the recipient.
    LastName string
    the last name of the recipient.
    State string
    The email recipient group lifecycle state.
    EmailId string
    the email of the recipient.
    FirstName string
    the first name of the recipient.
    LastName string
    the last name of the recipient.
    State string
    The email recipient group lifecycle state.
    emailId String
    the email of the recipient.
    firstName String
    the first name of the recipient.
    lastName String
    the last name of the recipient.
    state String
    The email recipient group lifecycle state.
    emailId string
    the email of the recipient.
    firstName string
    the first name of the recipient.
    lastName string
    the last name of the recipient.
    state string
    The email recipient group lifecycle state.
    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.
    emailId String
    the email of the recipient.
    firstName String
    the first name of the recipient.
    lastName String
    the last name of the recipient.
    state String
    The email recipient group lifecycle state.

    GetUsageStatementEmailRecipientsGroupsFilter

    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

    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