1. Packages
  2. Harness Provider
  3. API Docs
  4. platform
  5. getCentralNotificationChannel
Harness v0.8.0 published on Wednesday, Aug 20, 2025 by Pulumi

harness.platform.getCentralNotificationChannel

Explore with Pulumi AI

harness logo
Harness v0.8.0 published on Wednesday, Aug 20, 2025 by Pulumi

    Data source for retrieving a central notification channel in Harness.

    Using getCentralNotificationChannel

    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 getCentralNotificationChannel(args: GetCentralNotificationChannelArgs, opts?: InvokeOptions): Promise<GetCentralNotificationChannelResult>
    function getCentralNotificationChannelOutput(args: GetCentralNotificationChannelOutputArgs, opts?: InvokeOptions): Output<GetCentralNotificationChannelResult>
    def get_central_notification_channel(account: Optional[str] = None,
                                         channels: Optional[Sequence[GetCentralNotificationChannelChannel]] = None,
                                         created: Optional[int] = None,
                                         identifier: Optional[str] = None,
                                         last_modified: Optional[int] = None,
                                         name: Optional[str] = None,
                                         notification_channel_type: Optional[str] = None,
                                         org: Optional[str] = None,
                                         project: Optional[str] = None,
                                         status: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetCentralNotificationChannelResult
    def get_central_notification_channel_output(account: Optional[pulumi.Input[str]] = None,
                                         channels: Optional[pulumi.Input[Sequence[pulumi.Input[GetCentralNotificationChannelChannelArgs]]]] = None,
                                         created: Optional[pulumi.Input[int]] = None,
                                         identifier: Optional[pulumi.Input[str]] = None,
                                         last_modified: Optional[pulumi.Input[int]] = None,
                                         name: Optional[pulumi.Input[str]] = None,
                                         notification_channel_type: Optional[pulumi.Input[str]] = None,
                                         org: Optional[pulumi.Input[str]] = None,
                                         project: Optional[pulumi.Input[str]] = None,
                                         status: Optional[pulumi.Input[str]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetCentralNotificationChannelResult]
    func LookupCentralNotificationChannel(ctx *Context, args *LookupCentralNotificationChannelArgs, opts ...InvokeOption) (*LookupCentralNotificationChannelResult, error)
    func LookupCentralNotificationChannelOutput(ctx *Context, args *LookupCentralNotificationChannelOutputArgs, opts ...InvokeOption) LookupCentralNotificationChannelResultOutput

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

    public static class GetCentralNotificationChannel 
    {
        public static Task<GetCentralNotificationChannelResult> InvokeAsync(GetCentralNotificationChannelArgs args, InvokeOptions? opts = null)
        public static Output<GetCentralNotificationChannelResult> Invoke(GetCentralNotificationChannelInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCentralNotificationChannelResult> getCentralNotificationChannel(GetCentralNotificationChannelArgs args, InvokeOptions options)
    public static Output<GetCentralNotificationChannelResult> getCentralNotificationChannel(GetCentralNotificationChannelArgs args, InvokeOptions options)
    
    fn::invoke:
      function: harness:platform/getCentralNotificationChannel:getCentralNotificationChannel
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Identifier string
    Unique identifier of the notification channel.
    Account string
    Account identifier associated with this notification channel.
    Channels List<GetCentralNotificationChannelChannel>
    Configuration details of the notification channel.
    Created int
    Timestamp when the notification channel was created.
    LastModified int
    Timestamp when the notification channel was last modified.
    Name string
    Name of the notification channel.
    NotificationChannelType string
    Type of notification channel. One of: EMAIL, SLACK, PAGERDUTY, MSTeams, WEBHOOK, DATADOG.
    Org string
    Identifier of the organization the notification channel is scoped to.
    Project string
    Identifier of the project the notification channel is scoped to.
    Status string
    Status of the notification channel. Possible values are ENABLED or DISABLED.
    Identifier string
    Unique identifier of the notification channel.
    Account string
    Account identifier associated with this notification channel.
    Channels []GetCentralNotificationChannelChannel
    Configuration details of the notification channel.
    Created int
    Timestamp when the notification channel was created.
    LastModified int
    Timestamp when the notification channel was last modified.
    Name string
    Name of the notification channel.
    NotificationChannelType string
    Type of notification channel. One of: EMAIL, SLACK, PAGERDUTY, MSTeams, WEBHOOK, DATADOG.
    Org string
    Identifier of the organization the notification channel is scoped to.
    Project string
    Identifier of the project the notification channel is scoped to.
    Status string
    Status of the notification channel. Possible values are ENABLED or DISABLED.
    identifier String
    Unique identifier of the notification channel.
    account String
    Account identifier associated with this notification channel.
    channels List<GetCentralNotificationChannelChannel>
    Configuration details of the notification channel.
    created Integer
    Timestamp when the notification channel was created.
    lastModified Integer
    Timestamp when the notification channel was last modified.
    name String
    Name of the notification channel.
    notificationChannelType String
    Type of notification channel. One of: EMAIL, SLACK, PAGERDUTY, MSTeams, WEBHOOK, DATADOG.
    org String
    Identifier of the organization the notification channel is scoped to.
    project String
    Identifier of the project the notification channel is scoped to.
    status String
    Status of the notification channel. Possible values are ENABLED or DISABLED.
    identifier string
    Unique identifier of the notification channel.
    account string
    Account identifier associated with this notification channel.
    channels GetCentralNotificationChannelChannel[]
    Configuration details of the notification channel.
    created number
    Timestamp when the notification channel was created.
    lastModified number
    Timestamp when the notification channel was last modified.
    name string
    Name of the notification channel.
    notificationChannelType string
    Type of notification channel. One of: EMAIL, SLACK, PAGERDUTY, MSTeams, WEBHOOK, DATADOG.
    org string
    Identifier of the organization the notification channel is scoped to.
    project string
    Identifier of the project the notification channel is scoped to.
    status string
    Status of the notification channel. Possible values are ENABLED or DISABLED.
    identifier str
    Unique identifier of the notification channel.
    account str
    Account identifier associated with this notification channel.
    channels Sequence[GetCentralNotificationChannelChannel]
    Configuration details of the notification channel.
    created int
    Timestamp when the notification channel was created.
    last_modified int
    Timestamp when the notification channel was last modified.
    name str
    Name of the notification channel.
    notification_channel_type str
    Type of notification channel. One of: EMAIL, SLACK, PAGERDUTY, MSTeams, WEBHOOK, DATADOG.
    org str
    Identifier of the organization the notification channel is scoped to.
    project str
    Identifier of the project the notification channel is scoped to.
    status str
    Status of the notification channel. Possible values are ENABLED or DISABLED.
    identifier String
    Unique identifier of the notification channel.
    account String
    Account identifier associated with this notification channel.
    channels List<Property Map>
    Configuration details of the notification channel.
    created Number
    Timestamp when the notification channel was created.
    lastModified Number
    Timestamp when the notification channel was last modified.
    name String
    Name of the notification channel.
    notificationChannelType String
    Type of notification channel. One of: EMAIL, SLACK, PAGERDUTY, MSTeams, WEBHOOK, DATADOG.
    org String
    Identifier of the organization the notification channel is scoped to.
    project String
    Identifier of the project the notification channel is scoped to.
    status String
    Status of the notification channel. Possible values are ENABLED or DISABLED.

    getCentralNotificationChannel Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Identifier string
    Unique identifier of the notification channel.
    Account string
    Account identifier associated with this notification channel.
    Channels List<GetCentralNotificationChannelChannel>
    Configuration details of the notification channel.
    Created int
    Timestamp when the notification channel was created.
    LastModified int
    Timestamp when the notification channel was last modified.
    Name string
    Name of the notification channel.
    NotificationChannelType string
    Type of notification channel. One of: EMAIL, SLACK, PAGERDUTY, MSTeams, WEBHOOK, DATADOG.
    Org string
    Identifier of the organization the notification channel is scoped to.
    Project string
    Identifier of the project the notification channel is scoped to.
    Status string
    Status of the notification channel. Possible values are ENABLED or DISABLED.
    Id string
    The provider-assigned unique ID for this managed resource.
    Identifier string
    Unique identifier of the notification channel.
    Account string
    Account identifier associated with this notification channel.
    Channels []GetCentralNotificationChannelChannel
    Configuration details of the notification channel.
    Created int
    Timestamp when the notification channel was created.
    LastModified int
    Timestamp when the notification channel was last modified.
    Name string
    Name of the notification channel.
    NotificationChannelType string
    Type of notification channel. One of: EMAIL, SLACK, PAGERDUTY, MSTeams, WEBHOOK, DATADOG.
    Org string
    Identifier of the organization the notification channel is scoped to.
    Project string
    Identifier of the project the notification channel is scoped to.
    Status string
    Status of the notification channel. Possible values are ENABLED or DISABLED.
    id String
    The provider-assigned unique ID for this managed resource.
    identifier String
    Unique identifier of the notification channel.
    account String
    Account identifier associated with this notification channel.
    channels List<GetCentralNotificationChannelChannel>
    Configuration details of the notification channel.
    created Integer
    Timestamp when the notification channel was created.
    lastModified Integer
    Timestamp when the notification channel was last modified.
    name String
    Name of the notification channel.
    notificationChannelType String
    Type of notification channel. One of: EMAIL, SLACK, PAGERDUTY, MSTeams, WEBHOOK, DATADOG.
    org String
    Identifier of the organization the notification channel is scoped to.
    project String
    Identifier of the project the notification channel is scoped to.
    status String
    Status of the notification channel. Possible values are ENABLED or DISABLED.
    id string
    The provider-assigned unique ID for this managed resource.
    identifier string
    Unique identifier of the notification channel.
    account string
    Account identifier associated with this notification channel.
    channels GetCentralNotificationChannelChannel[]
    Configuration details of the notification channel.
    created number
    Timestamp when the notification channel was created.
    lastModified number
    Timestamp when the notification channel was last modified.
    name string
    Name of the notification channel.
    notificationChannelType string
    Type of notification channel. One of: EMAIL, SLACK, PAGERDUTY, MSTeams, WEBHOOK, DATADOG.
    org string
    Identifier of the organization the notification channel is scoped to.
    project string
    Identifier of the project the notification channel is scoped to.
    status string
    Status of the notification channel. Possible values are ENABLED or DISABLED.
    id str
    The provider-assigned unique ID for this managed resource.
    identifier str
    Unique identifier of the notification channel.
    account str
    Account identifier associated with this notification channel.
    channels Sequence[GetCentralNotificationChannelChannel]
    Configuration details of the notification channel.
    created int
    Timestamp when the notification channel was created.
    last_modified int
    Timestamp when the notification channel was last modified.
    name str
    Name of the notification channel.
    notification_channel_type str
    Type of notification channel. One of: EMAIL, SLACK, PAGERDUTY, MSTeams, WEBHOOK, DATADOG.
    org str
    Identifier of the organization the notification channel is scoped to.
    project str
    Identifier of the project the notification channel is scoped to.
    status str
    Status of the notification channel. Possible values are ENABLED or DISABLED.
    id String
    The provider-assigned unique ID for this managed resource.
    identifier String
    Unique identifier of the notification channel.
    account String
    Account identifier associated with this notification channel.
    channels List<Property Map>
    Configuration details of the notification channel.
    created Number
    Timestamp when the notification channel was created.
    lastModified Number
    Timestamp when the notification channel was last modified.
    name String
    Name of the notification channel.
    notificationChannelType String
    Type of notification channel. One of: EMAIL, SLACK, PAGERDUTY, MSTeams, WEBHOOK, DATADOG.
    org String
    Identifier of the organization the notification channel is scoped to.
    project String
    Identifier of the project the notification channel is scoped to.
    status String
    Status of the notification channel. Possible values are ENABLED or DISABLED.

    Supporting Types

    GetCentralNotificationChannelChannel

    Headers List<GetCentralNotificationChannelChannelHeader>
    Custom HTTP headers to include in webhook requests.
    ApiKey string
    API key for the webhook or integration.
    DatadogUrls List<string>
    List of Datadog webhook URLs.
    DelegateSelectors List<string>
    List of delegate selectors to use for sending notifications.
    EmailIds List<string>
    List of email addresses to notify.
    ExecuteOnDelegate bool
    Whether to execute the notification logic on delegate.
    MsTeamKeys List<string>
    List of Microsoft Teams integration keys.
    PagerDutyIntegrationKeys List<string>
    List of PagerDuty integration keys.
    SlackWebhookUrls List<string>
    List of Slack webhook URLs to send notifications to.
    UserGroups List<GetCentralNotificationChannelChannelUserGroup>
    List of user groups to notify.
    WebhookUrls List<string>
    List of generic webhook URLs.
    Headers []GetCentralNotificationChannelChannelHeader
    Custom HTTP headers to include in webhook requests.
    ApiKey string
    API key for the webhook or integration.
    DatadogUrls []string
    List of Datadog webhook URLs.
    DelegateSelectors []string
    List of delegate selectors to use for sending notifications.
    EmailIds []string
    List of email addresses to notify.
    ExecuteOnDelegate bool
    Whether to execute the notification logic on delegate.
    MsTeamKeys []string
    List of Microsoft Teams integration keys.
    PagerDutyIntegrationKeys []string
    List of PagerDuty integration keys.
    SlackWebhookUrls []string
    List of Slack webhook URLs to send notifications to.
    UserGroups []GetCentralNotificationChannelChannelUserGroup
    List of user groups to notify.
    WebhookUrls []string
    List of generic webhook URLs.
    headers List<GetCentralNotificationChannelChannelHeader>
    Custom HTTP headers to include in webhook requests.
    apiKey String
    API key for the webhook or integration.
    datadogUrls List<String>
    List of Datadog webhook URLs.
    delegateSelectors List<String>
    List of delegate selectors to use for sending notifications.
    emailIds List<String>
    List of email addresses to notify.
    executeOnDelegate Boolean
    Whether to execute the notification logic on delegate.
    msTeamKeys List<String>
    List of Microsoft Teams integration keys.
    pagerDutyIntegrationKeys List<String>
    List of PagerDuty integration keys.
    slackWebhookUrls List<String>
    List of Slack webhook URLs to send notifications to.
    userGroups List<GetCentralNotificationChannelChannelUserGroup>
    List of user groups to notify.
    webhookUrls List<String>
    List of generic webhook URLs.
    headers GetCentralNotificationChannelChannelHeader[]
    Custom HTTP headers to include in webhook requests.
    apiKey string
    API key for the webhook or integration.
    datadogUrls string[]
    List of Datadog webhook URLs.
    delegateSelectors string[]
    List of delegate selectors to use for sending notifications.
    emailIds string[]
    List of email addresses to notify.
    executeOnDelegate boolean
    Whether to execute the notification logic on delegate.
    msTeamKeys string[]
    List of Microsoft Teams integration keys.
    pagerDutyIntegrationKeys string[]
    List of PagerDuty integration keys.
    slackWebhookUrls string[]
    List of Slack webhook URLs to send notifications to.
    userGroups GetCentralNotificationChannelChannelUserGroup[]
    List of user groups to notify.
    webhookUrls string[]
    List of generic webhook URLs.
    headers Sequence[GetCentralNotificationChannelChannelHeader]
    Custom HTTP headers to include in webhook requests.
    api_key str
    API key for the webhook or integration.
    datadog_urls Sequence[str]
    List of Datadog webhook URLs.
    delegate_selectors Sequence[str]
    List of delegate selectors to use for sending notifications.
    email_ids Sequence[str]
    List of email addresses to notify.
    execute_on_delegate bool
    Whether to execute the notification logic on delegate.
    ms_team_keys Sequence[str]
    List of Microsoft Teams integration keys.
    pager_duty_integration_keys Sequence[str]
    List of PagerDuty integration keys.
    slack_webhook_urls Sequence[str]
    List of Slack webhook URLs to send notifications to.
    user_groups Sequence[GetCentralNotificationChannelChannelUserGroup]
    List of user groups to notify.
    webhook_urls Sequence[str]
    List of generic webhook URLs.
    headers List<Property Map>
    Custom HTTP headers to include in webhook requests.
    apiKey String
    API key for the webhook or integration.
    datadogUrls List<String>
    List of Datadog webhook URLs.
    delegateSelectors List<String>
    List of delegate selectors to use for sending notifications.
    emailIds List<String>
    List of email addresses to notify.
    executeOnDelegate Boolean
    Whether to execute the notification logic on delegate.
    msTeamKeys List<String>
    List of Microsoft Teams integration keys.
    pagerDutyIntegrationKeys List<String>
    List of PagerDuty integration keys.
    slackWebhookUrls List<String>
    List of Slack webhook URLs to send notifications to.
    userGroups List<Property Map>
    List of user groups to notify.
    webhookUrls List<String>
    List of generic webhook URLs.

    GetCentralNotificationChannelChannelHeader

    Key string
    Header key name.
    Value string
    Header value.
    Key string
    Header key name.
    Value string
    Header value.
    key String
    Header key name.
    value String
    Header value.
    key string
    Header key name.
    value string
    Header value.
    key str
    Header key name.
    value str
    Header value.
    key String
    Header key name.
    value String
    Header value.

    GetCentralNotificationChannelChannelUserGroup

    Identifier string
    Identifier of the user group.
    Identifier string
    Identifier of the user group.
    identifier String
    Identifier of the user group.
    identifier string
    Identifier of the user group.
    identifier str
    Identifier of the user group.
    identifier String
    Identifier of the user group.

    Package Details

    Repository
    harness pulumi/pulumi-harness
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the harness Terraform Provider.
    harness logo
    Harness v0.8.0 published on Wednesday, Aug 20, 2025 by Pulumi