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
LookupAlertChannelin the Go SDK.
public static class GetAlertChannel {
public static Task<GetAlertChannelResult> InvokeAsync(GetAlertChannelArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
GetAlertChannel Result
The following output properties are available:
- 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<int> A list of policy IDs associated with the alert channel.
- Type string
Alert channel type, either:
email,opsgenie,pagerduty,slack,victorops, orwebhook.
- Config
Get
Alert Channel Config Alert channel configuration.
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
- Policy
Ids []int A list of policy IDs associated with the alert channel.
- Type string
Alert channel type, either:
email,opsgenie,pagerduty,slack,victorops, orwebhook.
- config
Get
Alert Channel Config Alert channel configuration.
- id string
The provider-assigned unique ID for this managed resource.
- name string
- policy
Ids number[] A list of policy IDs associated with the alert channel.
- type string
Alert channel type, either:
email,opsgenie,pagerduty,slack,victorops, orwebhook.
- config
Dict[Get
Alert Channel Config] 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, orwebhook.
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.
- 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
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
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
Type string - recipients string
- region string
- route
Key string - service
Key string - string
- teams string
- url string
- user
Id string
Package Details
- Repository
- https://github.com/pulumi/pulumi-newrelic
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
newrelicTerraform Provider.