1. Packages
  2. Packages
  3. Tencentcloud Provider
  4. API Docs
  5. getClsNoticeContents
Viewing docs for tencentcloud 1.82.93
published on Monday, May 11, 2026 by tencentcloudstack
Viewing docs for tencentcloud 1.82.93
published on Monday, May 11, 2026 by tencentcloudstack

    Use this data source to query detailed information of CLS notice content templates.

    Example Usage

    Query all notice content templates

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = tencentcloud.getClsNoticeContents({});
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.get_cls_notice_contents()
    
    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.GetClsNoticeContents(ctx, &tencentcloud.GetClsNoticeContentsArgs{}, 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.GetClsNoticeContents.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.GetClsNoticeContentsArgs;
    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.getClsNoticeContents(GetClsNoticeContentsArgs.builder()
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: tencentcloud:getClsNoticeContents
          arguments: {}
    
    Example coming soon!
    

    Query by template name

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = tencentcloud.getClsNoticeContents({
        filters: [{
            key: "name",
            values: ["DefaultTemplate(English)"],
        }],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.get_cls_notice_contents(filters=[{
        "key": "name",
        "values": ["DefaultTemplate(English)"],
    }])
    
    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.GetClsNoticeContents(ctx, &tencentcloud.GetClsNoticeContentsArgs{
    			Filters: []tencentcloud.GetClsNoticeContentsFilter{
    				{
    					Key: "name",
    					Values: []string{
    						"DefaultTemplate(English)",
    					},
    				},
    			},
    		}, 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.GetClsNoticeContents.Invoke(new()
        {
            Filters = new[]
            {
                new Tencentcloud.Inputs.GetClsNoticeContentsFilterInputArgs
                {
                    Key = "name",
                    Values = new[]
                    {
                        "DefaultTemplate(English)",
                    },
                },
            },
        });
    
    });
    
    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.GetClsNoticeContentsArgs;
    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.getClsNoticeContents(GetClsNoticeContentsArgs.builder()
                .filters(GetClsNoticeContentsFilterArgs.builder()
                    .key("name")
                    .values("DefaultTemplate(English)")
                    .build())
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: tencentcloud:getClsNoticeContents
          arguments:
            filters:
              - key: name
                values:
                  - DefaultTemplate(English)
    
    Example coming soon!
    

    Query by template ID

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = tencentcloud.getClsNoticeContents({
        filters: [{
            key: "noticeContentId",
            values: ["Default-en"],
        }],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.get_cls_notice_contents(filters=[{
        "key": "noticeContentId",
        "values": ["Default-en"],
    }])
    
    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.GetClsNoticeContents(ctx, &tencentcloud.GetClsNoticeContentsArgs{
    			Filters: []tencentcloud.GetClsNoticeContentsFilter{
    				{
    					Key: "noticeContentId",
    					Values: []string{
    						"Default-en",
    					},
    				},
    			},
    		}, 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.GetClsNoticeContents.Invoke(new()
        {
            Filters = new[]
            {
                new Tencentcloud.Inputs.GetClsNoticeContentsFilterInputArgs
                {
                    Key = "noticeContentId",
                    Values = new[]
                    {
                        "Default-en",
                    },
                },
            },
        });
    
    });
    
    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.GetClsNoticeContentsArgs;
    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.getClsNoticeContents(GetClsNoticeContentsArgs.builder()
                .filters(GetClsNoticeContentsFilterArgs.builder()
                    .key("noticeContentId")
                    .values("Default-en")
                    .build())
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: tencentcloud:getClsNoticeContents
          arguments:
            filters:
              - key: noticeContentId
                values:
                  - Default-en
    
    Example coming soon!
    

    Using getClsNoticeContents

    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 getClsNoticeContents(args: GetClsNoticeContentsArgs, opts?: InvokeOptions): Promise<GetClsNoticeContentsResult>
    function getClsNoticeContentsOutput(args: GetClsNoticeContentsOutputArgs, opts?: InvokeOptions): Output<GetClsNoticeContentsResult>
    def get_cls_notice_contents(filters: Optional[Sequence[GetClsNoticeContentsFilter]] = None,
                                id: Optional[str] = None,
                                result_output_file: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetClsNoticeContentsResult
    def get_cls_notice_contents_output(filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetClsNoticeContentsFilterArgs]]]] = None,
                                id: pulumi.Input[Optional[str]] = None,
                                result_output_file: pulumi.Input[Optional[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetClsNoticeContentsResult]
    func GetClsNoticeContents(ctx *Context, args *GetClsNoticeContentsArgs, opts ...InvokeOption) (*GetClsNoticeContentsResult, error)
    func GetClsNoticeContentsOutput(ctx *Context, args *GetClsNoticeContentsOutputArgs, opts ...InvokeOption) GetClsNoticeContentsResultOutput

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

    public static class GetClsNoticeContents 
    {
        public static Task<GetClsNoticeContentsResult> InvokeAsync(GetClsNoticeContentsArgs args, InvokeOptions? opts = null)
        public static Output<GetClsNoticeContentsResult> Invoke(GetClsNoticeContentsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetClsNoticeContentsResult> getClsNoticeContents(GetClsNoticeContentsArgs args, InvokeOptions options)
    public static Output<GetClsNoticeContentsResult> getClsNoticeContents(GetClsNoticeContentsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getClsNoticeContents:getClsNoticeContents
      arguments:
        # arguments dictionary
    data "tencentcloud_getclsnoticecontents" "name" {
        # arguments
    }

    The following arguments are supported:

    Filters List<GetClsNoticeContentsFilter>
    Filter conditions. Supported filter names: name (notice content template name), noticeContentId (notice content template ID). Each request supports up to 10 filters, and each filter value list supports up to 100 values.
    Id string
    ResultOutputFile string
    Used to save results.
    Filters []GetClsNoticeContentsFilter
    Filter conditions. Supported filter names: name (notice content template name), noticeContentId (notice content template ID). Each request supports up to 10 filters, and each filter value list supports up to 100 values.
    Id string
    ResultOutputFile string
    Used to save results.
    filters list(object)
    Filter conditions. Supported filter names: name (notice content template name), noticeContentId (notice content template ID). Each request supports up to 10 filters, and each filter value list supports up to 100 values.
    id string
    result_output_file string
    Used to save results.
    filters List<GetClsNoticeContentsFilter>
    Filter conditions. Supported filter names: name (notice content template name), noticeContentId (notice content template ID). Each request supports up to 10 filters, and each filter value list supports up to 100 values.
    id String
    resultOutputFile String
    Used to save results.
    filters GetClsNoticeContentsFilter[]
    Filter conditions. Supported filter names: name (notice content template name), noticeContentId (notice content template ID). Each request supports up to 10 filters, and each filter value list supports up to 100 values.
    id string
    resultOutputFile string
    Used to save results.
    filters Sequence[GetClsNoticeContentsFilter]
    Filter conditions. Supported filter names: name (notice content template name), noticeContentId (notice content template ID). Each request supports up to 10 filters, and each filter value list supports up to 100 values.
    id str
    result_output_file str
    Used to save results.
    filters List<Property Map>
    Filter conditions. Supported filter names: name (notice content template name), noticeContentId (notice content template ID). Each request supports up to 10 filters, and each filter value list supports up to 100 values.
    id String
    resultOutputFile String
    Used to save results.

    getClsNoticeContents Result

    The following output properties are available:

    Supporting Types

    GetClsNoticeContentsFilter

    Key string
    Filter field name. Valid values: name, noticeContentId.
    Values List<string>
    Filter field values.
    Key string
    Filter field name. Valid values: name, noticeContentId.
    Values []string
    Filter field values.
    key string
    Filter field name. Valid values: name, noticeContentId.
    values list(string)
    Filter field values.
    key String
    Filter field name. Valid values: name, noticeContentId.
    values List<String>
    Filter field values.
    key string
    Filter field name. Valid values: name, noticeContentId.
    values string[]
    Filter field values.
    key str
    Filter field name. Valid values: name, noticeContentId.
    values Sequence[str]
    Filter field values.
    key String
    Filter field name. Valid values: name, noticeContentId.
    values List<String>
    Filter field values.

    GetClsNoticeContentsNoticeContentList

    CreateTime double
    Creation time (Unix timestamp in seconds).
    Flag double
    Template flag. 0: user-defined, 1: system built-in.
    Name string
    Notice content template name.
    NoticeContentId string
    Notice content template ID.
    NoticeContents List<GetClsNoticeContentsNoticeContentListNoticeContent>
    Notice content template details.
    SubUin double
    Creator/modifier sub-account ID.
    Type double
    Language type. 0: Chinese, 1: English.
    Uin double
    Creator primary account ID.
    UpdateTime double
    Update time (Unix timestamp in seconds).
    CreateTime float64
    Creation time (Unix timestamp in seconds).
    Flag float64
    Template flag. 0: user-defined, 1: system built-in.
    Name string
    Notice content template name.
    NoticeContentId string
    Notice content template ID.
    NoticeContents []GetClsNoticeContentsNoticeContentListNoticeContent
    Notice content template details.
    SubUin float64
    Creator/modifier sub-account ID.
    Type float64
    Language type. 0: Chinese, 1: English.
    Uin float64
    Creator primary account ID.
    UpdateTime float64
    Update time (Unix timestamp in seconds).
    create_time number
    Creation time (Unix timestamp in seconds).
    flag number
    Template flag. 0: user-defined, 1: system built-in.
    name string
    Notice content template name.
    notice_content_id string
    Notice content template ID.
    notice_contents list(object)
    Notice content template details.
    sub_uin number
    Creator/modifier sub-account ID.
    type number
    Language type. 0: Chinese, 1: English.
    uin number
    Creator primary account ID.
    update_time number
    Update time (Unix timestamp in seconds).
    createTime Double
    Creation time (Unix timestamp in seconds).
    flag Double
    Template flag. 0: user-defined, 1: system built-in.
    name String
    Notice content template name.
    noticeContentId String
    Notice content template ID.
    noticeContents List<GetClsNoticeContentsNoticeContentListNoticeContent>
    Notice content template details.
    subUin Double
    Creator/modifier sub-account ID.
    type Double
    Language type. 0: Chinese, 1: English.
    uin Double
    Creator primary account ID.
    updateTime Double
    Update time (Unix timestamp in seconds).
    createTime number
    Creation time (Unix timestamp in seconds).
    flag number
    Template flag. 0: user-defined, 1: system built-in.
    name string
    Notice content template name.
    noticeContentId string
    Notice content template ID.
    noticeContents GetClsNoticeContentsNoticeContentListNoticeContent[]
    Notice content template details.
    subUin number
    Creator/modifier sub-account ID.
    type number
    Language type. 0: Chinese, 1: English.
    uin number
    Creator primary account ID.
    updateTime number
    Update time (Unix timestamp in seconds).
    create_time float
    Creation time (Unix timestamp in seconds).
    flag float
    Template flag. 0: user-defined, 1: system built-in.
    name str
    Notice content template name.
    notice_content_id str
    Notice content template ID.
    notice_contents Sequence[GetClsNoticeContentsNoticeContentListNoticeContent]
    Notice content template details.
    sub_uin float
    Creator/modifier sub-account ID.
    type float
    Language type. 0: Chinese, 1: English.
    uin float
    Creator primary account ID.
    update_time float
    Update time (Unix timestamp in seconds).
    createTime Number
    Creation time (Unix timestamp in seconds).
    flag Number
    Template flag. 0: user-defined, 1: system built-in.
    name String
    Notice content template name.
    noticeContentId String
    Notice content template ID.
    noticeContents List<Property Map>
    Notice content template details.
    subUin Number
    Creator/modifier sub-account ID.
    type Number
    Language type. 0: Chinese, 1: English.
    uin Number
    Creator primary account ID.
    updateTime Number
    Update time (Unix timestamp in seconds).

    GetClsNoticeContentsNoticeContentListNoticeContent

    RecoveryContents List<GetClsNoticeContentsNoticeContentListNoticeContentRecoveryContent>
    Alarm recovery notification content template.
    TriggerContents List<GetClsNoticeContentsNoticeContentListNoticeContentTriggerContent>
    Alarm trigger notification content template.
    Type string
    Language type. 0: Chinese, 1: English.
    RecoveryContents []GetClsNoticeContentsNoticeContentListNoticeContentRecoveryContent
    Alarm recovery notification content template.
    TriggerContents []GetClsNoticeContentsNoticeContentListNoticeContentTriggerContent
    Alarm trigger notification content template.
    Type string
    Language type. 0: Chinese, 1: English.
    recovery_contents list(object)
    Alarm recovery notification content template.
    trigger_contents list(object)
    Alarm trigger notification content template.
    type string
    Language type. 0: Chinese, 1: English.
    recoveryContents List<GetClsNoticeContentsNoticeContentListNoticeContentRecoveryContent>
    Alarm recovery notification content template.
    triggerContents List<GetClsNoticeContentsNoticeContentListNoticeContentTriggerContent>
    Alarm trigger notification content template.
    type String
    Language type. 0: Chinese, 1: English.
    recoveryContents GetClsNoticeContentsNoticeContentListNoticeContentRecoveryContent[]
    Alarm recovery notification content template.
    triggerContents GetClsNoticeContentsNoticeContentListNoticeContentTriggerContent[]
    Alarm trigger notification content template.
    type string
    Language type. 0: Chinese, 1: English.
    recovery_contents Sequence[GetClsNoticeContentsNoticeContentListNoticeContentRecoveryContent]
    Alarm recovery notification content template.
    trigger_contents Sequence[GetClsNoticeContentsNoticeContentListNoticeContentTriggerContent]
    Alarm trigger notification content template.
    type str
    Language type. 0: Chinese, 1: English.
    recoveryContents List<Property Map>
    Alarm recovery notification content template.
    triggerContents List<Property Map>
    Alarm trigger notification content template.
    type String
    Language type. 0: Chinese, 1: English.

    GetClsNoticeContentsNoticeContentListNoticeContentRecoveryContent

    Content string
    Notification content template body.
    Headers List<string>
    Request headers (only for custom callback channel).
    Title string
    Notification content template title.
    Content string
    Notification content template body.
    Headers []string
    Request headers (only for custom callback channel).
    Title string
    Notification content template title.
    content string
    Notification content template body.
    headers list(string)
    Request headers (only for custom callback channel).
    title string
    Notification content template title.
    content String
    Notification content template body.
    headers List<String>
    Request headers (only for custom callback channel).
    title String
    Notification content template title.
    content string
    Notification content template body.
    headers string[]
    Request headers (only for custom callback channel).
    title string
    Notification content template title.
    content str
    Notification content template body.
    headers Sequence[str]
    Request headers (only for custom callback channel).
    title str
    Notification content template title.
    content String
    Notification content template body.
    headers List<String>
    Request headers (only for custom callback channel).
    title String
    Notification content template title.

    GetClsNoticeContentsNoticeContentListNoticeContentTriggerContent

    Content string
    Notification content template body.
    Headers List<string>
    Request headers (only for custom callback channel).
    Title string
    Notification content template title.
    Content string
    Notification content template body.
    Headers []string
    Request headers (only for custom callback channel).
    Title string
    Notification content template title.
    content string
    Notification content template body.
    headers list(string)
    Request headers (only for custom callback channel).
    title string
    Notification content template title.
    content String
    Notification content template body.
    headers List<String>
    Request headers (only for custom callback channel).
    title String
    Notification content template title.
    content string
    Notification content template body.
    headers string[]
    Request headers (only for custom callback channel).
    title string
    Notification content template title.
    content str
    Notification content template body.
    headers Sequence[str]
    Request headers (only for custom callback channel).
    title str
    Notification content template title.
    content String
    Notification content template body.
    headers List<String>
    Request headers (only for custom callback channel).
    title String
    Notification content template title.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    Viewing docs for tencentcloud 1.82.93
    published on Monday, May 11, 2026 by tencentcloudstack
      Try Pulumi Cloud free. Your team will thank you.