get Monitor Groups
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()));
}
}
Content copied to clipboard
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
dynamic Tag Rule Id
The ID of the tag rule.
ids
A list of Monitor Group IDs.
include Template History
The include template history.
keyword
The keyword to be matched.
monitor Group Name
The name of the application group.
name Regex
A regex string to filter results by Monitor Group name.
output File
select Contact Groups
The select contact groups.
tags
A map of tags assigned to the Cms Monitor Group.
type
The type of the application group.
suspend fun getMonitorGroups(argument: suspend GetMonitorGroupsPlainArgsBuilder.() -> Unit): GetMonitorGroupsResult
Return
A collection of values returned by getMonitorGroups.
See also
Parameters
argument
Builder for com.pulumi.alicloud.cms.kotlin.inputs.GetMonitorGroupsPlainArgs.