New Relic v5.47.0 published on Wednesday, Jun 25, 2025 by Pulumi
newrelic.getAlertChannel
Explore with Pulumi AI
Use this data source to get information about a specific alert channel in New Relic that already exists.
WARNING: The
newrelic.AlertChannel
data source is deprecated and will be removed in the next major release.
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
resources:
# Resource
fooAlertPolicy:
type: newrelic:AlertPolicy
name: foo
properties:
name: foo
# Using the data source and resource together
fooAlertPolicyChannel:
type: newrelic:AlertPolicyChannel
name: foo
properties:
policyId: ${fooAlertPolicy.id}
channelId: ${foo.id}
variables:
# Data source
foo:
fn::invoke:
function: newrelic:getAlertChannel
arguments:
name: foo@example.com
Using getAlertChannel
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 getAlertChannel(args: GetAlertChannelArgs, opts?: InvokeOptions): Promise<GetAlertChannelResult>
function getAlertChannelOutput(args: GetAlertChannelOutputArgs, opts?: InvokeOptions): Output<GetAlertChannelResult>
def get_alert_channel(account_id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAlertChannelResult
def get_alert_channel_output(account_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAlertChannelResult]
func LookupAlertChannel(ctx *Context, args *LookupAlertChannelArgs, opts ...InvokeOption) (*LookupAlertChannelResult, error)
func LookupAlertChannelOutput(ctx *Context, args *LookupAlertChannelOutputArgs, opts ...InvokeOption) LookupAlertChannelResultOutput
> Note: This function is named LookupAlertChannel
in the Go SDK.
public static class GetAlertChannel
{
public static Task<GetAlertChannelResult> InvokeAsync(GetAlertChannelArgs args, InvokeOptions? opts = null)
public static Output<GetAlertChannelResult> Invoke(GetAlertChannelInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAlertChannelResult> getAlertChannel(GetAlertChannelArgs args, InvokeOptions options)
public static Output<GetAlertChannelResult> getAlertChannel(GetAlertChannelArgs args, InvokeOptions options)
fn::invoke:
function: newrelic:index/getAlertChannel:getAlertChannel
arguments:
# arguments dictionary
The following arguments are supported:
- name str
- The name of the alert channel in New Relic.
- account_
id str - The New Relic account ID to operate on. This allows you to override the
account_id
attribute set on the provider. Defaults to the environment variableNEW_RELIC_ACCOUNT_ID
.
getAlertChannel Result
The following output properties are available:
- Account
Id string - Config
Pulumi.
New Relic. Outputs. Get Alert Channel Config - Alert channel configuration.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Policy
Ids List<string> - A list of policy IDs associated with the alert channel.
- Type string
- Alert channel type, either:
email
,opsgenie
,pagerduty
,slack
,victorops
, orwebhook
.
- Account
Id string - Config
Get
Alert Channel Config - Alert channel configuration.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Policy
Ids []string - A list of policy IDs associated with the alert channel.
- Type string
- Alert channel type, either:
email
,opsgenie
,pagerduty
,slack
,victorops
, orwebhook
.
- account
Id String - config
Get
Alert Channel Config - Alert channel configuration.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- policy
Ids List<String> - A list of policy IDs associated with the alert channel.
- type String
- Alert channel type, either:
email
,opsgenie
,pagerduty
,slack
,victorops
, orwebhook
.
- account
Id string - config
Get
Alert Channel Config - Alert channel configuration.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- policy
Ids string[] - A list of policy IDs associated with the alert channel.
- type string
- Alert channel type, either:
email
,opsgenie
,pagerduty
,slack
,victorops
, orwebhook
.
- account_
id str - config
Get
Alert Channel Config - Alert channel configuration.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- policy_
ids Sequence[str] - A list of policy IDs associated with the alert channel.
- type str
- Alert channel type, either:
email
,opsgenie
,pagerduty
,slack
,victorops
, orwebhook
.
- account
Id String - config Property Map
- Alert channel configuration.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- policy
Ids List<String> - A list of policy IDs associated with the alert channel.
- type String
- Alert channel type, either:
email
,opsgenie
,pagerduty
,slack
,victorops
, orwebhook
.
Supporting Types
GetAlertChannelConfig
- Api
Key string - Auth
Password string - Auth
Type string - Auth
Username string - Base
Url string - Channel string
- Headers Dictionary<string, string>
- Include
Json stringAttachment - Key string
- Payload Dictionary<string, string>
- Payload
String string - Payload
Type string - Recipients string
- Region string
- Route
Key string - Service
Key string - string
- Teams string
- Url string
- User
Id string
- Api
Key string - Auth
Password string - Auth
Type string - Auth
Username string - Base
Url string - Channel string
- Headers map[string]string
- Include
Json stringAttachment - Key string
- Payload map[string]string
- Payload
String string - Payload
Type string - Recipients string
- Region string
- Route
Key string - Service
Key string - string
- Teams string
- Url string
- User
Id string
- api
Key String - auth
Password String - auth
Type String - auth
Username String - base
Url String - channel String
- headers Map<String,String>
- include
Json StringAttachment - key String
- payload Map<String,String>
- payload
String String - payload
Type String - recipients String
- region String
- route
Key String - service
Key String - String
- teams String
- url String
- user
Id String
- api
Key string - auth
Password string - auth
Type string - auth
Username string - base
Url string - channel string
- headers {[key: string]: string}
- include
Json stringAttachment - key string
- payload {[key: string]: string}
- payload
String string - payload
Type string - recipients string
- region string
- route
Key string - service
Key string - string
- teams string
- url string
- user
Id string
- api_
key str - auth_
password str - auth_
type str - auth_
username str - base_
url str - channel str
- headers Mapping[str, str]
- include_
json_ strattachment - key str
- payload Mapping[str, str]
- payload_
string str - payload_
type str - recipients str
- region str
- route_
key str - service_
key str - str
- teams str
- url str
- user_
id str
- api
Key String - auth
Password String - auth
Type String - auth
Username String - base
Url String - channel String
- headers Map<String>
- include
Json StringAttachment - key String
- payload Map<String>
- payload
String String - payload
Type String - recipients String
- region String
- route
Key String - service
Key String - String
- teams String
- url String
- user
Id String
Package Details
- Repository
- New Relic pulumi/pulumi-newrelic
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
newrelic
Terraform Provider.