Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi
alicloud.cms.getAlarmContactGroups
Explore with Pulumi AI
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 dictionaryThe following arguments are supported:
- Ids List<string>
 - A list of Alarm Contact Group IDs.
 - Name
Regex string - A regex string to filter results by Alarm Contact Group name.
 - Output
File string - File name where to save data source results (after running 
pulumi preview). 
- Ids []string
 - A list of Alarm Contact Group IDs.
 - Name
Regex string - A regex string to filter results by Alarm Contact Group name.
 - Output
File string - File name where to save data source results (after running 
pulumi preview). 
- ids List<String>
 - A list of Alarm Contact Group IDs.
 - name
Regex String - A regex string to filter results by Alarm Contact Group name.
 - output
File String - File name where to save data source results (after running 
pulumi preview). 
- ids string[]
 - A list of Alarm Contact Group IDs.
 - name
Regex string - A regex string to filter results by Alarm Contact Group name.
 - output
File 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.
 - name
Regex String - A regex string to filter results by Alarm Contact Group name.
 - output
File String - File name where to save data source results (after running 
pulumi preview). 
getAlarmContactGroups Result
The following output properties are available:
- Groups
List<Pulumi.
Ali Cloud. Cms. Outputs. Get Alarm Contact Groups Group>  - Id string
 - The provider-assigned unique ID for this managed resource.
 - Ids List<string>
 - Names List<string>
 - Name
Regex string - Output
File string 
- Groups
[]Get
Alarm Contact Groups Group  - Id string
 - The provider-assigned unique ID for this managed resource.
 - Ids []string
 - Names []string
 - Name
Regex string - Output
File string 
- groups
List<Get
Alarm Contact Groups Group>  - id String
 - The provider-assigned unique ID for this managed resource.
 - ids List<String>
 - names List<String>
 - name
Regex String - output
File String 
- groups
Get
Alarm Contact Groups Group[]  - id string
 - The provider-assigned unique ID for this managed resource.
 - ids string[]
 - names string[]
 - name
Regex string - output
File string 
- groups
Sequence[Get
Alarm Contact Groups Group]  - 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>
 - name
Regex String - output
File String 
Supporting Types
GetAlarmContactGroupsGroup    
- Alarm
Contact stringGroup Name  - The name of Alarm Contact Group.
 - Contacts List<string>
 - The alarm contacts in the alarm group.
 - Describe string
 - The description of the Alarm Group.
 - Enable
Subscribed bool - Indicates whether the alarm group subscribes to weekly reports.
 - Id string
 - The ID of the CMS.
 
- Alarm
Contact stringGroup Name  - The name of Alarm Contact Group.
 - Contacts []string
 - The alarm contacts in the alarm group.
 - Describe string
 - The description of the Alarm Group.
 - Enable
Subscribed bool - Indicates whether the alarm group subscribes to weekly reports.
 - Id string
 - The ID of the CMS.
 
- alarm
Contact StringGroup Name  - The name of Alarm Contact Group.
 - contacts List<String>
 - The alarm contacts in the alarm group.
 - describe String
 - The description of the Alarm Group.
 - enable
Subscribed Boolean - Indicates whether the alarm group subscribes to weekly reports.
 - id String
 - The ID of the CMS.
 
- alarm
Contact stringGroup Name  - The name of Alarm Contact Group.
 - contacts string[]
 - The alarm contacts in the alarm group.
 - describe string
 - The description of the Alarm Group.
 - enable
Subscribed boolean - Indicates whether the alarm group subscribes to weekly reports.
 - id string
 - The ID of the CMS.
 
- alarm_
contact_ strgroup_ name  - 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.
 
- alarm
Contact StringGroup Name  - The name of Alarm Contact Group.
 - contacts List<String>
 - The alarm contacts in the alarm group.
 - describe String
 - The description of the Alarm Group.
 - enable
Subscribed 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 
alicloudTerraform Provider.