Rancher2

Pulumi Official
Package maintained by Pulumi
v3.8.0 published on Tuesday, May 31, 2022 by Pulumi

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/v3/go/rancher2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := rancher2.LookupNotifier(ctx, &GetNotifierArgs{
			ClusterId: "<cluster_id>",
			Name:      "foo",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

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

Coming soon!

Using getNotifier

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 getNotifier(args: GetNotifierArgs, opts?: InvokeOptions): Promise<GetNotifierResult>
function getNotifierOutput(args: GetNotifierOutputArgs, opts?: InvokeOptions): Output<GetNotifierResult>
def get_notifier(cluster_id: Optional[str] = None,
                 dingtalk_config: Optional[GetNotifierDingtalkConfig] = None,
                 msteams_config: Optional[GetNotifierMsteamsConfig] = None,
                 name: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetNotifierResult
def get_notifier_output(cluster_id: Optional[pulumi.Input[str]] = None,
                 dingtalk_config: Optional[pulumi.Input[GetNotifierDingtalkConfigArgs]] = None,
                 msteams_config: Optional[pulumi.Input[GetNotifierMsteamsConfigArgs]] = None,
                 name: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetNotifierResult]
func LookupNotifier(ctx *Context, args *LookupNotifierArgs, opts ...InvokeOption) (*LookupNotifierResult, error)
func LookupNotifierOutput(ctx *Context, args *LookupNotifierOutputArgs, opts ...InvokeOption) LookupNotifierResultOutput

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

public static class GetNotifier 
{
    public static Task<GetNotifierResult> InvokeAsync(GetNotifierArgs args, InvokeOptions? opts = null)
    public static Output<GetNotifierResult> Invoke(GetNotifierInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNotifierResult> getNotifier(GetNotifierArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: rancher2:index/getNotifier:getNotifier
  Arguments:
    # Arguments dictionary

The following arguments are supported:

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)

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 GetNotifierDingtalkConfig

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

msteams_config 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 Property Map

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

msteamsConfig Property Map

(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 Map<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 Map<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 {[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)

annotations Map<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 Map<Any>

(Computed) Labels for notifier object (map)

name String
pagerdutyConfig Property Map

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

slackConfig Property Map

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

smtpConfig Property Map

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

webhookConfig Property Map

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

wechatConfig Property Map

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

dingtalkConfig Property Map

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

msteamsConfig Property Map

(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 string
proxyUrl string
secret string
url str
proxy_url str
secret str
url String
proxyUrl String
secret String

GetNotifierMsteamsConfig

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

GetNotifierPagerdutyConfig

ServiceKey string
ProxyUrl string
ServiceKey string
ProxyUrl string
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
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 Integer
sender String
password String
tls Boolean
username String
defaultRecipient string
host string
port number
sender string
password string
tls boolean
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 string
proxyUrl string
url str
proxy_url str
url String
proxyUrl String

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
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.