rancher2.Notifier
Explore with Pulumi AI
Provides a Rancher v2 Notifier resource. This can be used to create notifiers for Rancher v2 environments and retrieve their information.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as rancher2 from "@pulumi/rancher2";
// Create a new rancher2 Notifier
const foo = new rancher2.Notifier("foo", {
name: "foo",
clusterId: "<cluster_id>",
description: "Terraform notifier acceptance test",
sendResolved: true,
pagerdutyConfig: {
serviceKey: "XXXXXXXX",
proxyUrl: "http://proxy.test.io",
},
});
import pulumi
import pulumi_rancher2 as rancher2
# Create a new rancher2 Notifier
foo = rancher2.Notifier("foo",
name="foo",
cluster_id="<cluster_id>",
description="Terraform notifier acceptance test",
send_resolved=True,
pagerduty_config=rancher2.NotifierPagerdutyConfigArgs(
service_key="XXXXXXXX",
proxy_url="http://proxy.test.io",
))
package main
import (
"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Create a new rancher2 Notifier
_, err := rancher2.NewNotifier(ctx, "foo", &rancher2.NotifierArgs{
Name: pulumi.String("foo"),
ClusterId: pulumi.String("<cluster_id>"),
Description: pulumi.String("Terraform notifier acceptance test"),
SendResolved: pulumi.Bool(true),
PagerdutyConfig: &rancher2.NotifierPagerdutyConfigArgs{
ServiceKey: pulumi.String("XXXXXXXX"),
ProxyUrl: pulumi.String("http://proxy.test.io"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Rancher2 = Pulumi.Rancher2;
return await Deployment.RunAsync(() =>
{
// Create a new rancher2 Notifier
var foo = new Rancher2.Notifier("foo", new()
{
Name = "foo",
ClusterId = "<cluster_id>",
Description = "Terraform notifier acceptance test",
SendResolved = true,
PagerdutyConfig = new Rancher2.Inputs.NotifierPagerdutyConfigArgs
{
ServiceKey = "XXXXXXXX",
ProxyUrl = "http://proxy.test.io",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.rancher2.Notifier;
import com.pulumi.rancher2.NotifierArgs;
import com.pulumi.rancher2.inputs.NotifierPagerdutyConfigArgs;
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) {
// Create a new rancher2 Notifier
var foo = new Notifier("foo", NotifierArgs.builder()
.name("foo")
.clusterId("<cluster_id>")
.description("Terraform notifier acceptance test")
.sendResolved("true")
.pagerdutyConfig(NotifierPagerdutyConfigArgs.builder()
.serviceKey("XXXXXXXX")
.proxyUrl("http://proxy.test.io")
.build())
.build());
}
}
resources:
# Create a new rancher2 Notifier
foo:
type: rancher2:Notifier
properties:
name: foo
clusterId: <cluster_id>
description: Terraform notifier acceptance test
sendResolved: 'true'
pagerdutyConfig:
serviceKey: XXXXXXXX
proxyUrl: http://proxy.test.io
Create Notifier Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Notifier(name: string, args: NotifierArgs, opts?: CustomResourceOptions);
@overload
def Notifier(resource_name: str,
args: NotifierArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Notifier(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
name: Optional[str] = None,
description: Optional[str] = None,
dingtalk_config: Optional[NotifierDingtalkConfigArgs] = None,
labels: Optional[Mapping[str, Any]] = None,
msteams_config: Optional[NotifierMsteamsConfigArgs] = None,
annotations: Optional[Mapping[str, Any]] = None,
pagerduty_config: Optional[NotifierPagerdutyConfigArgs] = None,
send_resolved: Optional[bool] = None,
slack_config: Optional[NotifierSlackConfigArgs] = None,
smtp_config: Optional[NotifierSmtpConfigArgs] = None,
webhook_config: Optional[NotifierWebhookConfigArgs] = None,
wechat_config: Optional[NotifierWechatConfigArgs] = None)
func NewNotifier(ctx *Context, name string, args NotifierArgs, opts ...ResourceOption) (*Notifier, error)
public Notifier(string name, NotifierArgs args, CustomResourceOptions? opts = null)
public Notifier(String name, NotifierArgs args)
public Notifier(String name, NotifierArgs args, CustomResourceOptions options)
type: rancher2:Notifier
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args NotifierArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args NotifierArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args NotifierArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NotifierArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NotifierArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var notifierResource = new Rancher2.Notifier("notifierResource", new()
{
ClusterId = "string",
Name = "string",
Description = "string",
DingtalkConfig = new Rancher2.Inputs.NotifierDingtalkConfigArgs
{
Url = "string",
ProxyUrl = "string",
Secret = "string",
},
Labels =
{
{ "string", "any" },
},
MsteamsConfig = new Rancher2.Inputs.NotifierMsteamsConfigArgs
{
Url = "string",
ProxyUrl = "string",
},
Annotations =
{
{ "string", "any" },
},
PagerdutyConfig = new Rancher2.Inputs.NotifierPagerdutyConfigArgs
{
ServiceKey = "string",
ProxyUrl = "string",
},
SendResolved = false,
SlackConfig = new Rancher2.Inputs.NotifierSlackConfigArgs
{
DefaultRecipient = "string",
Url = "string",
ProxyUrl = "string",
},
SmtpConfig = new Rancher2.Inputs.NotifierSmtpConfigArgs
{
DefaultRecipient = "string",
Host = "string",
Port = 0,
Sender = "string",
Password = "string",
Tls = false,
Username = "string",
},
WebhookConfig = new Rancher2.Inputs.NotifierWebhookConfigArgs
{
Url = "string",
ProxyUrl = "string",
},
WechatConfig = new Rancher2.Inputs.NotifierWechatConfigArgs
{
Agent = "string",
Corp = "string",
DefaultRecipient = "string",
Secret = "string",
ProxyUrl = "string",
RecipientType = "string",
},
});
example, err := rancher2.NewNotifier(ctx, "notifierResource", &rancher2.NotifierArgs{
ClusterId: pulumi.String("string"),
Name: pulumi.String("string"),
Description: pulumi.String("string"),
DingtalkConfig: &rancher2.NotifierDingtalkConfigArgs{
Url: pulumi.String("string"),
ProxyUrl: pulumi.String("string"),
Secret: pulumi.String("string"),
},
Labels: pulumi.Map{
"string": pulumi.Any("any"),
},
MsteamsConfig: &rancher2.NotifierMsteamsConfigArgs{
Url: pulumi.String("string"),
ProxyUrl: pulumi.String("string"),
},
Annotations: pulumi.Map{
"string": pulumi.Any("any"),
},
PagerdutyConfig: &rancher2.NotifierPagerdutyConfigArgs{
ServiceKey: pulumi.String("string"),
ProxyUrl: pulumi.String("string"),
},
SendResolved: pulumi.Bool(false),
SlackConfig: &rancher2.NotifierSlackConfigArgs{
DefaultRecipient: pulumi.String("string"),
Url: pulumi.String("string"),
ProxyUrl: pulumi.String("string"),
},
SmtpConfig: &rancher2.NotifierSmtpConfigArgs{
DefaultRecipient: pulumi.String("string"),
Host: pulumi.String("string"),
Port: pulumi.Int(0),
Sender: pulumi.String("string"),
Password: pulumi.String("string"),
Tls: pulumi.Bool(false),
Username: pulumi.String("string"),
},
WebhookConfig: &rancher2.NotifierWebhookConfigArgs{
Url: pulumi.String("string"),
ProxyUrl: pulumi.String("string"),
},
WechatConfig: &rancher2.NotifierWechatConfigArgs{
Agent: pulumi.String("string"),
Corp: pulumi.String("string"),
DefaultRecipient: pulumi.String("string"),
Secret: pulumi.String("string"),
ProxyUrl: pulumi.String("string"),
RecipientType: pulumi.String("string"),
},
})
var notifierResource = new Notifier("notifierResource", NotifierArgs.builder()
.clusterId("string")
.name("string")
.description("string")
.dingtalkConfig(NotifierDingtalkConfigArgs.builder()
.url("string")
.proxyUrl("string")
.secret("string")
.build())
.labels(Map.of("string", "any"))
.msteamsConfig(NotifierMsteamsConfigArgs.builder()
.url("string")
.proxyUrl("string")
.build())
.annotations(Map.of("string", "any"))
.pagerdutyConfig(NotifierPagerdutyConfigArgs.builder()
.serviceKey("string")
.proxyUrl("string")
.build())
.sendResolved(false)
.slackConfig(NotifierSlackConfigArgs.builder()
.defaultRecipient("string")
.url("string")
.proxyUrl("string")
.build())
.smtpConfig(NotifierSmtpConfigArgs.builder()
.defaultRecipient("string")
.host("string")
.port(0)
.sender("string")
.password("string")
.tls(false)
.username("string")
.build())
.webhookConfig(NotifierWebhookConfigArgs.builder()
.url("string")
.proxyUrl("string")
.build())
.wechatConfig(NotifierWechatConfigArgs.builder()
.agent("string")
.corp("string")
.defaultRecipient("string")
.secret("string")
.proxyUrl("string")
.recipientType("string")
.build())
.build());
notifier_resource = rancher2.Notifier("notifierResource",
cluster_id="string",
name="string",
description="string",
dingtalk_config=rancher2.NotifierDingtalkConfigArgs(
url="string",
proxy_url="string",
secret="string",
),
labels={
"string": "any",
},
msteams_config=rancher2.NotifierMsteamsConfigArgs(
url="string",
proxy_url="string",
),
annotations={
"string": "any",
},
pagerduty_config=rancher2.NotifierPagerdutyConfigArgs(
service_key="string",
proxy_url="string",
),
send_resolved=False,
slack_config=rancher2.NotifierSlackConfigArgs(
default_recipient="string",
url="string",
proxy_url="string",
),
smtp_config=rancher2.NotifierSmtpConfigArgs(
default_recipient="string",
host="string",
port=0,
sender="string",
password="string",
tls=False,
username="string",
),
webhook_config=rancher2.NotifierWebhookConfigArgs(
url="string",
proxy_url="string",
),
wechat_config=rancher2.NotifierWechatConfigArgs(
agent="string",
corp="string",
default_recipient="string",
secret="string",
proxy_url="string",
recipient_type="string",
))
const notifierResource = new rancher2.Notifier("notifierResource", {
clusterId: "string",
name: "string",
description: "string",
dingtalkConfig: {
url: "string",
proxyUrl: "string",
secret: "string",
},
labels: {
string: "any",
},
msteamsConfig: {
url: "string",
proxyUrl: "string",
},
annotations: {
string: "any",
},
pagerdutyConfig: {
serviceKey: "string",
proxyUrl: "string",
},
sendResolved: false,
slackConfig: {
defaultRecipient: "string",
url: "string",
proxyUrl: "string",
},
smtpConfig: {
defaultRecipient: "string",
host: "string",
port: 0,
sender: "string",
password: "string",
tls: false,
username: "string",
},
webhookConfig: {
url: "string",
proxyUrl: "string",
},
wechatConfig: {
agent: "string",
corp: "string",
defaultRecipient: "string",
secret: "string",
proxyUrl: "string",
recipientType: "string",
},
});
type: rancher2:Notifier
properties:
annotations:
string: any
clusterId: string
description: string
dingtalkConfig:
proxyUrl: string
secret: string
url: string
labels:
string: any
msteamsConfig:
proxyUrl: string
url: string
name: string
pagerdutyConfig:
proxyUrl: string
serviceKey: string
sendResolved: false
slackConfig:
defaultRecipient: string
proxyUrl: string
url: string
smtpConfig:
defaultRecipient: string
host: string
password: string
port: 0
sender: string
tls: false
username: string
webhookConfig:
proxyUrl: string
url: string
wechatConfig:
agent: string
corp: string
defaultRecipient: string
proxyUrl: string
recipientType: string
secret: string
Notifier Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Notifier resource accepts the following input properties:
- Cluster
Id string - The cluster id where create notifier (string)
- Annotations Dictionary<string, object>
- Annotations for notifier object (map)
- Description string
- The notifier description (string)
- Dingtalk
Config NotifierDingtalk Config - Dingtalk config for notifier (list maxitems:1)
- Labels Dictionary<string, object>
- Labels for notifier object (map)
- Msteams
Config NotifierMsteams Config - MSTeams config for notifier (list maxitems:1)
- Name string
- The name of the notifier (string)
- Pagerduty
Config NotifierPagerduty Config - Pagerduty config for notifier (list maxitems:1)
- Send
Resolved bool - = (Optional) Enable the notifier to send resolved notifications. Default
false
(bool) - Slack
Config NotifierSlack Config - Slack config for notifier (list maxitems:1)
- Smtp
Config NotifierSmtp Config - SMTP config for notifier (list maxitems:1)
- Webhook
Config NotifierWebhook Config - Webhook config for notifier (list maxitems:1)
- Wechat
Config NotifierWechat Config - Wechat config for notifier (list maxitems:1)
- Cluster
Id string - The cluster id where create notifier (string)
- Annotations map[string]interface{}
- Annotations for notifier object (map)
- Description string
- The notifier description (string)
- Dingtalk
Config NotifierDingtalk Config Args - Dingtalk config for notifier (list maxitems:1)
- Labels map[string]interface{}
- Labels for notifier object (map)
- Msteams
Config NotifierMsteams Config Args - MSTeams config for notifier (list maxitems:1)
- Name string
- The name of the notifier (string)
- Pagerduty
Config NotifierPagerduty Config Args - Pagerduty config for notifier (list maxitems:1)
- Send
Resolved bool - = (Optional) Enable the notifier to send resolved notifications. Default
false
(bool) - Slack
Config NotifierSlack Config Args - Slack config for notifier (list maxitems:1)
- Smtp
Config NotifierSmtp Config Args - SMTP config for notifier (list maxitems:1)
- Webhook
Config NotifierWebhook Config Args - Webhook config for notifier (list maxitems:1)
- Wechat
Config NotifierWechat Config Args - Wechat config for notifier (list maxitems:1)
- cluster
Id String - The cluster id where create notifier (string)
- annotations Map<String,Object>
- Annotations for notifier object (map)
- description String
- The notifier description (string)
- dingtalk
Config NotifierDingtalk Config - Dingtalk config for notifier (list maxitems:1)
- labels Map<String,Object>
- Labels for notifier object (map)
- msteams
Config NotifierMsteams Config - MSTeams config for notifier (list maxitems:1)
- name String
- The name of the notifier (string)
- pagerduty
Config NotifierPagerduty Config - Pagerduty config for notifier (list maxitems:1)
- send
Resolved Boolean - = (Optional) Enable the notifier to send resolved notifications. Default
false
(bool) - slack
Config NotifierSlack Config - Slack config for notifier (list maxitems:1)
- smtp
Config NotifierSmtp Config - SMTP config for notifier (list maxitems:1)
- webhook
Config NotifierWebhook Config - Webhook config for notifier (list maxitems:1)
- wechat
Config NotifierWechat Config - Wechat config for notifier (list maxitems:1)
- cluster
Id string - The cluster id where create notifier (string)
- annotations {[key: string]: any}
- Annotations for notifier object (map)
- description string
- The notifier description (string)
- dingtalk
Config NotifierDingtalk Config - Dingtalk config for notifier (list maxitems:1)
- labels {[key: string]: any}
- Labels for notifier object (map)
- msteams
Config NotifierMsteams Config - MSTeams config for notifier (list maxitems:1)
- name string
- The name of the notifier (string)
- pagerduty
Config NotifierPagerduty Config - Pagerduty config for notifier (list maxitems:1)
- send
Resolved boolean - = (Optional) Enable the notifier to send resolved notifications. Default
false
(bool) - slack
Config NotifierSlack Config - Slack config for notifier (list maxitems:1)
- smtp
Config NotifierSmtp Config - SMTP config for notifier (list maxitems:1)
- webhook
Config NotifierWebhook Config - Webhook config for notifier (list maxitems:1)
- wechat
Config NotifierWechat Config - Wechat config for notifier (list maxitems:1)
- cluster_
id str - The cluster id where create notifier (string)
- annotations Mapping[str, Any]
- Annotations for notifier object (map)
- description str
- The notifier description (string)
- dingtalk_
config NotifierDingtalk Config Args - Dingtalk config for notifier (list maxitems:1)
- labels Mapping[str, Any]
- Labels for notifier object (map)
- msteams_
config NotifierMsteams Config Args - MSTeams config for notifier (list maxitems:1)
- name str
- The name of the notifier (string)
- pagerduty_
config NotifierPagerduty Config Args - Pagerduty config for notifier (list maxitems:1)
- send_
resolved bool - = (Optional) Enable the notifier to send resolved notifications. Default
false
(bool) - slack_
config NotifierSlack Config Args - Slack config for notifier (list maxitems:1)
- smtp_
config NotifierSmtp Config Args - SMTP config for notifier (list maxitems:1)
- webhook_
config NotifierWebhook Config Args - Webhook config for notifier (list maxitems:1)
- wechat_
config NotifierWechat Config Args - Wechat config for notifier (list maxitems:1)
- cluster
Id String - The cluster id where create notifier (string)
- annotations Map<Any>
- Annotations for notifier object (map)
- description String
- The notifier description (string)
- dingtalk
Config Property Map - Dingtalk config for notifier (list maxitems:1)
- labels Map<Any>
- Labels for notifier object (map)
- msteams
Config Property Map - MSTeams config for notifier (list maxitems:1)
- name String
- The name of the notifier (string)
- pagerduty
Config Property Map - Pagerduty config for notifier (list maxitems:1)
- send
Resolved Boolean - = (Optional) Enable the notifier to send resolved notifications. Default
false
(bool) - slack
Config Property Map - Slack config for notifier (list maxitems:1)
- smtp
Config Property Map - SMTP config for notifier (list maxitems:1)
- webhook
Config Property Map - Webhook config for notifier (list maxitems:1)
- wechat
Config Property Map - Wechat config for notifier (list maxitems:1)
Outputs
All input properties are implicitly available as output properties. Additionally, the Notifier resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Notifier Resource
Get an existing Notifier resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: NotifierState, opts?: CustomResourceOptions): Notifier
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
annotations: Optional[Mapping[str, Any]] = None,
cluster_id: Optional[str] = None,
description: Optional[str] = None,
dingtalk_config: Optional[NotifierDingtalkConfigArgs] = None,
labels: Optional[Mapping[str, Any]] = None,
msteams_config: Optional[NotifierMsteamsConfigArgs] = None,
name: Optional[str] = None,
pagerduty_config: Optional[NotifierPagerdutyConfigArgs] = None,
send_resolved: Optional[bool] = None,
slack_config: Optional[NotifierSlackConfigArgs] = None,
smtp_config: Optional[NotifierSmtpConfigArgs] = None,
webhook_config: Optional[NotifierWebhookConfigArgs] = None,
wechat_config: Optional[NotifierWechatConfigArgs] = None) -> Notifier
func GetNotifier(ctx *Context, name string, id IDInput, state *NotifierState, opts ...ResourceOption) (*Notifier, error)
public static Notifier Get(string name, Input<string> id, NotifierState? state, CustomResourceOptions? opts = null)
public static Notifier get(String name, Output<String> id, NotifierState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Annotations Dictionary<string, object>
- Annotations for notifier object (map)
- Cluster
Id string - The cluster id where create notifier (string)
- Description string
- The notifier description (string)
- Dingtalk
Config NotifierDingtalk Config - Dingtalk config for notifier (list maxitems:1)
- Labels Dictionary<string, object>
- Labels for notifier object (map)
- Msteams
Config NotifierMsteams Config - MSTeams config for notifier (list maxitems:1)
- Name string
- The name of the notifier (string)
- Pagerduty
Config NotifierPagerduty Config - Pagerduty config for notifier (list maxitems:1)
- Send
Resolved bool - = (Optional) Enable the notifier to send resolved notifications. Default
false
(bool) - Slack
Config NotifierSlack Config - Slack config for notifier (list maxitems:1)
- Smtp
Config NotifierSmtp Config - SMTP config for notifier (list maxitems:1)
- Webhook
Config NotifierWebhook Config - Webhook config for notifier (list maxitems:1)
- Wechat
Config NotifierWechat Config - Wechat config for notifier (list maxitems:1)
- Annotations map[string]interface{}
- Annotations for notifier object (map)
- Cluster
Id string - The cluster id where create notifier (string)
- Description string
- The notifier description (string)
- Dingtalk
Config NotifierDingtalk Config Args - Dingtalk config for notifier (list maxitems:1)
- Labels map[string]interface{}
- Labels for notifier object (map)
- Msteams
Config NotifierMsteams Config Args - MSTeams config for notifier (list maxitems:1)
- Name string
- The name of the notifier (string)
- Pagerduty
Config NotifierPagerduty Config Args - Pagerduty config for notifier (list maxitems:1)
- Send
Resolved bool - = (Optional) Enable the notifier to send resolved notifications. Default
false
(bool) - Slack
Config NotifierSlack Config Args - Slack config for notifier (list maxitems:1)
- Smtp
Config NotifierSmtp Config Args - SMTP config for notifier (list maxitems:1)
- Webhook
Config NotifierWebhook Config Args - Webhook config for notifier (list maxitems:1)
- Wechat
Config NotifierWechat Config Args - Wechat config for notifier (list maxitems:1)
- annotations Map<String,Object>
- Annotations for notifier object (map)
- cluster
Id String - The cluster id where create notifier (string)
- description String
- The notifier description (string)
- dingtalk
Config NotifierDingtalk Config - Dingtalk config for notifier (list maxitems:1)
- labels Map<String,Object>
- Labels for notifier object (map)
- msteams
Config NotifierMsteams Config - MSTeams config for notifier (list maxitems:1)
- name String
- The name of the notifier (string)
- pagerduty
Config NotifierPagerduty Config - Pagerduty config for notifier (list maxitems:1)
- send
Resolved Boolean - = (Optional) Enable the notifier to send resolved notifications. Default
false
(bool) - slack
Config NotifierSlack Config - Slack config for notifier (list maxitems:1)
- smtp
Config NotifierSmtp Config - SMTP config for notifier (list maxitems:1)
- webhook
Config NotifierWebhook Config - Webhook config for notifier (list maxitems:1)
- wechat
Config NotifierWechat Config - Wechat config for notifier (list maxitems:1)
- annotations {[key: string]: any}
- Annotations for notifier object (map)
- cluster
Id string - The cluster id where create notifier (string)
- description string
- The notifier description (string)
- dingtalk
Config NotifierDingtalk Config - Dingtalk config for notifier (list maxitems:1)
- labels {[key: string]: any}
- Labels for notifier object (map)
- msteams
Config NotifierMsteams Config - MSTeams config for notifier (list maxitems:1)
- name string
- The name of the notifier (string)
- pagerduty
Config NotifierPagerduty Config - Pagerduty config for notifier (list maxitems:1)
- send
Resolved boolean - = (Optional) Enable the notifier to send resolved notifications. Default
false
(bool) - slack
Config NotifierSlack Config - Slack config for notifier (list maxitems:1)
- smtp
Config NotifierSmtp Config - SMTP config for notifier (list maxitems:1)
- webhook
Config NotifierWebhook Config - Webhook config for notifier (list maxitems:1)
- wechat
Config NotifierWechat Config - Wechat config for notifier (list maxitems:1)
- annotations Mapping[str, Any]
- Annotations for notifier object (map)
- cluster_
id str - The cluster id where create notifier (string)
- description str
- The notifier description (string)
- dingtalk_
config NotifierDingtalk Config Args - Dingtalk config for notifier (list maxitems:1)
- labels Mapping[str, Any]
- Labels for notifier object (map)
- msteams_
config NotifierMsteams Config Args - MSTeams config for notifier (list maxitems:1)
- name str
- The name of the notifier (string)
- pagerduty_
config NotifierPagerduty Config Args - Pagerduty config for notifier (list maxitems:1)
- send_
resolved bool - = (Optional) Enable the notifier to send resolved notifications. Default
false
(bool) - slack_
config NotifierSlack Config Args - Slack config for notifier (list maxitems:1)
- smtp_
config NotifierSmtp Config Args - SMTP config for notifier (list maxitems:1)
- webhook_
config NotifierWebhook Config Args - Webhook config for notifier (list maxitems:1)
- wechat_
config NotifierWechat Config Args - Wechat config for notifier (list maxitems:1)
- annotations Map<Any>
- Annotations for notifier object (map)
- cluster
Id String - The cluster id where create notifier (string)
- description String
- The notifier description (string)
- dingtalk
Config Property Map - Dingtalk config for notifier (list maxitems:1)
- labels Map<Any>
- Labels for notifier object (map)
- msteams
Config Property Map - MSTeams config for notifier (list maxitems:1)
- name String
- The name of the notifier (string)
- pagerduty
Config Property Map - Pagerduty config for notifier (list maxitems:1)
- send
Resolved Boolean - = (Optional) Enable the notifier to send resolved notifications. Default
false
(bool) - slack
Config Property Map - Slack config for notifier (list maxitems:1)
- smtp
Config Property Map - SMTP config for notifier (list maxitems:1)
- webhook
Config Property Map - Webhook config for notifier (list maxitems:1)
- wechat
Config Property Map - Wechat config for notifier (list maxitems:1)
Supporting Types
NotifierDingtalkConfig, NotifierDingtalkConfigArgs
NotifierMsteamsConfig, NotifierMsteamsConfigArgs
NotifierPagerdutyConfig, NotifierPagerdutyConfigArgs
- Service
Key string - Pagerduty service key
- Proxy
Url string - Pagerduty proxy URL
- Service
Key string - Pagerduty service key
- Proxy
Url string - Pagerduty proxy URL
- service
Key String - Pagerduty service key
- proxy
Url String - Pagerduty proxy URL
- service
Key string - Pagerduty service key
- proxy
Url string - Pagerduty proxy URL
- service_
key str - Pagerduty service key
- proxy_
url str - Pagerduty proxy URL
- service
Key String - Pagerduty service key
- proxy
Url String - Pagerduty proxy URL
NotifierSlackConfig, NotifierSlackConfigArgs
- Default
Recipient string - Slack default channel
- Url string
- Slack URL
- Proxy
Url string - Slack proxy URL
- Default
Recipient string - Slack default channel
- Url string
- Slack URL
- Proxy
Url string - Slack proxy URL
- default
Recipient String - Slack default channel
- url String
- Slack URL
- proxy
Url String - Slack proxy URL
- default
Recipient string - Slack default channel
- url string
- Slack URL
- proxy
Url string - Slack proxy URL
- default_
recipient str - Slack default channel
- url str
- Slack URL
- proxy_
url str - Slack proxy URL
- default
Recipient String - Slack default channel
- url String
- Slack URL
- proxy
Url String - Slack proxy URL
NotifierSmtpConfig, NotifierSmtpConfigArgs
NotifierWebhookConfig, NotifierWebhookConfigArgs
NotifierWechatConfig, NotifierWechatConfigArgs
- Agent string
- Wechat application agent ID
- Corp string
- Wechat corporation ID
- Default
Recipient string - Wechat default channel
- Secret string
- Wechat application secret
- Proxy
Url string - Wechat proxy URL
- Recipient
Type string - Wechat recipient type
- Agent string
- Wechat application agent ID
- Corp string
- Wechat corporation ID
- Default
Recipient string - Wechat default channel
- Secret string
- Wechat application secret
- Proxy
Url string - Wechat proxy URL
- Recipient
Type string - Wechat recipient type
- agent String
- Wechat application agent ID
- corp String
- Wechat corporation ID
- default
Recipient String - Wechat default channel
- secret String
- Wechat application secret
- proxy
Url String - Wechat proxy URL
- recipient
Type String - Wechat recipient type
- agent string
- Wechat application agent ID
- corp string
- Wechat corporation ID
- default
Recipient string - Wechat default channel
- secret string
- Wechat application secret
- proxy
Url string - Wechat proxy URL
- recipient
Type string - Wechat recipient type
- agent str
- Wechat application agent ID
- corp str
- Wechat corporation ID
- default_
recipient str - Wechat default channel
- secret str
- Wechat application secret
- proxy_
url str - Wechat proxy URL
- recipient_
type str - Wechat recipient type
- agent String
- Wechat application agent ID
- corp String
- Wechat corporation ID
- default
Recipient String - Wechat default channel
- secret String
- Wechat application secret
- proxy
Url String - Wechat proxy URL
- recipient
Type String - Wechat recipient type
Import
Notifiers can be imported using the Rancher nNtifier ID
$ pulumi import rancher2:index/notifier:Notifier foo <notifier_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Rancher2 pulumi/pulumi-rancher2
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rancher2
Terraform Provider.