1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. cms
  5. getAlarmContactGroups
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 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",
});
Copy
import pulumi
import pulumi_alicloud as alicloud

example = alicloud.cms.get_alarm_contact_groups(name_regex="tf-testacc")
Copy
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
	})
}
Copy
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",
    });

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

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: alicloud:cms:getAlarmContactGroups
      arguments:
        nameRegex: tf-testacc
Copy

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>
Copy
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]
Copy
func GetAlarmContactGroups(ctx *Context, args *GetAlarmContactGroupsArgs, opts ...InvokeOption) (*GetAlarmContactGroupsResult, error)
func GetAlarmContactGroupsOutput(ctx *Context, args *GetAlarmContactGroupsOutputArgs, opts ...InvokeOption) GetAlarmContactGroupsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetAlarmContactGroupsResult> getAlarmContactGroups(GetAlarmContactGroupsArgs args, InvokeOptions options)
public static Output<GetAlarmContactGroupsResult> getAlarmContactGroups(GetAlarmContactGroupsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:cms/getAlarmContactGroups:getAlarmContactGroups
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Ids Changes to this property will trigger replacement. List<string>
A list of Alarm Contact Group IDs.
NameRegex Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. []string
A list of Alarm Contact Group IDs.
NameRegex Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. List<String>
A list of Alarm Contact Group IDs.
nameRegex Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string[]
A list of Alarm Contact Group IDs.
nameRegex Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. Sequence[str]
A list of Alarm Contact Group IDs.
name_regex Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. List<String>
A list of Alarm Contact Group IDs.
nameRegex Changes to this property will trigger replacement. 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 This property is required. string
The name of Alarm Contact Group.
Contacts This property is required. List<string>
The alarm contacts in the alarm group.
Describe This property is required. string
The description of the Alarm Group.
EnableSubscribed This property is required. bool
Indicates whether the alarm group subscribes to weekly reports.
Id This property is required. string
The ID of the CMS.
AlarmContactGroupName This property is required. string
The name of Alarm Contact Group.
Contacts This property is required. []string
The alarm contacts in the alarm group.
Describe This property is required. string
The description of the Alarm Group.
EnableSubscribed This property is required. bool
Indicates whether the alarm group subscribes to weekly reports.
Id This property is required. string
The ID of the CMS.
alarmContactGroupName This property is required. String
The name of Alarm Contact Group.
contacts This property is required. List<String>
The alarm contacts in the alarm group.
describe This property is required. String
The description of the Alarm Group.
enableSubscribed This property is required. Boolean
Indicates whether the alarm group subscribes to weekly reports.
id This property is required. String
The ID of the CMS.
alarmContactGroupName This property is required. string
The name of Alarm Contact Group.
contacts This property is required. string[]
The alarm contacts in the alarm group.
describe This property is required. string
The description of the Alarm Group.
enableSubscribed This property is required. boolean
Indicates whether the alarm group subscribes to weekly reports.
id This property is required. string
The ID of the CMS.
alarm_contact_group_name This property is required. str
The name of Alarm Contact Group.
contacts This property is required. Sequence[str]
The alarm contacts in the alarm group.
describe This property is required. str
The description of the Alarm Group.
enable_subscribed This property is required. bool
Indicates whether the alarm group subscribes to weekly reports.
id This property is required. str
The ID of the CMS.
alarmContactGroupName This property is required. String
The name of Alarm Contact Group.
contacts This property is required. List<String>
The alarm contacts in the alarm group.
describe This property is required. String
The description of the Alarm Group.
enableSubscribed This property is required. Boolean
Indicates whether the alarm group subscribes to weekly reports.
id This property is required. 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.