Volcengine v0.0.34 published on Wednesday, Jul 2, 2025 by Volcengine
volcengine.vmp.NotifyTemplates
Explore with Pulumi AI
Deprecated: volcengine.vmp.NotifyTemplates has been deprecated in favor of volcengine.vmp.getNotifyTemplates
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 NotifyTemplates
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 notifyTemplates(args: NotifyTemplatesArgs, opts?: InvokeOptions): Promise<NotifyTemplatesResult>
function notifyTemplatesOutput(args: NotifyTemplatesOutputArgs, opts?: InvokeOptions): Output<NotifyTemplatesResult>
def 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) -> NotifyTemplatesResult
def 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[NotifyTemplatesResult]
func NotifyTemplates(ctx *Context, args *NotifyTemplatesArgs, opts ...InvokeOption) (*NotifyTemplatesResult, error)
func NotifyTemplatesOutput(ctx *Context, args *NotifyTemplatesOutputArgs, opts ...InvokeOption) NotifyTemplatesResultOutput
public static class NotifyTemplates
{
public static Task<NotifyTemplatesResult> InvokeAsync(NotifyTemplatesArgs args, InvokeOptions? opts = null)
public static Output<NotifyTemplatesResult> Invoke(NotifyTemplatesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<NotifyTemplatesResult> notifyTemplates(NotifyTemplatesArgs args, InvokeOptions options)
public static Output<NotifyTemplatesResult> notifyTemplates(NotifyTemplatesArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:vmp:NotifyTemplates
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.
- Name
Regex string - A Name Regex of Resource.
- Output
File 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.
- Name
Regex string - A Name Regex of Resource.
- Output
File 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.
- name
Regex String - A Name Regex of Resource.
- output
File 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.
- name
Regex string - A Name Regex of Resource.
- output
File 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.
- name
Regex String - A Name Regex of Resource.
- output
File String - File name where to save data source results.
NotifyTemplates Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Notify
Templates List<NotifyTemplates Notify Template> - The collection of query.
- Total
Count 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.
- Name
Regex string - Output
File string
- Id string
- The provider-assigned unique ID for this managed resource.
- Notify
Templates []NotifyTemplates Notify Template - The collection of query.
- Total
Count 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.
- Name
Regex string - Output
File string
- id String
- The provider-assigned unique ID for this managed resource.
- notify
Templates List<NotifyTemplates Notify Template> - The collection of query.
- total
Count 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.
- name
Regex String - output
File String
- id string
- The provider-assigned unique ID for this managed resource.
- notify
Templates NotifyTemplates Notify Template[] - The collection of query.
- total
Count 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.
- name
Regex string - output
File string
- id str
- The provider-assigned unique ID for this managed resource.
- notify_
templates Sequence[NotifyTemplates Notify Template] - 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.
- notify
Templates List<Property Map> - The collection of query.
- total
Count 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.
- name
Regex String - output
File String
Supporting Types
NotifyTemplatesNotifyTemplate
- Actives
List<Notify
Templates Notify Template Active> - The active notify template info.
- Channel string
- The channel of notify template. Valid values:
LarkBotWebhook
,DingTalkBotWebhook
,WeComBotWebhook
. - Create
Time 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<Notify
Templates Notify Template Resolved> - The resolved notify template info.
- Update
Time string - The update time of notify template.
- Actives
[]Notify
Templates Notify Template Active - The active notify template info.
- Channel string
- The channel of notify template. Valid values:
LarkBotWebhook
,DingTalkBotWebhook
,WeComBotWebhook
. - Create
Time 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
[]Notify
Templates Notify Template Resolved - The resolved notify template info.
- Update
Time string - The update time of notify template.
- actives
List<Notify
Templates Notify Template Active> - The active notify template info.
- channel String
- The channel of notify template. Valid values:
LarkBotWebhook
,DingTalkBotWebhook
,WeComBotWebhook
. - create
Time 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<Notify
Templates Notify Template Resolved> - The resolved notify template info.
- update
Time String - The update time of notify template.
- actives
Notify
Templates Notify Template Active[] - The active notify template info.
- channel string
- The channel of notify template. Valid values:
LarkBotWebhook
,DingTalkBotWebhook
,WeComBotWebhook
. - create
Time 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
Notify
Templates Notify Template Resolved[] - The resolved notify template info.
- update
Time string - The update time of notify template.
- actives
Sequence[Notify
Templates Notify Template Active] - 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[Notify
Templates Notify Template Resolved] - 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
. - create
Time 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.
- update
Time String - The update time of notify template.
NotifyTemplatesNotifyTemplateActive
NotifyTemplatesNotifyTemplateResolved
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.