getMonitorGroups

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

NOTE: Available in v1.113.0+.

Example Usage

Basic Usage

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.GetMonitorGroupsArgs;
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.getMonitorGroups(GetMonitorGroupsArgs.builder()
.ids("example_value")
.nameRegex("the_resource_name")
.build());
ctx.export("firstCmsMonitorGroupId", example.applyValue(getMonitorGroupsResult -> getMonitorGroupsResult.groups()[0].id()));
}
}

Return

A collection of values returned by getMonitorGroups.

Parameters

argument

A collection of arguments for invoking getMonitorGroups.


suspend fun getMonitorGroups(dynamicTagRuleId: String? = null, ids: List<String>? = null, includeTemplateHistory: Boolean? = null, keyword: String? = null, monitorGroupName: String? = null, nameRegex: String? = null, outputFile: String? = null, selectContactGroups: Boolean? = null, tags: Map<String, Any>? = null, type: String? = null): GetMonitorGroupsResult

Return

A collection of values returned by getMonitorGroups.

See also

Parameters

dynamicTagRuleId

The ID of the tag rule.

ids

A list of Monitor Group IDs.

includeTemplateHistory

The include template history.

keyword

The keyword to be matched.

monitorGroupName

The name of the application group.

nameRegex

A regex string to filter results by Monitor Group name.

outputFile

File name where to save data source results (after running pulumi preview).

selectContactGroups

The select contact groups.

tags

A map of tags assigned to the Cms Monitor Group.

type

The type of the application group.


Return

A collection of values returned by getMonitorGroups.

See also

Parameters

argument

Builder for com.pulumi.alicloud.cms.kotlin.inputs.GetMonitorGroupsPlainArgs.