1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getMonitorNoticeContentTmpls
Viewing docs for tencentcloud 1.82.79
published on Friday, Mar 27, 2026 by tencentcloudstack
tencentcloud logo
Viewing docs for tencentcloud 1.82.79
published on Friday, Mar 27, 2026 by tencentcloudstack

    Use this data source to query monitor notice content templates.

    Example Usage

    Query all templates

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = tencentcloud.getMonitorNoticeContentTmpls({});
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.get_monitor_notice_content_tmpls()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.GetMonitorNoticeContentTmpls(ctx, &tencentcloud.GetMonitorNoticeContentTmplsArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Tencentcloud.GetMonitorNoticeContentTmpls.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetMonitorNoticeContentTmplsArgs;
    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 = TencentcloudFunctions.getMonitorNoticeContentTmpls(GetMonitorNoticeContentTmplsArgs.builder()
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: tencentcloud:getMonitorNoticeContentTmpls
          arguments: {}
    

    Query by filter

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = tencentcloud.getMonitorNoticeContentTmpls({
        tmplIds: ["ntpl-plu46bk5"],
        tmplName: "tf-example",
        noticeId: "notice-c2af43ee-1a4b-4c4a-ae3e-f81481280101",
        tmplLanguage: "en",
        monitorType: "MT_QCE",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.get_monitor_notice_content_tmpls(tmpl_ids=["ntpl-plu46bk5"],
        tmpl_name="tf-example",
        notice_id="notice-c2af43ee-1a4b-4c4a-ae3e-f81481280101",
        tmpl_language="en",
        monitor_type="MT_QCE")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.GetMonitorNoticeContentTmpls(ctx, &tencentcloud.GetMonitorNoticeContentTmplsArgs{
    			TmplIds: []string{
    				"ntpl-plu46bk5",
    			},
    			TmplName:     pulumi.StringRef("tf-example"),
    			NoticeId:     pulumi.StringRef("notice-c2af43ee-1a4b-4c4a-ae3e-f81481280101"),
    			TmplLanguage: pulumi.StringRef("en"),
    			MonitorType:  pulumi.StringRef("MT_QCE"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Tencentcloud.GetMonitorNoticeContentTmpls.Invoke(new()
        {
            TmplIds = new[]
            {
                "ntpl-plu46bk5",
            },
            TmplName = "tf-example",
            NoticeId = "notice-c2af43ee-1a4b-4c4a-ae3e-f81481280101",
            TmplLanguage = "en",
            MonitorType = "MT_QCE",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetMonitorNoticeContentTmplsArgs;
    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 = TencentcloudFunctions.getMonitorNoticeContentTmpls(GetMonitorNoticeContentTmplsArgs.builder()
                .tmplIds("ntpl-plu46bk5")
                .tmplName("tf-example")
                .noticeId("notice-c2af43ee-1a4b-4c4a-ae3e-f81481280101")
                .tmplLanguage("en")
                .monitorType("MT_QCE")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: tencentcloud:getMonitorNoticeContentTmpls
          arguments:
            tmplIds:
              - ntpl-plu46bk5
            tmplName: tf-example
            noticeId: notice-c2af43ee-1a4b-4c4a-ae3e-f81481280101
            tmplLanguage: en
            monitorType: MT_QCE
    

    Using getMonitorNoticeContentTmpls

    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 getMonitorNoticeContentTmpls(args: GetMonitorNoticeContentTmplsArgs, opts?: InvokeOptions): Promise<GetMonitorNoticeContentTmplsResult>
    function getMonitorNoticeContentTmplsOutput(args: GetMonitorNoticeContentTmplsOutputArgs, opts?: InvokeOptions): Output<GetMonitorNoticeContentTmplsResult>
    def get_monitor_notice_content_tmpls(id: Optional[str] = None,
                                         monitor_type: Optional[str] = None,
                                         notice_id: Optional[str] = None,
                                         result_output_file: Optional[str] = None,
                                         tmpl_ids: Optional[Sequence[str]] = None,
                                         tmpl_language: Optional[str] = None,
                                         tmpl_name: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetMonitorNoticeContentTmplsResult
    def get_monitor_notice_content_tmpls_output(id: Optional[pulumi.Input[str]] = None,
                                         monitor_type: Optional[pulumi.Input[str]] = None,
                                         notice_id: Optional[pulumi.Input[str]] = None,
                                         result_output_file: Optional[pulumi.Input[str]] = None,
                                         tmpl_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                         tmpl_language: Optional[pulumi.Input[str]] = None,
                                         tmpl_name: Optional[pulumi.Input[str]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetMonitorNoticeContentTmplsResult]
    func GetMonitorNoticeContentTmpls(ctx *Context, args *GetMonitorNoticeContentTmplsArgs, opts ...InvokeOption) (*GetMonitorNoticeContentTmplsResult, error)
    func GetMonitorNoticeContentTmplsOutput(ctx *Context, args *GetMonitorNoticeContentTmplsOutputArgs, opts ...InvokeOption) GetMonitorNoticeContentTmplsResultOutput

    > Note: This function is named GetMonitorNoticeContentTmpls in the Go SDK.

    public static class GetMonitorNoticeContentTmpls 
    {
        public static Task<GetMonitorNoticeContentTmplsResult> InvokeAsync(GetMonitorNoticeContentTmplsArgs args, InvokeOptions? opts = null)
        public static Output<GetMonitorNoticeContentTmplsResult> Invoke(GetMonitorNoticeContentTmplsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMonitorNoticeContentTmplsResult> getMonitorNoticeContentTmpls(GetMonitorNoticeContentTmplsArgs args, InvokeOptions options)
    public static Output<GetMonitorNoticeContentTmplsResult> getMonitorNoticeContentTmpls(GetMonitorNoticeContentTmplsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getMonitorNoticeContentTmpls:getMonitorNoticeContentTmpls
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    MonitorType string
    Monitor type for query. Valid value: MT_QCE.
    NoticeId string
    Notice template ID for query.
    ResultOutputFile string
    Used to save results.
    TmplIds List<string>
    Template ID list for query.
    TmplLanguage string
    Template language for query. Valid values: en, zh.
    TmplName string
    Template name for query.
    Id string
    MonitorType string
    Monitor type for query. Valid value: MT_QCE.
    NoticeId string
    Notice template ID for query.
    ResultOutputFile string
    Used to save results.
    TmplIds []string
    Template ID list for query.
    TmplLanguage string
    Template language for query. Valid values: en, zh.
    TmplName string
    Template name for query.
    id String
    monitorType String
    Monitor type for query. Valid value: MT_QCE.
    noticeId String
    Notice template ID for query.
    resultOutputFile String
    Used to save results.
    tmplIds List<String>
    Template ID list for query.
    tmplLanguage String
    Template language for query. Valid values: en, zh.
    tmplName String
    Template name for query.
    id string
    monitorType string
    Monitor type for query. Valid value: MT_QCE.
    noticeId string
    Notice template ID for query.
    resultOutputFile string
    Used to save results.
    tmplIds string[]
    Template ID list for query.
    tmplLanguage string
    Template language for query. Valid values: en, zh.
    tmplName string
    Template name for query.
    id str
    monitor_type str
    Monitor type for query. Valid value: MT_QCE.
    notice_id str
    Notice template ID for query.
    result_output_file str
    Used to save results.
    tmpl_ids Sequence[str]
    Template ID list for query.
    tmpl_language str
    Template language for query. Valid values: en, zh.
    tmpl_name str
    Template name for query.
    id String
    monitorType String
    Monitor type for query. Valid value: MT_QCE.
    noticeId String
    Notice template ID for query.
    resultOutputFile String
    Used to save results.
    tmplIds List<String>
    Template ID list for query.
    tmplLanguage String
    Template language for query. Valid values: en, zh.
    tmplName String
    Template name for query.

    getMonitorNoticeContentTmpls Result

    The following output properties are available:

    Id string
    NoticeContentTmplLists List<GetMonitorNoticeContentTmplsNoticeContentTmplList>
    Notification content template list.
    MonitorType string
    Monitor type.
    NoticeId string
    ResultOutputFile string
    TmplIds List<string>
    TmplLanguage string
    Template language.
    TmplName string
    Template name.
    Id string
    NoticeContentTmplLists []GetMonitorNoticeContentTmplsNoticeContentTmplList
    Notification content template list.
    MonitorType string
    Monitor type.
    NoticeId string
    ResultOutputFile string
    TmplIds []string
    TmplLanguage string
    Template language.
    TmplName string
    Template name.
    id String
    noticeContentTmplLists List<GetMonitorNoticeContentTmplsNoticeContentTmplList>
    Notification content template list.
    monitorType String
    Monitor type.
    noticeId String
    resultOutputFile String
    tmplIds List<String>
    tmplLanguage String
    Template language.
    tmplName String
    Template name.
    id string
    noticeContentTmplLists GetMonitorNoticeContentTmplsNoticeContentTmplList[]
    Notification content template list.
    monitorType string
    Monitor type.
    noticeId string
    resultOutputFile string
    tmplIds string[]
    tmplLanguage string
    Template language.
    tmplName string
    Template name.
    id str
    notice_content_tmpl_lists Sequence[GetMonitorNoticeContentTmplsNoticeContentTmplList]
    Notification content template list.
    monitor_type str
    Monitor type.
    notice_id str
    result_output_file str
    tmpl_ids Sequence[str]
    tmpl_language str
    Template language.
    tmpl_name str
    Template name.
    id String
    noticeContentTmplLists List<Property Map>
    Notification content template list.
    monitorType String
    Monitor type.
    noticeId String
    resultOutputFile String
    tmplIds List<String>
    tmplLanguage String
    Template language.
    tmplName String
    Template name.

    Supporting Types

    GetMonitorNoticeContentTmplsNoticeContentTmplList

    CreateTime double
    Create time.
    Creator string
    Creator uin.
    MonitorType string
    Monitor type for query. Valid value: MT_QCE.
    TmplContentsJson string
    Template content in JSON format.
    TmplId string
    Template ID.
    TmplLanguage string
    Template language for query. Valid values: en, zh.
    TmplName string
    Template name for query.
    UpdateTime double
    Update time.
    CreateTime float64
    Create time.
    Creator string
    Creator uin.
    MonitorType string
    Monitor type for query. Valid value: MT_QCE.
    TmplContentsJson string
    Template content in JSON format.
    TmplId string
    Template ID.
    TmplLanguage string
    Template language for query. Valid values: en, zh.
    TmplName string
    Template name for query.
    UpdateTime float64
    Update time.
    createTime Double
    Create time.
    creator String
    Creator uin.
    monitorType String
    Monitor type for query. Valid value: MT_QCE.
    tmplContentsJson String
    Template content in JSON format.
    tmplId String
    Template ID.
    tmplLanguage String
    Template language for query. Valid values: en, zh.
    tmplName String
    Template name for query.
    updateTime Double
    Update time.
    createTime number
    Create time.
    creator string
    Creator uin.
    monitorType string
    Monitor type for query. Valid value: MT_QCE.
    tmplContentsJson string
    Template content in JSON format.
    tmplId string
    Template ID.
    tmplLanguage string
    Template language for query. Valid values: en, zh.
    tmplName string
    Template name for query.
    updateTime number
    Update time.
    create_time float
    Create time.
    creator str
    Creator uin.
    monitor_type str
    Monitor type for query. Valid value: MT_QCE.
    tmpl_contents_json str
    Template content in JSON format.
    tmpl_id str
    Template ID.
    tmpl_language str
    Template language for query. Valid values: en, zh.
    tmpl_name str
    Template name for query.
    update_time float
    Update time.
    createTime Number
    Create time.
    creator String
    Creator uin.
    monitorType String
    Monitor type for query. Valid value: MT_QCE.
    tmplContentsJson String
    Template content in JSON format.
    tmplId String
    Template ID.
    tmplLanguage String
    Template language for query. Valid values: en, zh.
    tmplName String
    Template name for query.
    updateTime Number
    Update time.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    Viewing docs for tencentcloud 1.82.79
    published on Friday, Mar 27, 2026 by tencentcloudstack
      Try Pulumi Cloud free. Your team will thank you.