1. Packages
  2. Packages
  3. Dynatrace
  4. API Docs
  5. SlackNotification
Viewing docs for Dynatrace v0.36.0
published on Tuesday, Jun 9, 2026 by Pulumiverse
dynatrace logo
Viewing docs for Dynatrace v0.36.0
published on Tuesday, Jun 9, 2026 by Pulumiverse

    This resource requires the API token scopes Read settings (settings.read) and Write settings (settings.write)

    Dynatrace Documentation

    • Slack integration - https://www.dynatrace.com/support/help/setup-and-configuration/integrations/problem-notifications/slack-integration

    • Settings API - https://www.dynatrace.com/support/help/dynatrace-api/environment-api/settings (schemaId: builtin:problem.notifications)

    Export Example Usage

    • terraform-provider-dynatrace -export dynatrace.SlackNotification downloads the existing problem notifications for Slack

    The full documentation of the export feature is available here.

    Create SlackNotification Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SlackNotification(name: string, args: SlackNotificationArgs, opts?: CustomResourceOptions);
    @overload
    def SlackNotification(resource_name: str,
                          args: SlackNotificationArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def SlackNotification(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          active: Optional[bool] = None,
                          channel: Optional[str] = None,
                          message: Optional[str] = None,
                          profile: Optional[str] = None,
                          url: Optional[str] = None,
                          legacy_id: Optional[str] = None,
                          name: Optional[str] = None)
    func NewSlackNotification(ctx *Context, name string, args SlackNotificationArgs, opts ...ResourceOption) (*SlackNotification, error)
    public SlackNotification(string name, SlackNotificationArgs args, CustomResourceOptions? opts = null)
    public SlackNotification(String name, SlackNotificationArgs args)
    public SlackNotification(String name, SlackNotificationArgs args, CustomResourceOptions options)
    
    type: dynatrace:SlackNotification
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "dynatrace_slacknotification" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args SlackNotificationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args SlackNotificationArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args SlackNotificationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SlackNotificationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SlackNotificationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var slackNotificationResource = new Dynatrace.SlackNotification("slackNotificationResource", new()
    {
        Active = false,
        Channel = "string",
        Message = "string",
        Profile = "string",
        Url = "string",
        LegacyId = "string",
        Name = "string",
    });
    
    example, err := dynatrace.NewSlackNotification(ctx, "slackNotificationResource", &dynatrace.SlackNotificationArgs{
    	Active:   pulumi.Bool(false),
    	Channel:  pulumi.String("string"),
    	Message:  pulumi.String("string"),
    	Profile:  pulumi.String("string"),
    	Url:      pulumi.String("string"),
    	LegacyId: pulumi.String("string"),
    	Name:     pulumi.String("string"),
    })
    
    resource "dynatrace_slacknotification" "slackNotificationResource" {
      active    = false
      channel   = "string"
      message   = "string"
      profile   = "string"
      url       = "string"
      legacy_id = "string"
      name      = "string"
    }
    
    var slackNotificationResource = new SlackNotification("slackNotificationResource", SlackNotificationArgs.builder()
        .active(false)
        .channel("string")
        .message("string")
        .profile("string")
        .url("string")
        .legacyId("string")
        .name("string")
        .build());
    
    slack_notification_resource = dynatrace.SlackNotification("slackNotificationResource",
        active=False,
        channel="string",
        message="string",
        profile="string",
        url="string",
        legacy_id="string",
        name="string")
    
    const slackNotificationResource = new dynatrace.SlackNotification("slackNotificationResource", {
        active: false,
        channel: "string",
        message: "string",
        profile: "string",
        url: "string",
        legacyId: "string",
        name: "string",
    });
    
    type: dynatrace:SlackNotification
    properties:
        active: false
        channel: string
        legacyId: string
        message: string
        name: string
        profile: string
        url: string
    

    SlackNotification Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The SlackNotification resource accepts the following input properties:

    Active bool
    This setting is enabled (true) or disabled (false)
    Channel string
    The channel (for example, #general) or the user (for example, @john.smith) to send the message to.
    Message string
    The content of the message. Type '{' for placeholder suggestions.. #### Available placeholders {ImpactedEntity}: A short description of the problem and impacted entity (or multiple impacted entities).
    Profile string
    The ID of the associated alerting profile
    Url string
    Set up an incoming WebHook integration within your Slack account. Copy and paste the generated WebHook URL into the field above.
    LegacyId string
    The ID of these settings when referred to from resources requiring the REST API V1 keys
    Name string
    The name of the notification configuration.
    Active bool
    This setting is enabled (true) or disabled (false)
    Channel string
    The channel (for example, #general) or the user (for example, @john.smith) to send the message to.
    Message string
    The content of the message. Type '{' for placeholder suggestions.. #### Available placeholders {ImpactedEntity}: A short description of the problem and impacted entity (or multiple impacted entities).
    Profile string
    The ID of the associated alerting profile
    Url string
    Set up an incoming WebHook integration within your Slack account. Copy and paste the generated WebHook URL into the field above.
    LegacyId string
    The ID of these settings when referred to from resources requiring the REST API V1 keys
    Name string
    The name of the notification configuration.
    active bool
    This setting is enabled (true) or disabled (false)
    channel string
    The channel (for example, #general) or the user (for example, @john.smith) to send the message to.
    message string
    The content of the message. Type '{' for placeholder suggestions.. #### Available placeholders {ImpactedEntity}: A short description of the problem and impacted entity (or multiple impacted entities).
    profile string
    The ID of the associated alerting profile
    url string
    Set up an incoming WebHook integration within your Slack account. Copy and paste the generated WebHook URL into the field above.
    legacy_id string
    The ID of these settings when referred to from resources requiring the REST API V1 keys
    name string
    The name of the notification configuration.
    active Boolean
    This setting is enabled (true) or disabled (false)
    channel String
    The channel (for example, #general) or the user (for example, @john.smith) to send the message to.
    message String
    The content of the message. Type '{' for placeholder suggestions.. #### Available placeholders {ImpactedEntity}: A short description of the problem and impacted entity (or multiple impacted entities).
    profile String
    The ID of the associated alerting profile
    url String
    Set up an incoming WebHook integration within your Slack account. Copy and paste the generated WebHook URL into the field above.
    legacyId String
    The ID of these settings when referred to from resources requiring the REST API V1 keys
    name String
    The name of the notification configuration.
    active boolean
    This setting is enabled (true) or disabled (false)
    channel string
    The channel (for example, #general) or the user (for example, @john.smith) to send the message to.
    message string
    The content of the message. Type '{' for placeholder suggestions.. #### Available placeholders {ImpactedEntity}: A short description of the problem and impacted entity (or multiple impacted entities).
    profile string
    The ID of the associated alerting profile
    url string
    Set up an incoming WebHook integration within your Slack account. Copy and paste the generated WebHook URL into the field above.
    legacyId string
    The ID of these settings when referred to from resources requiring the REST API V1 keys
    name string
    The name of the notification configuration.
    active bool
    This setting is enabled (true) or disabled (false)
    channel str
    The channel (for example, #general) or the user (for example, @john.smith) to send the message to.
    message str
    The content of the message. Type '{' for placeholder suggestions.. #### Available placeholders {ImpactedEntity}: A short description of the problem and impacted entity (or multiple impacted entities).
    profile str
    The ID of the associated alerting profile
    url str
    Set up an incoming WebHook integration within your Slack account. Copy and paste the generated WebHook URL into the field above.
    legacy_id str
    The ID of these settings when referred to from resources requiring the REST API V1 keys
    name str
    The name of the notification configuration.
    active Boolean
    This setting is enabled (true) or disabled (false)
    channel String
    The channel (for example, #general) or the user (for example, @john.smith) to send the message to.
    message String
    The content of the message. Type '{' for placeholder suggestions.. #### Available placeholders {ImpactedEntity}: A short description of the problem and impacted entity (or multiple impacted entities).
    profile String
    The ID of the associated alerting profile
    url String
    Set up an incoming WebHook integration within your Slack account. Copy and paste the generated WebHook URL into the field above.
    legacyId String
    The ID of these settings when referred to from resources requiring the REST API V1 keys
    name String
    The name of the notification configuration.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SlackNotification resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing SlackNotification Resource

    Get an existing SlackNotification resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: SlackNotificationState, opts?: CustomResourceOptions): SlackNotification
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            active: Optional[bool] = None,
            channel: Optional[str] = None,
            legacy_id: Optional[str] = None,
            message: Optional[str] = None,
            name: Optional[str] = None,
            profile: Optional[str] = None,
            url: Optional[str] = None) -> SlackNotification
    func GetSlackNotification(ctx *Context, name string, id IDInput, state *SlackNotificationState, opts ...ResourceOption) (*SlackNotification, error)
    public static SlackNotification Get(string name, Input<string> id, SlackNotificationState? state, CustomResourceOptions? opts = null)
    public static SlackNotification get(String name, Output<String> id, SlackNotificationState state, CustomResourceOptions options)
    resources:  _:    type: dynatrace:SlackNotification    get:      id: ${id}
    import {
      to = dynatrace_slacknotification.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Active bool
    This setting is enabled (true) or disabled (false)
    Channel string
    The channel (for example, #general) or the user (for example, @john.smith) to send the message to.
    LegacyId string
    The ID of these settings when referred to from resources requiring the REST API V1 keys
    Message string
    The content of the message. Type '{' for placeholder suggestions.. #### Available placeholders {ImpactedEntity}: A short description of the problem and impacted entity (or multiple impacted entities).
    Name string
    The name of the notification configuration.
    Profile string
    The ID of the associated alerting profile
    Url string
    Set up an incoming WebHook integration within your Slack account. Copy and paste the generated WebHook URL into the field above.
    Active bool
    This setting is enabled (true) or disabled (false)
    Channel string
    The channel (for example, #general) or the user (for example, @john.smith) to send the message to.
    LegacyId string
    The ID of these settings when referred to from resources requiring the REST API V1 keys
    Message string
    The content of the message. Type '{' for placeholder suggestions.. #### Available placeholders {ImpactedEntity}: A short description of the problem and impacted entity (or multiple impacted entities).
    Name string
    The name of the notification configuration.
    Profile string
    The ID of the associated alerting profile
    Url string
    Set up an incoming WebHook integration within your Slack account. Copy and paste the generated WebHook URL into the field above.
    active bool
    This setting is enabled (true) or disabled (false)
    channel string
    The channel (for example, #general) or the user (for example, @john.smith) to send the message to.
    legacy_id string
    The ID of these settings when referred to from resources requiring the REST API V1 keys
    message string
    The content of the message. Type '{' for placeholder suggestions.. #### Available placeholders {ImpactedEntity}: A short description of the problem and impacted entity (or multiple impacted entities).
    name string
    The name of the notification configuration.
    profile string
    The ID of the associated alerting profile
    url string
    Set up an incoming WebHook integration within your Slack account. Copy and paste the generated WebHook URL into the field above.
    active Boolean
    This setting is enabled (true) or disabled (false)
    channel String
    The channel (for example, #general) or the user (for example, @john.smith) to send the message to.
    legacyId String
    The ID of these settings when referred to from resources requiring the REST API V1 keys
    message String
    The content of the message. Type '{' for placeholder suggestions.. #### Available placeholders {ImpactedEntity}: A short description of the problem and impacted entity (or multiple impacted entities).
    name String
    The name of the notification configuration.
    profile String
    The ID of the associated alerting profile
    url String
    Set up an incoming WebHook integration within your Slack account. Copy and paste the generated WebHook URL into the field above.
    active boolean
    This setting is enabled (true) or disabled (false)
    channel string
    The channel (for example, #general) or the user (for example, @john.smith) to send the message to.
    legacyId string
    The ID of these settings when referred to from resources requiring the REST API V1 keys
    message string
    The content of the message. Type '{' for placeholder suggestions.. #### Available placeholders {ImpactedEntity}: A short description of the problem and impacted entity (or multiple impacted entities).
    name string
    The name of the notification configuration.
    profile string
    The ID of the associated alerting profile
    url string
    Set up an incoming WebHook integration within your Slack account. Copy and paste the generated WebHook URL into the field above.
    active bool
    This setting is enabled (true) or disabled (false)
    channel str
    The channel (for example, #general) or the user (for example, @john.smith) to send the message to.
    legacy_id str
    The ID of these settings when referred to from resources requiring the REST API V1 keys
    message str
    The content of the message. Type '{' for placeholder suggestions.. #### Available placeholders {ImpactedEntity}: A short description of the problem and impacted entity (or multiple impacted entities).
    name str
    The name of the notification configuration.
    profile str
    The ID of the associated alerting profile
    url str
    Set up an incoming WebHook integration within your Slack account. Copy and paste the generated WebHook URL into the field above.
    active Boolean
    This setting is enabled (true) or disabled (false)
    channel String
    The channel (for example, #general) or the user (for example, @john.smith) to send the message to.
    legacyId String
    The ID of these settings when referred to from resources requiring the REST API V1 keys
    message String
    The content of the message. Type '{' for placeholder suggestions.. #### Available placeholders {ImpactedEntity}: A short description of the problem and impacted entity (or multiple impacted entities).
    name String
    The name of the notification configuration.
    profile String
    The ID of the associated alerting profile
    url String
    Set up an incoming WebHook integration within your Slack account. Copy and paste the generated WebHook URL into the field above.

    Package Details

    Repository
    dynatrace pulumiverse/pulumi-dynatrace
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dynatrace Terraform Provider.
    dynatrace logo
    Viewing docs for Dynatrace v0.36.0
    published on Tuesday, Jun 9, 2026 by Pulumiverse

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial