GetNotifier

Use this data source to retrieve information about a Rancher v2 notifier.

Example Usage

using Pulumi;
using Rancher2 = Pulumi.Rancher2;

class MyStack : Stack
{
    public MyStack()
    {
        var foo = Output.Create(Rancher2.GetNotifier.InvokeAsync(new Rancher2.GetNotifierArgs
        {
            ClusterId = "<cluster_id>",
            Name = "foo",
        }));
    }

}

Coming soon!

import pulumi
import pulumi_rancher2 as rancher2

foo = rancher2.get_notifier(cluster_id="<cluster_id>",
    name="foo")
import * as pulumi from "@pulumi/pulumi";
import * as rancher2 from "@pulumi/rancher2";

const foo = pulumi.output(rancher2.getNotifier({
    clusterId: "<cluster_id>",
    name: "foo",
}, { async: true }));

Using GetNotifier

function getNotifier(args: GetNotifierArgs, opts?: InvokeOptions): Promise<GetNotifierResult>
function  get_notifier(cluster_id=None, name=None, opts=None)
func LookupNotifier(ctx *Context, args *LookupNotifierArgs, opts ...InvokeOption) (*LookupNotifierResult, error)

Note: This function is named LookupNotifier in the Go SDK.

public static class GetNotifier {
    public static Task<GetNotifierResult> InvokeAsync(GetNotifierArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

ClusterId string

The cluster id where create notifier (string)

Name string

The name of the notifier (string)

ClusterId string

The cluster id where create notifier (string)

Name string

The name of the notifier (string)

clusterId string

The cluster id where create notifier (string)

name string

The name of the notifier (string)

cluster_id str

The cluster id where create notifier (string)

name str

The name of the notifier (string)

GetNotifier Result

The following output properties are available:

Annotations Dictionary<string, object>

(Computed) Annotations for notifier object (map)

ClusterId string
Description string

(Computed) The notifier description (string)

Id string

The provider-assigned unique ID for this managed resource.

Labels Dictionary<string, object>

(Computed) Labels for notifier object (map)

Name string
PagerdutyConfig GetNotifierPagerdutyConfig

(Computed) Pagerduty config for notifier (list maxitems:1)

SlackConfig GetNotifierSlackConfig

(Computed) Slack config for notifier (list maxitems:1)

SmtpConfig GetNotifierSmtpConfig

(Computed) SMTP config for notifier (list maxitems:1)

WebhookConfig GetNotifierWebhookConfig

(Computed) Webhook config for notifier (list maxitems:1)

WechatConfig GetNotifierWechatConfig

(Computed) Wechat config for notifier (list maxitems:1)

Annotations map[string]interface{}

(Computed) Annotations for notifier object (map)

ClusterId string
Description string

(Computed) The notifier description (string)

Id string

The provider-assigned unique ID for this managed resource.

Labels map[string]interface{}

(Computed) Labels for notifier object (map)

Name string
PagerdutyConfig GetNotifierPagerdutyConfig

(Computed) Pagerduty config for notifier (list maxitems:1)

SlackConfig GetNotifierSlackConfig

(Computed) Slack config for notifier (list maxitems:1)

SmtpConfig GetNotifierSmtpConfig

(Computed) SMTP config for notifier (list maxitems:1)

WebhookConfig GetNotifierWebhookConfig

(Computed) Webhook config for notifier (list maxitems:1)

WechatConfig GetNotifierWechatConfig

(Computed) Wechat config for notifier (list maxitems:1)

annotations {[key: string]: any}

(Computed) Annotations for notifier object (map)

clusterId string
description string

(Computed) The notifier description (string)

id string

The provider-assigned unique ID for this managed resource.

labels {[key: string]: any}

(Computed) Labels for notifier object (map)

name string
pagerdutyConfig GetNotifierPagerdutyConfig

(Computed) Pagerduty config for notifier (list maxitems:1)

slackConfig GetNotifierSlackConfig

(Computed) Slack config for notifier (list maxitems:1)

smtpConfig GetNotifierSmtpConfig

(Computed) SMTP config for notifier (list maxitems:1)

webhookConfig GetNotifierWebhookConfig

(Computed) Webhook config for notifier (list maxitems:1)

wechatConfig GetNotifierWechatConfig

(Computed) Wechat config for notifier (list maxitems:1)

annotations Dict[str, Any]

(Computed) Annotations for notifier object (map)

cluster_id str
description str

(Computed) The notifier description (string)

id str

The provider-assigned unique ID for this managed resource.

labels Dict[str, Any]

(Computed) Labels for notifier object (map)

name str
pagerduty_config Dict[GetNotifierPagerdutyConfig]

(Computed) Pagerduty config for notifier (list maxitems:1)

slack_config Dict[GetNotifierSlackConfig]

(Computed) Slack config for notifier (list maxitems:1)

smtp_config Dict[GetNotifierSmtpConfig]

(Computed) SMTP config for notifier (list maxitems:1)

webhook_config Dict[GetNotifierWebhookConfig]

(Computed) Webhook config for notifier (list maxitems:1)

wechat_config Dict[GetNotifierWechatConfig]

(Computed) Wechat config for notifier (list maxitems:1)

Supporting Types

GetNotifierPagerdutyConfig

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

ServiceKey string
ProxyUrl string
ServiceKey string
ProxyUrl string
serviceKey string
proxyUrl string
serviceKey str
proxyUrl str

GetNotifierSlackConfig

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

DefaultRecipient string
Url string
ProxyUrl string
DefaultRecipient string
Url string
ProxyUrl string
defaultRecipient string
url string
proxyUrl string
defaultRecipient str
url str
proxyUrl str

GetNotifierSmtpConfig

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

DefaultRecipient string
Host string
Port int
Sender string
Password string
Tls bool
Username string
DefaultRecipient string
Host string
Port int
Sender string
Password string
Tls bool
Username string
defaultRecipient string
host string
port number
sender string
password string
tls boolean
username string
defaultRecipient str
host str
port float
sender str
password str
tls bool
username str

GetNotifierWebhookConfig

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Url string
ProxyUrl string
Url string
ProxyUrl string
url string
proxyUrl string
url str
proxyUrl str

GetNotifierWechatConfig

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Agent string
Corp string
DefaultRecipient string
Secret string
ProxyUrl string
RecipientType string
Agent string
Corp string
DefaultRecipient string
Secret string
ProxyUrl string
RecipientType string
agent string
corp string
defaultRecipient string
secret string
proxyUrl string
recipientType string
agent str
corp str
defaultRecipient str
secret str
proxyUrl str
recipientType str

Package Details

Repository
https://github.com/pulumi/pulumi-rancher2
License
Apache-2.0
Notes
This Pulumi package is based on the rancher2 Terraform Provider.