Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

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",
        }));
    }

}
package main

import (
    "github.com/pulumi/pulumi-rancher2/sdk/v2/go/rancher2"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := rancher2.LookupNotifier(ctx, &rancher2.LookupNotifierArgs{
            ClusterId: "<cluster_id>",
            Name:      "foo",
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
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>
def get_notifier(cluster_id: Optional[str] = None, dingtalk_config: Optional[GetNotifierDingtalkConfigArgs] = None, msteams_config: Optional[GetNotifierMsteamsConfigArgs] = None, name: Optional[str] = None, opts: Optional[InvokeOptions] = None) -> GetNotifierResult
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)

DingtalkConfig GetNotifierDingtalkConfigArgs

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

MsteamsConfig GetNotifierMsteamsConfigArgs

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

ClusterId string

The cluster id where create notifier (string)

Name string

The name of the notifier (string)

DingtalkConfig GetNotifierDingtalkConfig

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

MsteamsConfig GetNotifierMsteamsConfig

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

clusterId string

The cluster id where create notifier (string)

name string

The name of the notifier (string)

dingtalkConfig GetNotifierDingtalkConfig

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

msteamsConfig GetNotifierMsteamsConfig

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

cluster_id str

The cluster id where create notifier (string)

name str

The name of the notifier (string)

dingtalk_config GetNotifierDingtalkConfigArgs

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

msteams_config GetNotifierMsteamsConfigArgs

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

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)

DingtalkConfig GetNotifierDingtalkConfig

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

MsteamsConfig GetNotifierMsteamsConfig

(Computed) MSTeams 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)

DingtalkConfig GetNotifierDingtalkConfig

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

MsteamsConfig GetNotifierMsteamsConfig

(Computed) MSTeams 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)

dingtalkConfig GetNotifierDingtalkConfig

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

msteamsConfig GetNotifierMsteamsConfig

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

annotations Mapping[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 Mapping[str, Any]

(Computed) Labels for notifier object (map)

name str
pagerduty_config GetNotifierPagerdutyConfig

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

slack_config GetNotifierSlackConfig

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

smtp_config GetNotifierSmtpConfig

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

webhook_config GetNotifierWebhookConfig

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

wechat_config GetNotifierWechatConfig

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

dingtalk_config GetNotifierDingtalkConfig

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

msteams_config GetNotifierMsteamsConfig

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

Supporting Types

GetNotifierDingtalkConfig

Url string
ProxyUrl string
Secret string
Url string
ProxyUrl string
Secret string
url string
proxyUrl string
secret string
url str
proxy_url str
secret str

GetNotifierMsteamsConfig

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

GetNotifierPagerdutyConfig

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

GetNotifierSlackConfig

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

GetNotifierSmtpConfig

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

GetNotifierWebhookConfig

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

GetNotifierWechatConfig

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

Package Details

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