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()));
}
}
Return
A collection of values returned by getMonitorGroups.
Parameters
A collection of arguments for invoking getMonitorGroups.
Return
A collection of values returned by getMonitorGroups.
See also
Parameters
The ID of the tag rule.
A list of Monitor Group IDs.
The include template history.
The keyword to be matched.
The name of the application group.
A regex string to filter results by Monitor Group name.
File name where to save data source results (after running pulumi preview
).
The select contact groups.
A map of tags assigned to the Cms Monitor Group.
The type of the application group.
Return
A collection of values returned by getMonitorGroups.
See also
Parameters
Builder for com.pulumi.alicloud.cms.kotlin.inputs.GetMonitorGroupsPlainArgs.