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
LookupNotifierin the Go SDK.
public static class GetNotifier {
public static Task<GetNotifierResult> InvokeAsync(GetNotifierArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- 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)
- 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)
- 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)
- 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)
- 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[GetNotifier Pagerduty Config] (Computed) Pagerduty config for notifier (list maxitems:1)
- slack_
config Dict[GetNotifier Slack Config] (Computed) Slack config for notifier (list maxitems:1)
- smtp_
config Dict[GetNotifier Smtp Config] (Computed) SMTP config for notifier (list maxitems:1)
- webhook_
config Dict[GetNotifier Webhook Config] (Computed) Webhook config for notifier (list maxitems:1)
- wechat_
config Dict[GetNotifier Wechat Config] (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.
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.
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.
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.
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.
Package Details
- Repository
- https://github.com/pulumi/pulumi-rancher2
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rancher2Terraform Provider.