getAlertChannel

Use this data source to get information about a specific alert channel in New Relic that already exists.

Example Usage

Coming soon!

Coming soon!

Coming soon!

import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";

const fooAlertChannel = newrelic.getAlertChannel({
    name: "foo@example.com",
});
// Resource
const fooAlertPolicy = new newrelic.AlertPolicy("fooAlertPolicy", {});
// Using the data source and resource together
const fooAlertPolicyChannel = new newrelic.AlertPolicyChannel("fooAlertPolicyChannel", {
    policyId: fooAlertPolicy.id,
    channelId: fooAlertChannel.then(fooAlertChannel => fooAlertChannel.id),
});

Using getAlertChannel

function getAlertChannel(args: GetAlertChannelArgs, opts?: InvokeOptions): Promise<GetAlertChannelResult>
def get_alert_channel(name: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetAlertChannelResult
func LookupAlertChannel(ctx *Context, args *LookupAlertChannelArgs, opts ...InvokeOption) (*LookupAlertChannelResult, error)

Note: This function is named LookupAlertChannel in the Go SDK.

public static class GetAlertChannel {
    public static Task<GetAlertChannelResult> InvokeAsync(GetAlertChannelArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string
The name of the alert channel in New Relic.
Name string
The name of the alert channel in New Relic.
name string
The name of the alert channel in New Relic.
name str
The name of the alert channel in New Relic.

getAlertChannel Result

The following output properties are available:

Config Pulumi.NewRelic.Outputs.GetAlertChannelConfig
Alert channel configuration.
Id string
The provider-assigned unique ID for this managed resource.
Name string
PolicyIds List<int>
A list of policy IDs associated with the alert channel.
Type string
Alert channel type, either: email, opsgenie, pagerduty, slack, victorops, or webhook.
Config GetAlertChannelConfig
Alert channel configuration.
Id string
The provider-assigned unique ID for this managed resource.
Name string
PolicyIds []int
A list of policy IDs associated with the alert channel.
Type string
Alert channel type, either: email, opsgenie, pagerduty, slack, victorops, or webhook.
config GetAlertChannelConfig
Alert channel configuration.
id string
The provider-assigned unique ID for this managed resource.
name string
policyIds number[]
A list of policy IDs associated with the alert channel.
type string
Alert channel type, either: email, opsgenie, pagerduty, slack, victorops, or webhook.
config GetAlertChannelConfig
Alert channel configuration.
id str
The provider-assigned unique ID for this managed resource.
name str
policy_ids Sequence[int]
A list of policy IDs associated with the alert channel.
type str
Alert channel type, either: email, opsgenie, pagerduty, slack, victorops, or webhook.

Supporting Types

GetAlertChannelConfig

ApiKey string
AuthPassword string
AuthType string
AuthUsername string
BaseUrl string
Channel string
Headers Dictionary<string, string>
IncludeJsonAttachment string
Key string
Payload Dictionary<string, string>
PayloadType string
Recipients string
Region string
RouteKey string
ServiceKey string
Tags string
Teams string
Url string
UserId string
ApiKey string
AuthPassword string
AuthType string
AuthUsername string
BaseUrl string
Channel string
Headers map[string]string
IncludeJsonAttachment string
Key string
Payload map[string]string
PayloadType string
Recipients string
Region string
RouteKey string
ServiceKey string
Tags string
Teams string
Url string
UserId string
apiKey string
authPassword string
authType string
authUsername string
baseUrl string
channel string
headers {[key: string]: string}
includeJsonAttachment string
key string
payload {[key: string]: string}
payloadType string
recipients string
region string
routeKey string
serviceKey string
tags string
teams string
url string
userId string

Package Details

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