Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 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[_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:
- Compartment
Id string - The compartment ID in which to list resources.
- Subscription
Id string - The UsageStatement Subscription unique OCID.
- Filters
List<Get
Usage Statement Email Recipients Groups Filter>
- Compartment
Id string - The compartment ID in which to list resources.
- Subscription
Id string - The UsageStatement Subscription unique OCID.
- Filters
[]Get
Usage Statement Email Recipients Groups Filter
- compartment
Id String - The compartment ID in which to list resources.
- subscription
Id String - The UsageStatement Subscription unique OCID.
- filters
List<Get
Usage Statement Email Recipients Groups Filter>
- compartment
Id string - The compartment ID in which to list resources.
- subscription
Id string - The UsageStatement Subscription unique OCID.
- filters
Get
Usage 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[meteringcomputation.
Get Usage Statement Email Recipients Groups Filter]
- compartment
Id String - The compartment ID in which to list resources.
- subscription
Id String - The UsageStatement Subscription unique OCID.
- filters List<Property Map>
getUsageStatementEmailRecipientsGroups Result
The following output properties are available:
- Compartment
Id string - The customer tenancy OCID.
- Email
Recipients 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.
- Subscription
Id string - Filters
List<Get
Usage Statement Email Recipients Groups Filter>
- Compartment
Id string - The customer tenancy OCID.
- Email
Recipients []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.
- Subscription
Id string - Filters
[]Get
Usage Statement Email Recipients Groups Filter
- compartment
Id String - The customer tenancy OCID.
- email
Recipients 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.
- subscription
Id String - filters
List<Get
Usage Statement Email Recipients Groups Filter>
- compartment
Id string - The customer tenancy OCID.
- email
Recipients 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.
- subscription
Id string - filters
Get
Usage Statement Email Recipients Groups Filter[]
- compartment_
id str - The customer tenancy OCID.
- email_
recipients_ Sequence[meteringcomputation.group_ collections Get 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[meteringcomputation.
Get Usage Statement Email Recipients Groups Filter]
- compartment
Id String - The customer tenancy OCID.
- email
Recipients List<Property Map>Group Collections - The list of email_recipients_group_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- subscription
Id String - filters List<Property Map>
Supporting Types
GetUsageStatementEmailRecipientsGroupsEmailRecipientsGroupCollection
GetUsageStatementEmailRecipientsGroupsEmailRecipientsGroupCollectionItem
- Compartment
Id string - The compartment ID in which to list resources.
- Email
Recipients stringGroup Id - Id string
- The usage statement email recipients group OCID.
- Recipients
Lists 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.
- Subscription
Id string - The UsageStatement Subscription unique OCID.
- Compartment
Id string - The compartment ID in which to list resources.
- Email
Recipients stringGroup Id - Id string
- The usage statement email recipients group OCID.
- Recipients
Lists []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.
- Subscription
Id string - The UsageStatement Subscription unique OCID.
- compartment
Id String - The compartment ID in which to list resources.
- email
Recipients StringGroup Id - id String
- The usage statement email recipients group OCID.
- recipients
Lists 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.
- subscription
Id String - The UsageStatement Subscription unique OCID.
- compartment
Id string - The compartment ID in which to list resources.
- email
Recipients stringGroup Id - id string
- The usage statement email recipients group OCID.
- recipients
Lists 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.
- subscription
Id 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[meteringcomputation.Get Usage 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.
- compartment
Id String - The compartment ID in which to list resources.
- email
Recipients StringGroup Id - id String
- The usage statement email recipients group OCID.
- recipients
Lists List<Property Map> - The list of recipient will receive the usage statement email.
- state String
- The email recipient group lifecycle state.
- subscription
Id 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
oci
Terraform Provider.