Rancher 2 v6.1.1 published on Friday, May 10, 2024 by Pulumi
rancher2.getNotifier
Explore with Pulumi AI
Use this data source to retrieve information about a Rancher v2 notifier.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as rancher2 from "@pulumi/rancher2";
const foo = rancher2.getNotifier({
name: "foo",
clusterId: "<cluster_id>",
});
import pulumi
import pulumi_rancher2 as rancher2
foo = rancher2.get_notifier(name="foo",
cluster_id="<cluster_id>")
package main
import (
"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := rancher2.LookupNotifier(ctx, &rancher2.LookupNotifierArgs{
Name: "foo",
ClusterId: "<cluster_id>",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Rancher2 = Pulumi.Rancher2;
return await Deployment.RunAsync(() =>
{
var foo = Rancher2.GetNotifier.Invoke(new()
{
Name = "foo",
ClusterId = "<cluster_id>",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.rancher2.Rancher2Functions;
import com.pulumi.rancher2.inputs.GetNotifierArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var foo = Rancher2Functions.getNotifier(GetNotifierArgs.builder()
.name("foo")
.clusterId("<cluster_id>")
.build());
}
}
variables:
foo:
fn::invoke:
Function: rancher2:getNotifier
Arguments:
name: foo
clusterId: <cluster_id>
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:
- 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 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 - (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 Property Map - (Computed) Dingtalk config for notifier (list maxitems:1)
- msteams
Config 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)
- 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 Map<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 Map<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 {[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)
- annotations Map<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 Map<Any>
- (Computed) Labels for notifier object (map)
- name String
- pagerduty
Config Property Map - (Computed) Pagerduty config for notifier (list maxitems:1)
- slack
Config Property Map - (Computed) Slack config for notifier (list maxitems:1)
- smtp
Config Property Map - (Computed) SMTP config for notifier (list maxitems:1)
- webhook
Config Property Map - (Computed) Webhook config for notifier (list maxitems:1)
- wechat
Config Property Map - (Computed) Wechat config for notifier (list maxitems:1)
- dingtalk
Config Property Map - (Computed) Dingtalk config for notifier (list maxitems:1)
- msteams
Config Property Map - (Computed) MSTeams config for notifier (list maxitems:1)
Supporting Types
GetNotifierDingtalkConfig
GetNotifierMsteamsConfig
GetNotifierPagerdutyConfig
- Service
Key string - Pagerduty service key
- Proxy
Url string - Pagerduty proxy URL
- Service
Key string - Pagerduty service key
- Proxy
Url string - Pagerduty proxy URL
- service
Key String - Pagerduty service key
- proxy
Url String - Pagerduty proxy URL
- service
Key string - Pagerduty service key
- proxy
Url string - Pagerduty proxy URL
- service_
key str - Pagerduty service key
- proxy_
url str - Pagerduty proxy URL
- service
Key String - Pagerduty service key
- proxy
Url String - Pagerduty proxy URL
GetNotifierSlackConfig
- Default
Recipient string - Slack default channel
- Url string
- Slack URL
- Proxy
Url string - Slack proxy URL
- Default
Recipient string - Slack default channel
- Url string
- Slack URL
- Proxy
Url string - Slack proxy URL
- default
Recipient String - Slack default channel
- url String
- Slack URL
- proxy
Url String - Slack proxy URL
- default
Recipient string - Slack default channel
- url string
- Slack URL
- proxy
Url string - Slack proxy URL
- default_
recipient str - Slack default channel
- url str
- Slack URL
- proxy_
url str - Slack proxy URL
- default
Recipient String - Slack default channel
- url String
- Slack URL
- proxy
Url String - Slack proxy URL
GetNotifierSmtpConfig
GetNotifierWebhookConfig
GetNotifierWechatConfig
- Agent string
- Wechat application agent ID
- Corp string
- Wechat corporation ID
- Default
Recipient string - Wechat default channel
- Secret string
- Wechat application secret
- Proxy
Url string - Wechat proxy URL
- Recipient
Type string - Wechat recipient type
- Agent string
- Wechat application agent ID
- Corp string
- Wechat corporation ID
- Default
Recipient string - Wechat default channel
- Secret string
- Wechat application secret
- Proxy
Url string - Wechat proxy URL
- Recipient
Type string - Wechat recipient type
- agent String
- Wechat application agent ID
- corp String
- Wechat corporation ID
- default
Recipient String - Wechat default channel
- secret String
- Wechat application secret
- proxy
Url String - Wechat proxy URL
- recipient
Type String - Wechat recipient type
- agent string
- Wechat application agent ID
- corp string
- Wechat corporation ID
- default
Recipient string - Wechat default channel
- secret string
- Wechat application secret
- proxy
Url string - Wechat proxy URL
- recipient
Type string - Wechat recipient type
- agent str
- Wechat application agent ID
- corp str
- Wechat corporation ID
- default_
recipient str - Wechat default channel
- secret str
- Wechat application secret
- proxy_
url str - Wechat proxy URL
- recipient_
type str - Wechat recipient type
- agent String
- Wechat application agent ID
- corp String
- Wechat corporation ID
- default
Recipient String - Wechat default channel
- secret String
- Wechat application secret
- proxy
Url String - Wechat proxy URL
- recipient
Type String - Wechat recipient type
Package Details
- Repository
- Rancher2 pulumi/pulumi-rancher2
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rancher2
Terraform Provider.