1. Packages
  2. Sysdig Provider
  3. API Docs
  4. getMonitorNotificationChannelSlack
sysdig 1.56.0 published on Wednesday, Apr 30, 2025 by sysdiglabs

sysdig.getMonitorNotificationChannelSlack

Explore with Pulumi AI

sysdig logo
sysdig 1.56.0 published on Wednesday, Apr 30, 2025 by sysdiglabs

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as sysdig from "@pulumi/sysdig";
    
    const ncSlack = sysdig.getMonitorNotificationChannelSlack({
        name: "some notification channel name",
    });
    
    import pulumi
    import pulumi_sysdig as sysdig
    
    nc_slack = sysdig.get_monitor_notification_channel_slack(name="some notification channel name")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/sysdig/sysdig"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := sysdig.LookupMonitorNotificationChannelSlack(ctx, &sysdig.LookupMonitorNotificationChannelSlackArgs{
    			Name: "some notification channel name",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Sysdig = Pulumi.Sysdig;
    
    return await Deployment.RunAsync(() => 
    {
        var ncSlack = Sysdig.GetMonitorNotificationChannelSlack.Invoke(new()
        {
            Name = "some notification channel name",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.sysdig.SysdigFunctions;
    import com.pulumi.sysdig.inputs.GetMonitorNotificationChannelSlackArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var ncSlack = SysdigFunctions.getMonitorNotificationChannelSlack(GetMonitorNotificationChannelSlackArgs.builder()
                .name("some notification channel name")
                .build());
    
        }
    }
    
    variables:
      ncSlack:
        fn::invoke:
          function: sysdig:getMonitorNotificationChannelSlack
          arguments:
            name: some notification channel name
    

    Using getMonitorNotificationChannelSlack

    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 getMonitorNotificationChannelSlack(args: GetMonitorNotificationChannelSlackArgs, opts?: InvokeOptions): Promise<GetMonitorNotificationChannelSlackResult>
    function getMonitorNotificationChannelSlackOutput(args: GetMonitorNotificationChannelSlackOutputArgs, opts?: InvokeOptions): Output<GetMonitorNotificationChannelSlackResult>
    def get_monitor_notification_channel_slack(enabled: Optional[bool] = None,
                                               id: Optional[str] = None,
                                               name: Optional[str] = None,
                                               notify_when_ok: Optional[bool] = None,
                                               notify_when_resolved: Optional[bool] = None,
                                               send_test_notification: Optional[bool] = None,
                                               share_with_current_team: Optional[bool] = None,
                                               timeouts: Optional[GetMonitorNotificationChannelSlackTimeouts] = None,
                                               opts: Optional[InvokeOptions] = None) -> GetMonitorNotificationChannelSlackResult
    def get_monitor_notification_channel_slack_output(enabled: Optional[pulumi.Input[bool]] = None,
                                               id: Optional[pulumi.Input[str]] = None,
                                               name: Optional[pulumi.Input[str]] = None,
                                               notify_when_ok: Optional[pulumi.Input[bool]] = None,
                                               notify_when_resolved: Optional[pulumi.Input[bool]] = None,
                                               send_test_notification: Optional[pulumi.Input[bool]] = None,
                                               share_with_current_team: Optional[pulumi.Input[bool]] = None,
                                               timeouts: Optional[pulumi.Input[GetMonitorNotificationChannelSlackTimeoutsArgs]] = None,
                                               opts: Optional[InvokeOptions] = None) -> Output[GetMonitorNotificationChannelSlackResult]
    func LookupMonitorNotificationChannelSlack(ctx *Context, args *LookupMonitorNotificationChannelSlackArgs, opts ...InvokeOption) (*LookupMonitorNotificationChannelSlackResult, error)
    func LookupMonitorNotificationChannelSlackOutput(ctx *Context, args *LookupMonitorNotificationChannelSlackOutputArgs, opts ...InvokeOption) LookupMonitorNotificationChannelSlackResultOutput

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

    public static class GetMonitorNotificationChannelSlack 
    {
        public static Task<GetMonitorNotificationChannelSlackResult> InvokeAsync(GetMonitorNotificationChannelSlackArgs args, InvokeOptions? opts = null)
        public static Output<GetMonitorNotificationChannelSlackResult> Invoke(GetMonitorNotificationChannelSlackInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMonitorNotificationChannelSlackResult> getMonitorNotificationChannelSlack(GetMonitorNotificationChannelSlackArgs args, InvokeOptions options)
    public static Output<GetMonitorNotificationChannelSlackResult> getMonitorNotificationChannelSlack(GetMonitorNotificationChannelSlackArgs args, InvokeOptions options)
    
    fn::invoke:
      function: sysdig:index/getMonitorNotificationChannelSlack:getMonitorNotificationChannelSlack
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of the Notification Channel to retrieve.
    Enabled bool
    Whether the Notification Channel is active or not.
    Id string
    The Notification Channel ID.
    NotifyWhenOk bool
    Whether the Notification Channel sends a notification when the condition is no longer triggered.
    NotifyWhenResolved bool
    Whether the Notification Channel sends a notification if it's manually acknowledged by a user.
    SendTestNotification bool
    Whether the Notification Channel has enabled the test notification.
    ShareWithCurrentTeam bool
    Timeouts GetMonitorNotificationChannelSlackTimeouts
    Name string
    The name of the Notification Channel to retrieve.
    Enabled bool
    Whether the Notification Channel is active or not.
    Id string
    The Notification Channel ID.
    NotifyWhenOk bool
    Whether the Notification Channel sends a notification when the condition is no longer triggered.
    NotifyWhenResolved bool
    Whether the Notification Channel sends a notification if it's manually acknowledged by a user.
    SendTestNotification bool
    Whether the Notification Channel has enabled the test notification.
    ShareWithCurrentTeam bool
    Timeouts GetMonitorNotificationChannelSlackTimeouts
    name String
    The name of the Notification Channel to retrieve.
    enabled Boolean
    Whether the Notification Channel is active or not.
    id String
    The Notification Channel ID.
    notifyWhenOk Boolean
    Whether the Notification Channel sends a notification when the condition is no longer triggered.
    notifyWhenResolved Boolean
    Whether the Notification Channel sends a notification if it's manually acknowledged by a user.
    sendTestNotification Boolean
    Whether the Notification Channel has enabled the test notification.
    shareWithCurrentTeam Boolean
    timeouts GetMonitorNotificationChannelSlackTimeouts
    name string
    The name of the Notification Channel to retrieve.
    enabled boolean
    Whether the Notification Channel is active or not.
    id string
    The Notification Channel ID.
    notifyWhenOk boolean
    Whether the Notification Channel sends a notification when the condition is no longer triggered.
    notifyWhenResolved boolean
    Whether the Notification Channel sends a notification if it's manually acknowledged by a user.
    sendTestNotification boolean
    Whether the Notification Channel has enabled the test notification.
    shareWithCurrentTeam boolean
    timeouts GetMonitorNotificationChannelSlackTimeouts
    name str
    The name of the Notification Channel to retrieve.
    enabled bool
    Whether the Notification Channel is active or not.
    id str
    The Notification Channel ID.
    notify_when_ok bool
    Whether the Notification Channel sends a notification when the condition is no longer triggered.
    notify_when_resolved bool
    Whether the Notification Channel sends a notification if it's manually acknowledged by a user.
    send_test_notification bool
    Whether the Notification Channel has enabled the test notification.
    share_with_current_team bool
    timeouts GetMonitorNotificationChannelSlackTimeouts
    name String
    The name of the Notification Channel to retrieve.
    enabled Boolean
    Whether the Notification Channel is active or not.
    id String
    The Notification Channel ID.
    notifyWhenOk Boolean
    Whether the Notification Channel sends a notification when the condition is no longer triggered.
    notifyWhenResolved Boolean
    Whether the Notification Channel sends a notification if it's manually acknowledged by a user.
    sendTestNotification Boolean
    Whether the Notification Channel has enabled the test notification.
    shareWithCurrentTeam Boolean
    timeouts Property Map

    getMonitorNotificationChannelSlack Result

    The following output properties are available:

    Channel string
    Name of the Slack channel.
    Id string
    The Notification Channel ID.
    IsPrivateChannel bool
    Whether the Slack Channel has been marked as private or not.
    Name string
    PrivateChannelUrl string
    The channel URL, i.e. the link that is referencing the channel (not to be confused with the webhook url), if the channel is private.
    ShowSectionAlertDetails bool
    Whether to include the alert details section in the Slack messages.
    ShowSectionCapturingInformation bool
    Whether to include the capturing information section in the Slack messages.
    ShowSectionDashboardLinks bool
    Whether to include the dashboard links section in the Slack messages.
    ShowSectionEventDetails bool
    Whether to include the event details section in the Slack messages.
    ShowSectionNotificationChart bool
    Whether to include the notification chart section in the Slack messages.
    ShowSectionRunbookLinks bool
    Whether to include the runbook links section in the Slack messages.
    ShowSectionUserDefinedContent bool
    Whether to include the user defined section in the Slack messages.
    Url string
    URL of the Slack webhook.
    Version double
    The version of the Notification Channel.
    Enabled bool
    Whether the Notification Channel is active or not.
    NotifyWhenOk bool
    Whether the Notification Channel sends a notification when the condition is no longer triggered.
    NotifyWhenResolved bool
    Whether the Notification Channel sends a notification if it's manually acknowledged by a user.
    SendTestNotification bool
    Whether the Notification Channel has enabled the test notification.
    ShareWithCurrentTeam bool
    Timeouts GetMonitorNotificationChannelSlackTimeouts
    Channel string
    Name of the Slack channel.
    Id string
    The Notification Channel ID.
    IsPrivateChannel bool
    Whether the Slack Channel has been marked as private or not.
    Name string
    PrivateChannelUrl string
    The channel URL, i.e. the link that is referencing the channel (not to be confused with the webhook url), if the channel is private.
    ShowSectionAlertDetails bool
    Whether to include the alert details section in the Slack messages.
    ShowSectionCapturingInformation bool
    Whether to include the capturing information section in the Slack messages.
    ShowSectionDashboardLinks bool
    Whether to include the dashboard links section in the Slack messages.
    ShowSectionEventDetails bool
    Whether to include the event details section in the Slack messages.
    ShowSectionNotificationChart bool
    Whether to include the notification chart section in the Slack messages.
    ShowSectionRunbookLinks bool
    Whether to include the runbook links section in the Slack messages.
    ShowSectionUserDefinedContent bool
    Whether to include the user defined section in the Slack messages.
    Url string
    URL of the Slack webhook.
    Version float64
    The version of the Notification Channel.
    Enabled bool
    Whether the Notification Channel is active or not.
    NotifyWhenOk bool
    Whether the Notification Channel sends a notification when the condition is no longer triggered.
    NotifyWhenResolved bool
    Whether the Notification Channel sends a notification if it's manually acknowledged by a user.
    SendTestNotification bool
    Whether the Notification Channel has enabled the test notification.
    ShareWithCurrentTeam bool
    Timeouts GetMonitorNotificationChannelSlackTimeouts
    channel String
    Name of the Slack channel.
    id String
    The Notification Channel ID.
    isPrivateChannel Boolean
    Whether the Slack Channel has been marked as private or not.
    name String
    privateChannelUrl String
    The channel URL, i.e. the link that is referencing the channel (not to be confused with the webhook url), if the channel is private.
    showSectionAlertDetails Boolean
    Whether to include the alert details section in the Slack messages.
    showSectionCapturingInformation Boolean
    Whether to include the capturing information section in the Slack messages.
    showSectionDashboardLinks Boolean
    Whether to include the dashboard links section in the Slack messages.
    showSectionEventDetails Boolean
    Whether to include the event details section in the Slack messages.
    showSectionNotificationChart Boolean
    Whether to include the notification chart section in the Slack messages.
    showSectionRunbookLinks Boolean
    Whether to include the runbook links section in the Slack messages.
    showSectionUserDefinedContent Boolean
    Whether to include the user defined section in the Slack messages.
    url String
    URL of the Slack webhook.
    version Double
    The version of the Notification Channel.
    enabled Boolean
    Whether the Notification Channel is active or not.
    notifyWhenOk Boolean
    Whether the Notification Channel sends a notification when the condition is no longer triggered.
    notifyWhenResolved Boolean
    Whether the Notification Channel sends a notification if it's manually acknowledged by a user.
    sendTestNotification Boolean
    Whether the Notification Channel has enabled the test notification.
    shareWithCurrentTeam Boolean
    timeouts GetMonitorNotificationChannelSlackTimeouts
    channel string
    Name of the Slack channel.
    id string
    The Notification Channel ID.
    isPrivateChannel boolean
    Whether the Slack Channel has been marked as private or not.
    name string
    privateChannelUrl string
    The channel URL, i.e. the link that is referencing the channel (not to be confused with the webhook url), if the channel is private.
    showSectionAlertDetails boolean
    Whether to include the alert details section in the Slack messages.
    showSectionCapturingInformation boolean
    Whether to include the capturing information section in the Slack messages.
    showSectionDashboardLinks boolean
    Whether to include the dashboard links section in the Slack messages.
    showSectionEventDetails boolean
    Whether to include the event details section in the Slack messages.
    showSectionNotificationChart boolean
    Whether to include the notification chart section in the Slack messages.
    showSectionRunbookLinks boolean
    Whether to include the runbook links section in the Slack messages.
    showSectionUserDefinedContent boolean
    Whether to include the user defined section in the Slack messages.
    url string
    URL of the Slack webhook.
    version number
    The version of the Notification Channel.
    enabled boolean
    Whether the Notification Channel is active or not.
    notifyWhenOk boolean
    Whether the Notification Channel sends a notification when the condition is no longer triggered.
    notifyWhenResolved boolean
    Whether the Notification Channel sends a notification if it's manually acknowledged by a user.
    sendTestNotification boolean
    Whether the Notification Channel has enabled the test notification.
    shareWithCurrentTeam boolean
    timeouts GetMonitorNotificationChannelSlackTimeouts
    channel str
    Name of the Slack channel.
    id str
    The Notification Channel ID.
    is_private_channel bool
    Whether the Slack Channel has been marked as private or not.
    name str
    private_channel_url str
    The channel URL, i.e. the link that is referencing the channel (not to be confused with the webhook url), if the channel is private.
    show_section_alert_details bool
    Whether to include the alert details section in the Slack messages.
    show_section_capturing_information bool
    Whether to include the capturing information section in the Slack messages.
    show_section_dashboard_links bool
    Whether to include the dashboard links section in the Slack messages.
    show_section_event_details bool
    Whether to include the event details section in the Slack messages.
    show_section_notification_chart bool
    Whether to include the notification chart section in the Slack messages.
    show_section_runbook_links bool
    Whether to include the runbook links section in the Slack messages.
    show_section_user_defined_content bool
    Whether to include the user defined section in the Slack messages.
    url str
    URL of the Slack webhook.
    version float
    The version of the Notification Channel.
    enabled bool
    Whether the Notification Channel is active or not.
    notify_when_ok bool
    Whether the Notification Channel sends a notification when the condition is no longer triggered.
    notify_when_resolved bool
    Whether the Notification Channel sends a notification if it's manually acknowledged by a user.
    send_test_notification bool
    Whether the Notification Channel has enabled the test notification.
    share_with_current_team bool
    timeouts GetMonitorNotificationChannelSlackTimeouts
    channel String
    Name of the Slack channel.
    id String
    The Notification Channel ID.
    isPrivateChannel Boolean
    Whether the Slack Channel has been marked as private or not.
    name String
    privateChannelUrl String
    The channel URL, i.e. the link that is referencing the channel (not to be confused with the webhook url), if the channel is private.
    showSectionAlertDetails Boolean
    Whether to include the alert details section in the Slack messages.
    showSectionCapturingInformation Boolean
    Whether to include the capturing information section in the Slack messages.
    showSectionDashboardLinks Boolean
    Whether to include the dashboard links section in the Slack messages.
    showSectionEventDetails Boolean
    Whether to include the event details section in the Slack messages.
    showSectionNotificationChart Boolean
    Whether to include the notification chart section in the Slack messages.
    showSectionRunbookLinks Boolean
    Whether to include the runbook links section in the Slack messages.
    showSectionUserDefinedContent Boolean
    Whether to include the user defined section in the Slack messages.
    url String
    URL of the Slack webhook.
    version Number
    The version of the Notification Channel.
    enabled Boolean
    Whether the Notification Channel is active or not.
    notifyWhenOk Boolean
    Whether the Notification Channel sends a notification when the condition is no longer triggered.
    notifyWhenResolved Boolean
    Whether the Notification Channel sends a notification if it's manually acknowledged by a user.
    sendTestNotification Boolean
    Whether the Notification Channel has enabled the test notification.
    shareWithCurrentTeam Boolean
    timeouts Property Map

    Supporting Types

    GetMonitorNotificationChannelSlackTimeouts

    Read string
    Read string
    read String
    read string
    read str
    read String

    Package Details

    Repository
    sysdig sysdiglabs/terraform-provider-sysdig
    License
    Notes
    This Pulumi package is based on the sysdig Terraform Provider.
    sysdig logo
    sysdig 1.56.0 published on Wednesday, Apr 30, 2025 by sysdiglabs