1. Packages
  2. Alicloud Provider
  3. API Docs
  4. cms
  5. getAlarmContactGroups
Alibaba Cloud v3.63.0 published on Monday, Sep 30, 2024 by Pulumi

alicloud.cms.getAlarmContactGroups

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.63.0 published on Monday, Sep 30, 2024 by Pulumi

    This data source provides the CMS Groups of the current Alibaba Cloud user.

    NOTE: Available in v1.101.0+.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const example = alicloud.cms.getAlarmContactGroups({
        nameRegex: "tf-testacc",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    example = alicloud.cms.get_alarm_contact_groups(name_regex="tf-testacc")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cms"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cms.GetAlarmContactGroups(ctx, &cms.GetAlarmContactGroupsArgs{
    			NameRegex: pulumi.StringRef("tf-testacc"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = AliCloud.Cms.GetAlarmContactGroups.Invoke(new()
        {
            NameRegex = "tf-testacc",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.cms.CmsFunctions;
    import com.pulumi.alicloud.cms.inputs.GetAlarmContactGroupsArgs;
    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 example = CmsFunctions.getAlarmContactGroups(GetAlarmContactGroupsArgs.builder()
                .nameRegex("tf-testacc")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: alicloud:cms:getAlarmContactGroups
          Arguments:
            nameRegex: tf-testacc
    

    Using getAlarmContactGroups

    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 getAlarmContactGroups(args: GetAlarmContactGroupsArgs, opts?: InvokeOptions): Promise<GetAlarmContactGroupsResult>
    function getAlarmContactGroupsOutput(args: GetAlarmContactGroupsOutputArgs, opts?: InvokeOptions): Output<GetAlarmContactGroupsResult>
    def get_alarm_contact_groups(ids: Optional[Sequence[str]] = None,
                                 name_regex: Optional[str] = None,
                                 output_file: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetAlarmContactGroupsResult
    def get_alarm_contact_groups_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                 name_regex: Optional[pulumi.Input[str]] = None,
                                 output_file: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetAlarmContactGroupsResult]
    func GetAlarmContactGroups(ctx *Context, args *GetAlarmContactGroupsArgs, opts ...InvokeOption) (*GetAlarmContactGroupsResult, error)
    func GetAlarmContactGroupsOutput(ctx *Context, args *GetAlarmContactGroupsOutputArgs, opts ...InvokeOption) GetAlarmContactGroupsResultOutput

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

    public static class GetAlarmContactGroups 
    {
        public static Task<GetAlarmContactGroupsResult> InvokeAsync(GetAlarmContactGroupsArgs args, InvokeOptions? opts = null)
        public static Output<GetAlarmContactGroupsResult> Invoke(GetAlarmContactGroupsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAlarmContactGroupsResult> getAlarmContactGroups(GetAlarmContactGroupsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:cms/getAlarmContactGroups:getAlarmContactGroups
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Ids List<string>
    A list of Alarm Contact Group IDs.
    NameRegex string
    A regex string to filter results by Alarm Contact Group name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Ids []string
    A list of Alarm Contact Group IDs.
    NameRegex string
    A regex string to filter results by Alarm Contact Group name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    ids List<String>
    A list of Alarm Contact Group IDs.
    nameRegex String
    A regex string to filter results by Alarm Contact Group name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    ids string[]
    A list of Alarm Contact Group IDs.
    nameRegex string
    A regex string to filter results by Alarm Contact Group name.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    ids Sequence[str]
    A list of Alarm Contact Group IDs.
    name_regex str
    A regex string to filter results by Alarm Contact Group name.
    output_file str
    File name where to save data source results (after running pulumi preview).
    ids List<String>
    A list of Alarm Contact Group IDs.
    nameRegex String
    A regex string to filter results by Alarm Contact Group name.
    outputFile String
    File name where to save data source results (after running pulumi preview).

    getAlarmContactGroups Result

    The following output properties are available:

    Groups List<Pulumi.AliCloud.Cms.Outputs.GetAlarmContactGroupsGroup>
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    Names List<string>
    NameRegex string
    OutputFile string
    Groups []GetAlarmContactGroupsGroup
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    Names []string
    NameRegex string
    OutputFile string
    groups List<GetAlarmContactGroupsGroup>
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    names List<String>
    nameRegex String
    outputFile String
    groups GetAlarmContactGroupsGroup[]
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    names string[]
    nameRegex string
    outputFile string
    groups Sequence[GetAlarmContactGroupsGroup]
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    names Sequence[str]
    name_regex str
    output_file str
    groups List<Property Map>
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    names List<String>
    nameRegex String
    outputFile String

    Supporting Types

    GetAlarmContactGroupsGroup

    AlarmContactGroupName string
    The name of Alarm Contact Group.
    Contacts List<string>
    The alarm contacts in the alarm group.
    Describe string
    The description of the Alarm Group.
    EnableSubscribed bool
    Indicates whether the alarm group subscribes to weekly reports.
    Id string
    The ID of the CMS.
    AlarmContactGroupName string
    The name of Alarm Contact Group.
    Contacts []string
    The alarm contacts in the alarm group.
    Describe string
    The description of the Alarm Group.
    EnableSubscribed bool
    Indicates whether the alarm group subscribes to weekly reports.
    Id string
    The ID of the CMS.
    alarmContactGroupName String
    The name of Alarm Contact Group.
    contacts List<String>
    The alarm contacts in the alarm group.
    describe String
    The description of the Alarm Group.
    enableSubscribed Boolean
    Indicates whether the alarm group subscribes to weekly reports.
    id String
    The ID of the CMS.
    alarmContactGroupName string
    The name of Alarm Contact Group.
    contacts string[]
    The alarm contacts in the alarm group.
    describe string
    The description of the Alarm Group.
    enableSubscribed boolean
    Indicates whether the alarm group subscribes to weekly reports.
    id string
    The ID of the CMS.
    alarm_contact_group_name str
    The name of Alarm Contact Group.
    contacts Sequence[str]
    The alarm contacts in the alarm group.
    describe str
    The description of the Alarm Group.
    enable_subscribed bool
    Indicates whether the alarm group subscribes to weekly reports.
    id str
    The ID of the CMS.
    alarmContactGroupName String
    The name of Alarm Contact Group.
    contacts List<String>
    The alarm contacts in the alarm group.
    describe String
    The description of the Alarm Group.
    enableSubscribed Boolean
    Indicates whether the alarm group subscribes to weekly reports.
    id String
    The ID of the CMS.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.63.0 published on Monday, Sep 30, 2024 by Pulumi