GetAlertChannel

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

Using GetAlertChannel

function getAlertChannel(args: GetAlertChannelArgs, opts?: InvokeOptions): Promise<GetAlertChannelResult>
function  get_alert_channel(name=None, opts=None)
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 Dict[GetAlertChannelConfig]

Alert channel configuration.

id str

The provider-assigned unique ID for this managed resource.

name str
policy_ids List[Integer]

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

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

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
api_key str
authPassword str
authType str
authUsername str
baseUrl str
channel str
headers Dict[str, str]
includeJsonAttachment str
key str
payload Dict[str, str]
payloadType str
recipients str
region str
routeKey str
serviceKey str
tags str
teams str
url str
userId str

Package Details

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