1. Packages
  2. New Relic
  3. API Docs
  4. getNotificationDestination
New Relic v5.22.1 published on Friday, Mar 29, 2024 by Pulumi

newrelic.getNotificationDestination

Explore with Pulumi AI

newrelic logo
New Relic v5.22.1 published on Friday, Mar 29, 2024 by Pulumi

    Using getNotificationDestination

    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 getNotificationDestination(args: GetNotificationDestinationArgs, opts?: InvokeOptions): Promise<GetNotificationDestinationResult>
    function getNotificationDestinationOutput(args: GetNotificationDestinationOutputArgs, opts?: InvokeOptions): Output<GetNotificationDestinationResult>
    def get_notification_destination(account_id: Optional[int] = None,
                                     id: Optional[str] = None,
                                     name: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetNotificationDestinationResult
    def get_notification_destination_output(account_id: Optional[pulumi.Input[int]] = None,
                                     id: Optional[pulumi.Input[str]] = None,
                                     name: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetNotificationDestinationResult]
    func LookupNotificationDestination(ctx *Context, args *LookupNotificationDestinationArgs, opts ...InvokeOption) (*LookupNotificationDestinationResult, error)
    func LookupNotificationDestinationOutput(ctx *Context, args *LookupNotificationDestinationOutputArgs, opts ...InvokeOption) LookupNotificationDestinationResultOutput

    > Note: This function is named LookupNotificationDestination in the Go SDK.

    public static class GetNotificationDestination 
    {
        public static Task<GetNotificationDestinationResult> InvokeAsync(GetNotificationDestinationArgs args, InvokeOptions? opts = null)
        public static Output<GetNotificationDestinationResult> Invoke(GetNotificationDestinationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNotificationDestinationResult> getNotificationDestination(GetNotificationDestinationArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: newrelic:index/getNotificationDestination:getNotificationDestination
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId int
    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 variable NEW_RELIC_ACCOUNT_ID.
    Id string
    The id of the notification destination in New Relic.
    Name string

    The name of the notification destination.

    Optional:

    AccountId int
    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 variable NEW_RELIC_ACCOUNT_ID.
    Id string
    The id of the notification destination in New Relic.
    Name string

    The name of the notification destination.

    Optional:

    accountId Integer
    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 variable NEW_RELIC_ACCOUNT_ID.
    id String
    The id of the notification destination in New Relic.
    name String

    The name of the notification destination.

    Optional:

    accountId number
    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 variable NEW_RELIC_ACCOUNT_ID.
    id string
    The id of the notification destination in New Relic.
    name string

    The name of the notification destination.

    Optional:

    account_id int
    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 variable NEW_RELIC_ACCOUNT_ID.
    id str
    The id of the notification destination in New Relic.
    name str

    The name of the notification destination.

    Optional:

    accountId Number
    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 variable NEW_RELIC_ACCOUNT_ID.
    id String
    The id of the notification destination in New Relic.
    name String

    The name of the notification destination.

    Optional:

    getNotificationDestination Result

    The following output properties are available:

    AccountId int
    Active bool
    An indication whether the notification destination is active or not.
    Guid string
    The unique entity identifier of the destination in New Relic.
    Properties List<Pulumi.NewRelic.Outputs.GetNotificationDestinationProperty>
    A nested block that describes a notification destination property.
    Status string
    The status of the notification destination.
    Type string
    The notification destination type, either: EMAIL, SERVICE_NOW, WEBHOOK, JIRA, MOBILE_PUSH, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION or PAGERDUTY_SERVICE_INTEGRATION, SLACK and SLACK_COLLABORATION.
    Id string
    Name string
    The name of the notification destination.
    AccountId int
    Active bool
    An indication whether the notification destination is active or not.
    Guid string
    The unique entity identifier of the destination in New Relic.
    Properties []GetNotificationDestinationProperty
    A nested block that describes a notification destination property.
    Status string
    The status of the notification destination.
    Type string
    The notification destination type, either: EMAIL, SERVICE_NOW, WEBHOOK, JIRA, MOBILE_PUSH, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION or PAGERDUTY_SERVICE_INTEGRATION, SLACK and SLACK_COLLABORATION.
    Id string
    Name string
    The name of the notification destination.
    accountId Integer
    active Boolean
    An indication whether the notification destination is active or not.
    guid String
    The unique entity identifier of the destination in New Relic.
    properties List<GetNotificationDestinationProperty>
    A nested block that describes a notification destination property.
    status String
    The status of the notification destination.
    type String
    The notification destination type, either: EMAIL, SERVICE_NOW, WEBHOOK, JIRA, MOBILE_PUSH, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION or PAGERDUTY_SERVICE_INTEGRATION, SLACK and SLACK_COLLABORATION.
    id String
    name String
    The name of the notification destination.
    accountId number
    active boolean
    An indication whether the notification destination is active or not.
    guid string
    The unique entity identifier of the destination in New Relic.
    properties GetNotificationDestinationProperty[]
    A nested block that describes a notification destination property.
    status string
    The status of the notification destination.
    type string
    The notification destination type, either: EMAIL, SERVICE_NOW, WEBHOOK, JIRA, MOBILE_PUSH, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION or PAGERDUTY_SERVICE_INTEGRATION, SLACK and SLACK_COLLABORATION.
    id string
    name string
    The name of the notification destination.
    account_id int
    active bool
    An indication whether the notification destination is active or not.
    guid str
    The unique entity identifier of the destination in New Relic.
    properties Sequence[GetNotificationDestinationProperty]
    A nested block that describes a notification destination property.
    status str
    The status of the notification destination.
    type str
    The notification destination type, either: EMAIL, SERVICE_NOW, WEBHOOK, JIRA, MOBILE_PUSH, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION or PAGERDUTY_SERVICE_INTEGRATION, SLACK and SLACK_COLLABORATION.
    id str
    name str
    The name of the notification destination.
    accountId Number
    active Boolean
    An indication whether the notification destination is active or not.
    guid String
    The unique entity identifier of the destination in New Relic.
    properties List<Property Map>
    A nested block that describes a notification destination property.
    status String
    The status of the notification destination.
    type String
    The notification destination type, either: EMAIL, SERVICE_NOW, WEBHOOK, JIRA, MOBILE_PUSH, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION or PAGERDUTY_SERVICE_INTEGRATION, SLACK and SLACK_COLLABORATION.
    id String
    name String
    The name of the notification destination.

    Supporting Types

    GetNotificationDestinationProperty

    Key string
    Notification property key.
    Value string
    Notification property value.
    DisplayValue string
    Notification property display key.
    Label string
    Notification property label.
    Key string
    Notification property key.
    Value string
    Notification property value.
    DisplayValue string
    Notification property display key.
    Label string
    Notification property label.
    key String
    Notification property key.
    value String
    Notification property value.
    displayValue String
    Notification property display key.
    label String
    Notification property label.
    key string
    Notification property key.
    value string
    Notification property value.
    displayValue string
    Notification property display key.
    label string
    Notification property label.
    key str
    Notification property key.
    value str
    Notification property value.
    display_value str
    Notification property display key.
    label str
    Notification property label.
    key String
    Notification property key.
    value String
    Notification property value.
    displayValue String
    Notification property display key.
    label String
    Notification property label.

    Package Details

    Repository
    New Relic pulumi/pulumi-newrelic
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the newrelic Terraform Provider.
    newrelic logo
    New Relic v5.22.1 published on Friday, Mar 29, 2024 by Pulumi