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:
- Cluster
Id string The cluster id where create notifier (string)
- Name string
The name of the notifier (string)
- Dingtalk
Config GetNotifier Dingtalk Config Args (Computed) Dingtalk config for notifier (list maxitems:1)
- Msteams
Config GetNotifier Msteams Config Args (Computed) MSTeams config for notifier (list maxitems:1)
- Cluster
Id string The cluster id where create notifier (string)
- Name string
The name of the notifier (string)
- Dingtalk
Config GetNotifier Dingtalk Config (Computed) Dingtalk config for notifier (list maxitems:1)
- Msteams
Config GetNotifier Msteams Config (Computed) MSTeams config for notifier (list maxitems:1)
- cluster
Id string The cluster id where create notifier (string)
- name string
The name of the notifier (string)
- dingtalk
Config GetNotifier Dingtalk Config (Computed) Dingtalk config for notifier (list maxitems:1)
- msteams
Config GetNotifier Msteams Config (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 GetNotifier Dingtalk Config Args (Computed) Dingtalk config for notifier (list maxitems:1)
- msteams_
config GetNotifier Msteams Config Args (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)
- Cluster
Id 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
- Pagerduty
Config GetNotifier Pagerduty Config (Computed) Pagerduty config for notifier (list maxitems:1)
- Slack
Config GetNotifier Slack Config (Computed) Slack config for notifier (list maxitems:1)
- Smtp
Config GetNotifier Smtp Config (Computed) SMTP config for notifier (list maxitems:1)
- Webhook
Config GetNotifier Webhook Config (Computed) Webhook config for notifier (list maxitems:1)
- Wechat
Config GetNotifier Wechat Config (Computed) Wechat config for notifier (list maxitems:1)
- Dingtalk
Config GetNotifier Dingtalk Config (Computed) Dingtalk config for notifier (list maxitems:1)
- Msteams
Config GetNotifier Msteams Config (Computed) MSTeams config for notifier (list maxitems:1)
- Annotations map[string]interface{}
(Computed) Annotations for notifier object (map)
- Cluster
Id 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
- Pagerduty
Config GetNotifier Pagerduty Config (Computed) Pagerduty config for notifier (list maxitems:1)
- Slack
Config GetNotifier Slack Config (Computed) Slack config for notifier (list maxitems:1)
- Smtp
Config GetNotifier Smtp Config (Computed) SMTP config for notifier (list maxitems:1)
- Webhook
Config GetNotifier Webhook Config (Computed) Webhook config for notifier (list maxitems:1)
- Wechat
Config GetNotifier Wechat Config (Computed) Wechat config for notifier (list maxitems:1)
- Dingtalk
Config GetNotifier Dingtalk Config (Computed) Dingtalk config for notifier (list maxitems:1)
- Msteams
Config GetNotifier Msteams Config (Computed) MSTeams config for notifier (list maxitems:1)
- annotations {[key: string]: any}
(Computed) Annotations for notifier object (map)
- cluster
Id 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
- pagerduty
Config GetNotifier Pagerduty Config (Computed) Pagerduty config for notifier (list maxitems:1)
- slack
Config GetNotifier Slack Config (Computed) Slack config for notifier (list maxitems:1)
- smtp
Config GetNotifier Smtp Config (Computed) SMTP config for notifier (list maxitems:1)
- webhook
Config GetNotifier Webhook Config (Computed) Webhook config for notifier (list maxitems:1)
- wechat
Config GetNotifier Wechat Config (Computed) Wechat config for notifier (list maxitems:1)
- dingtalk
Config GetNotifier Dingtalk Config (Computed) Dingtalk config for notifier (list maxitems:1)
- msteams
Config GetNotifier Msteams Config (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 GetNotifier Pagerduty Config (Computed) Pagerduty config for notifier (list maxitems:1)
- slack_
config GetNotifier Slack Config (Computed) Slack config for notifier (list maxitems:1)
- smtp_
config GetNotifier Smtp Config (Computed) SMTP config for notifier (list maxitems:1)
- webhook_
config GetNotifier Webhook Config (Computed) Webhook config for notifier (list maxitems:1)
- wechat_
config GetNotifier Wechat Config (Computed) Wechat config for notifier (list maxitems:1)
- dingtalk_
config GetNotifier Dingtalk Config (Computed) Dingtalk config for notifier (list maxitems:1)
- msteams_
config GetNotifier Msteams Config (Computed) MSTeams config for notifier (list maxitems:1)
Supporting Types
GetNotifierDingtalkConfig
GetNotifierMsteamsConfig
GetNotifierPagerdutyConfig
- Service
Key string - Proxy
Url string
- Service
Key string - Proxy
Url string
- service
Key string - proxy
Url string
- service_
key str - proxy_
url str
GetNotifierSlackConfig
- Default
Recipient string - Url string
- Proxy
Url string
- Default
Recipient string - Url string
- Proxy
Url string
- default
Recipient string - url string
- proxy
Url string
- default_
recipient str - url str
- proxy_
url str
GetNotifierSmtpConfig
GetNotifierWebhookConfig
GetNotifierWechatConfig
- Agent string
- Corp string
- Default
Recipient string - Secret string
- Proxy
Url string - Recipient
Type string
- Agent string
- Corp string
- Default
Recipient string - Secret string
- Proxy
Url string - Recipient
Type string
- agent string
- corp string
- default
Recipient string - secret string
- proxy
Url string - recipient
Type string
- agent str
- corp str
- default_
recipient str - secret str
- proxy_
url str - recipient_
type 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.