1. Packages
  2. Volcengine
  3. API Docs
  4. vmp
  5. getNotifyTemplates
Volcengine v0.0.34 published on Wednesday, Jul 2, 2025 by Volcengine

volcengine.vmp.getNotifyTemplates

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.34 published on Wednesday, Jul 2, 2025 by Volcengine

    Use this data source to query detailed information of vmp notify templates

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    import * as volcengine from "@volcengine/pulumi";
    
    const foo = new volcengine.vmp.NotifyTemplate("foo", {
        description: "acc-test-vmp",
        channel: "WeComBotWebhook",
        active: {
            title: "acc-test-active-template-title",
            content: "acc-test-active-template-content",
        },
        resolved: {
            title: "acc-test-resolved-template-title",
            content: "acc-test-resolved-template-content",
        },
    });
    const default = volcengine.vmp.getNotifyTemplatesOutput({
        ids: [foo.id],
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.vmp.NotifyTemplate("foo",
        description="acc-test-vmp",
        channel="WeComBotWebhook",
        active=volcengine.vmp.NotifyTemplateActiveArgs(
            title="acc-test-active-template-title",
            content="acc-test-active-template-content",
        ),
        resolved=volcengine.vmp.NotifyTemplateResolvedArgs(
            title="acc-test-resolved-template-title",
            content="acc-test-resolved-template-content",
        ))
    default = volcengine.vmp.get_notify_templates_output(ids=[foo.id])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vmp"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		foo, err := vmp.NewNotifyTemplate(ctx, "foo", &vmp.NotifyTemplateArgs{
    			Description: pulumi.String("acc-test-vmp"),
    			Channel:     pulumi.String("WeComBotWebhook"),
    			Active: &vmp.NotifyTemplateActiveArgs{
    				Title:   pulumi.String("acc-test-active-template-title"),
    				Content: pulumi.String("acc-test-active-template-content"),
    			},
    			Resolved: &vmp.NotifyTemplateResolvedArgs{
    				Title:   pulumi.String("acc-test-resolved-template-title"),
    				Content: pulumi.String("acc-test-resolved-template-content"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_ = vmp.GetNotifyTemplatesOutput(ctx, vmp.GetNotifyTemplatesOutputArgs{
    			Ids: pulumi.StringArray{
    				foo.ID(),
    			},
    		}, nil)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Volcengine.Vmp.NotifyTemplate("foo", new()
        {
            Description = "acc-test-vmp",
            Channel = "WeComBotWebhook",
            Active = new Volcengine.Vmp.Inputs.NotifyTemplateActiveArgs
            {
                Title = "acc-test-active-template-title",
                Content = "acc-test-active-template-content",
            },
            Resolved = new Volcengine.Vmp.Inputs.NotifyTemplateResolvedArgs
            {
                Title = "acc-test-resolved-template-title",
                Content = "acc-test-resolved-template-content",
            },
        });
    
        var @default = Volcengine.Vmp.GetNotifyTemplates.Invoke(new()
        {
            Ids = new[]
            {
                foo.Id,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.vmp.NotifyTemplate;
    import com.pulumi.volcengine.vmp.NotifyTemplateArgs;
    import com.pulumi.volcengine.vmp.inputs.NotifyTemplateActiveArgs;
    import com.pulumi.volcengine.vmp.inputs.NotifyTemplateResolvedArgs;
    import com.pulumi.volcengine.vmp.VmpFunctions;
    import com.pulumi.volcengine.vmp.inputs.GetNotifyTemplatesArgs;
    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) {
            var foo = new NotifyTemplate("foo", NotifyTemplateArgs.builder()        
                .description("acc-test-vmp")
                .channel("WeComBotWebhook")
                .active(NotifyTemplateActiveArgs.builder()
                    .title("acc-test-active-template-title")
                    .content("acc-test-active-template-content")
                    .build())
                .resolved(NotifyTemplateResolvedArgs.builder()
                    .title("acc-test-resolved-template-title")
                    .content("acc-test-resolved-template-content")
                    .build())
                .build());
    
            final var default = VmpFunctions.getNotifyTemplates(GetNotifyTemplatesArgs.builder()
                .ids(foo.id())
                .build());
    
        }
    }
    
    resources:
      foo:
        type: volcengine:vmp:NotifyTemplate
        properties:
          description: acc-test-vmp
          channel: WeComBotWebhook
          active:
            title: acc-test-active-template-title
            content: acc-test-active-template-content
          resolved:
            title: acc-test-resolved-template-title
            content: acc-test-resolved-template-content
    variables:
      default:
        fn::invoke:
          Function: volcengine:vmp:getNotifyTemplates
          Arguments:
            ids:
              - ${foo.id}
    

    Using getNotifyTemplates

    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 getNotifyTemplates(args: GetNotifyTemplatesArgs, opts?: InvokeOptions): Promise<GetNotifyTemplatesResult>
    function getNotifyTemplatesOutput(args: GetNotifyTemplatesOutputArgs, opts?: InvokeOptions): Output<GetNotifyTemplatesResult>
    def get_notify_templates(channel: Optional[str] = None,
                             ids: Optional[Sequence[str]] = None,
                             name: Optional[str] = None,
                             name_regex: Optional[str] = None,
                             output_file: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetNotifyTemplatesResult
    def get_notify_templates_output(channel: Optional[pulumi.Input[str]] = None,
                             ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                             name: Optional[pulumi.Input[str]] = None,
                             name_regex: Optional[pulumi.Input[str]] = None,
                             output_file: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetNotifyTemplatesResult]
    func GetNotifyTemplates(ctx *Context, args *GetNotifyTemplatesArgs, opts ...InvokeOption) (*GetNotifyTemplatesResult, error)
    func GetNotifyTemplatesOutput(ctx *Context, args *GetNotifyTemplatesOutputArgs, opts ...InvokeOption) GetNotifyTemplatesResultOutput

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

    public static class GetNotifyTemplates 
    {
        public static Task<GetNotifyTemplatesResult> InvokeAsync(GetNotifyTemplatesArgs args, InvokeOptions? opts = null)
        public static Output<GetNotifyTemplatesResult> Invoke(GetNotifyTemplatesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNotifyTemplatesResult> getNotifyTemplates(GetNotifyTemplatesArgs args, InvokeOptions options)
    public static Output<GetNotifyTemplatesResult> getNotifyTemplates(GetNotifyTemplatesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: volcengine:vmp/getNotifyTemplates:getNotifyTemplates
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Channel string
    The channel of notify template. Valid values: LarkBotWebhook, DingTalkBotWebhook, WeComBotWebhook.
    Ids List<string>
    A list of IDs.
    Name string
    The name of notify template. This field support fuzzy query.
    NameRegex string
    A Name Regex of Resource.
    OutputFile string
    File name where to save data source results.
    Channel string
    The channel of notify template. Valid values: LarkBotWebhook, DingTalkBotWebhook, WeComBotWebhook.
    Ids []string
    A list of IDs.
    Name string
    The name of notify template. This field support fuzzy query.
    NameRegex string
    A Name Regex of Resource.
    OutputFile string
    File name where to save data source results.
    channel String
    The channel of notify template. Valid values: LarkBotWebhook, DingTalkBotWebhook, WeComBotWebhook.
    ids List<String>
    A list of IDs.
    name String
    The name of notify template. This field support fuzzy query.
    nameRegex String
    A Name Regex of Resource.
    outputFile String
    File name where to save data source results.
    channel string
    The channel of notify template. Valid values: LarkBotWebhook, DingTalkBotWebhook, WeComBotWebhook.
    ids string[]
    A list of IDs.
    name string
    The name of notify template. This field support fuzzy query.
    nameRegex string
    A Name Regex of Resource.
    outputFile string
    File name where to save data source results.
    channel str
    The channel of notify template. Valid values: LarkBotWebhook, DingTalkBotWebhook, WeComBotWebhook.
    ids Sequence[str]
    A list of IDs.
    name str
    The name of notify template. This field support fuzzy query.
    name_regex str
    A Name Regex of Resource.
    output_file str
    File name where to save data source results.
    channel String
    The channel of notify template. Valid values: LarkBotWebhook, DingTalkBotWebhook, WeComBotWebhook.
    ids List<String>
    A list of IDs.
    name String
    The name of notify template. This field support fuzzy query.
    nameRegex String
    A Name Regex of Resource.
    outputFile String
    File name where to save data source results.

    getNotifyTemplates Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    NotifyTemplates List<GetNotifyTemplatesNotifyTemplate>
    The collection of query.
    TotalCount int
    The total count of query.
    Channel string
    The channel of notify template. Valid values: LarkBotWebhook, DingTalkBotWebhook, WeComBotWebhook.
    Ids List<string>
    Name string
    The name of notify template.
    NameRegex string
    OutputFile string
    Id string
    The provider-assigned unique ID for this managed resource.
    NotifyTemplates []GetNotifyTemplatesNotifyTemplate
    The collection of query.
    TotalCount int
    The total count of query.
    Channel string
    The channel of notify template. Valid values: LarkBotWebhook, DingTalkBotWebhook, WeComBotWebhook.
    Ids []string
    Name string
    The name of notify template.
    NameRegex string
    OutputFile string
    id String
    The provider-assigned unique ID for this managed resource.
    notifyTemplates List<GetNotifyTemplatesNotifyTemplate>
    The collection of query.
    totalCount Integer
    The total count of query.
    channel String
    The channel of notify template. Valid values: LarkBotWebhook, DingTalkBotWebhook, WeComBotWebhook.
    ids List<String>
    name String
    The name of notify template.
    nameRegex String
    outputFile String
    id string
    The provider-assigned unique ID for this managed resource.
    notifyTemplates GetNotifyTemplatesNotifyTemplate[]
    The collection of query.
    totalCount number
    The total count of query.
    channel string
    The channel of notify template. Valid values: LarkBotWebhook, DingTalkBotWebhook, WeComBotWebhook.
    ids string[]
    name string
    The name of notify template.
    nameRegex string
    outputFile string
    id str
    The provider-assigned unique ID for this managed resource.
    notify_templates Sequence[GetNotifyTemplatesNotifyTemplate]
    The collection of query.
    total_count int
    The total count of query.
    channel str
    The channel of notify template. Valid values: LarkBotWebhook, DingTalkBotWebhook, WeComBotWebhook.
    ids Sequence[str]
    name str
    The name of notify template.
    name_regex str
    output_file str
    id String
    The provider-assigned unique ID for this managed resource.
    notifyTemplates List<Property Map>
    The collection of query.
    totalCount Number
    The total count of query.
    channel String
    The channel of notify template. Valid values: LarkBotWebhook, DingTalkBotWebhook, WeComBotWebhook.
    ids List<String>
    name String
    The name of notify template.
    nameRegex String
    outputFile String

    Supporting Types

    GetNotifyTemplatesNotifyTemplate

    Actives List<GetNotifyTemplatesNotifyTemplateActive>
    The active notify template info.
    Channel string
    The channel of notify template. Valid values: LarkBotWebhook, DingTalkBotWebhook, WeComBotWebhook.
    CreateTime string
    The create time of notify template.
    Description string
    The description of notify template.
    Id string
    The ID of notify template.
    Name string
    The name of notify template. This field support fuzzy query.
    Resolveds List<GetNotifyTemplatesNotifyTemplateResolved>
    The resolved notify template info.
    UpdateTime string
    The update time of notify template.
    Actives []GetNotifyTemplatesNotifyTemplateActive
    The active notify template info.
    Channel string
    The channel of notify template. Valid values: LarkBotWebhook, DingTalkBotWebhook, WeComBotWebhook.
    CreateTime string
    The create time of notify template.
    Description string
    The description of notify template.
    Id string
    The ID of notify template.
    Name string
    The name of notify template. This field support fuzzy query.
    Resolveds []GetNotifyTemplatesNotifyTemplateResolved
    The resolved notify template info.
    UpdateTime string
    The update time of notify template.
    actives List<GetNotifyTemplatesNotifyTemplateActive>
    The active notify template info.
    channel String
    The channel of notify template. Valid values: LarkBotWebhook, DingTalkBotWebhook, WeComBotWebhook.
    createTime String
    The create time of notify template.
    description String
    The description of notify template.
    id String
    The ID of notify template.
    name String
    The name of notify template. This field support fuzzy query.
    resolveds List<GetNotifyTemplatesNotifyTemplateResolved>
    The resolved notify template info.
    updateTime String
    The update time of notify template.
    actives GetNotifyTemplatesNotifyTemplateActive[]
    The active notify template info.
    channel string
    The channel of notify template. Valid values: LarkBotWebhook, DingTalkBotWebhook, WeComBotWebhook.
    createTime string
    The create time of notify template.
    description string
    The description of notify template.
    id string
    The ID of notify template.
    name string
    The name of notify template. This field support fuzzy query.
    resolveds GetNotifyTemplatesNotifyTemplateResolved[]
    The resolved notify template info.
    updateTime string
    The update time of notify template.
    actives Sequence[GetNotifyTemplatesNotifyTemplateActive]
    The active notify template info.
    channel str
    The channel of notify template. Valid values: LarkBotWebhook, DingTalkBotWebhook, WeComBotWebhook.
    create_time str
    The create time of notify template.
    description str
    The description of notify template.
    id str
    The ID of notify template.
    name str
    The name of notify template. This field support fuzzy query.
    resolveds Sequence[GetNotifyTemplatesNotifyTemplateResolved]
    The resolved notify template info.
    update_time str
    The update time of notify template.
    actives List<Property Map>
    The active notify template info.
    channel String
    The channel of notify template. Valid values: LarkBotWebhook, DingTalkBotWebhook, WeComBotWebhook.
    createTime String
    The create time of notify template.
    description String
    The description of notify template.
    id String
    The ID of notify template.
    name String
    The name of notify template. This field support fuzzy query.
    resolveds List<Property Map>
    The resolved notify template info.
    updateTime String
    The update time of notify template.

    GetNotifyTemplatesNotifyTemplateActive

    Content string
    The content of notify template.
    Title string
    The title of notify template.
    Content string
    The content of notify template.
    Title string
    The title of notify template.
    content String
    The content of notify template.
    title String
    The title of notify template.
    content string
    The content of notify template.
    title string
    The title of notify template.
    content str
    The content of notify template.
    title str
    The title of notify template.
    content String
    The content of notify template.
    title String
    The title of notify template.

    GetNotifyTemplatesNotifyTemplateResolved

    Content string
    The content of notify template.
    Title string
    The title of notify template.
    Content string
    The content of notify template.
    Title string
    The title of notify template.
    content String
    The content of notify template.
    title String
    The title of notify template.
    content string
    The content of notify template.
    title string
    The title of notify template.
    content str
    The content of notify template.
    title str
    The title of notify template.
    content String
    The content of notify template.
    title String
    The title of notify template.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.34 published on Wednesday, Jul 2, 2025 by Volcengine