1. Packages
  2. New Relic
  3. API Docs
  4. getNotificationDestination
New Relic v5.25.3 published on Tuesday, Jun 25, 2024 by Pulumi

newrelic.getNotificationDestination

Explore with Pulumi AI

newrelic logo
New Relic v5.25.3 published on Tuesday, Jun 25, 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[str] = None,
                                     id: Optional[str] = None,
                                     name: Optional[str] = None,
                                     secure_urls: Optional[Sequence[GetNotificationDestinationSecureUrl]] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetNotificationDestinationResult
    def get_notification_destination_output(account_id: Optional[pulumi.Input[str]] = None,
                                     id: Optional[pulumi.Input[str]] = None,
                                     name: Optional[pulumi.Input[str]] = None,
                                     secure_urls: Optional[pulumi.Input[Sequence[pulumi.Input[GetNotificationDestinationSecureUrlArgs]]]] = 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 string
    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:

    SecureUrls List<Pulumi.NewRelic.Inputs.GetNotificationDestinationSecureUrl>
    The URL in secure format, showing only the prefix, as the secure_suffix is a secret.
    AccountId string
    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:

    SecureUrls []GetNotificationDestinationSecureUrl
    The URL in secure format, showing only the prefix, as the secure_suffix is a secret.
    accountId String
    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:

    secureUrls List<GetNotificationDestinationSecureUrl>
    The URL in secure format, showing only the prefix, as the secure_suffix is a secret.
    accountId string
    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:

    secureUrls GetNotificationDestinationSecureUrl[]
    The URL in secure format, showing only the prefix, as the secure_suffix is a secret.
    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 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:

    secure_urls Sequence[GetNotificationDestinationSecureUrl]
    The URL in secure format, showing only the prefix, as the secure_suffix is a secret.
    accountId String
    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:

    secureUrls List<Property Map>
    The URL in secure format, showing only the prefix, as the secure_suffix is a secret.

    getNotificationDestination Result

    The following output properties are available:

    AccountId string
    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.
    SecureUrls List<Pulumi.NewRelic.Outputs.GetNotificationDestinationSecureUrl>
    The URL in secure format, showing only the prefix, as the secure_suffix is a secret.
    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 string
    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.
    SecureUrls []GetNotificationDestinationSecureUrl
    The URL in secure format, showing only the prefix, as the secure_suffix is a secret.
    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 String
    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.
    secureUrls List<GetNotificationDestinationSecureUrl>
    The URL in secure format, showing only the prefix, as the secure_suffix is a secret.
    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 string
    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.
    secureUrls GetNotificationDestinationSecureUrl[]
    The URL in secure format, showing only the prefix, as the secure_suffix is a secret.
    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 str
    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.
    secure_urls Sequence[GetNotificationDestinationSecureUrl]
    The URL in secure format, showing only the prefix, as the secure_suffix is a secret.
    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 String
    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.
    secureUrls List<Property Map>
    The URL in secure format, showing only the prefix, as the secure_suffix is a secret.
    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.

    GetNotificationDestinationSecureUrl

    Prefix string
    Prefix string
    prefix String
    prefix string
    prefix str
    prefix String

    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.25.3 published on Tuesday, Jun 25, 2024 by Pulumi