1. Packages
  2. Packages
  3. Dynatrace
  4. API Docs
  5. AnsibleTowerNotification
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

    • Ansible Tower notifications - https://www.dynatrace.com/support/help/setup-and-configuration/integrations/problem-notifications/ansible-tower-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.AnsibleTowerNotification downloads the existing Problem Notifications for Ansible Tower

    The full documentation of the export feature is available here.

    Create AnsibleTowerNotification Resource

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

    Constructor syntax

    new AnsibleTowerNotification(name: string, args: AnsibleTowerNotificationArgs, opts?: CustomResourceOptions);
    @overload
    def AnsibleTowerNotification(resource_name: str,
                                 args: AnsibleTowerNotificationArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def AnsibleTowerNotification(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 custom_message: Optional[str] = None,
                                 job_template_url: Optional[str] = None,
                                 profile: Optional[str] = None,
                                 username: Optional[str] = None,
                                 active: Optional[bool] = None,
                                 insecure: Optional[bool] = None,
                                 legacy_id: Optional[str] = None,
                                 name: Optional[str] = None,
                                 password: Optional[str] = None)
    func NewAnsibleTowerNotification(ctx *Context, name string, args AnsibleTowerNotificationArgs, opts ...ResourceOption) (*AnsibleTowerNotification, error)
    public AnsibleTowerNotification(string name, AnsibleTowerNotificationArgs args, CustomResourceOptions? opts = null)
    public AnsibleTowerNotification(String name, AnsibleTowerNotificationArgs args)
    public AnsibleTowerNotification(String name, AnsibleTowerNotificationArgs args, CustomResourceOptions options)
    
    type: dynatrace:AnsibleTowerNotification
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "dynatrace_ansibletowernotification" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args AnsibleTowerNotificationArgs
    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 AnsibleTowerNotificationArgs
    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 AnsibleTowerNotificationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AnsibleTowerNotificationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AnsibleTowerNotificationArgs
    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 ansibleTowerNotificationResource = new Dynatrace.AnsibleTowerNotification("ansibleTowerNotificationResource", new()
    {
        CustomMessage = "string",
        JobTemplateUrl = "string",
        Profile = "string",
        Username = "string",
        Active = false,
        Insecure = false,
        LegacyId = "string",
        Name = "string",
        Password = "string",
    });
    
    example, err := dynatrace.NewAnsibleTowerNotification(ctx, "ansibleTowerNotificationResource", &dynatrace.AnsibleTowerNotificationArgs{
    	CustomMessage:  pulumi.String("string"),
    	JobTemplateUrl: pulumi.String("string"),
    	Profile:        pulumi.String("string"),
    	Username:       pulumi.String("string"),
    	Active:         pulumi.Bool(false),
    	Insecure:       pulumi.Bool(false),
    	LegacyId:       pulumi.String("string"),
    	Name:           pulumi.String("string"),
    	Password:       pulumi.String("string"),
    })
    
    resource "dynatrace_ansibletowernotification" "ansibleTowerNotificationResource" {
      custom_message   = "string"
      job_template_url = "string"
      profile          = "string"
      username         = "string"
      active           = false
      insecure         = false
      legacy_id        = "string"
      name             = "string"
      password         = "string"
    }
    
    var ansibleTowerNotificationResource = new AnsibleTowerNotification("ansibleTowerNotificationResource", AnsibleTowerNotificationArgs.builder()
        .customMessage("string")
        .jobTemplateUrl("string")
        .profile("string")
        .username("string")
        .active(false)
        .insecure(false)
        .legacyId("string")
        .name("string")
        .password("string")
        .build());
    
    ansible_tower_notification_resource = dynatrace.AnsibleTowerNotification("ansibleTowerNotificationResource",
        custom_message="string",
        job_template_url="string",
        profile="string",
        username="string",
        active=False,
        insecure=False,
        legacy_id="string",
        name="string",
        password="string")
    
    const ansibleTowerNotificationResource = new dynatrace.AnsibleTowerNotification("ansibleTowerNotificationResource", {
        customMessage: "string",
        jobTemplateUrl: "string",
        profile: "string",
        username: "string",
        active: false,
        insecure: false,
        legacyId: "string",
        name: "string",
        password: "string",
    });
    
    type: dynatrace:AnsibleTowerNotification
    properties:
        active: false
        customMessage: string
        insecure: false
        jobTemplateUrl: string
        legacyId: string
        name: string
        password: string
        profile: string
        username: string
    

    AnsibleTowerNotification 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 AnsibleTowerNotification resource accepts the following input properties:

    CustomMessage string
    This message will be displayed in the Extra Variables Message field of your job template. Type '{' for placeholder suggestions.. #### Available placeholders {ImpactedEntities}: Details about the entities impacted by the problem in form of a json array.
    JobTemplateUrl string

    The URL of the target job template.

    Note: Be sure to select the Prompt on Launch option in the Extra Variables section of your job template configuration.

    Profile string
    The ID of the associated alerting profile.
    Username string
    Account username.
    Active bool
    This setting is enabled (true) or disabled (false)
    Insecure bool
    Accept any SSL certificate (including self-signed and invalid certificates)
    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.
    Password string
    Account password.
    CustomMessage string
    This message will be displayed in the Extra Variables Message field of your job template. Type '{' for placeholder suggestions.. #### Available placeholders {ImpactedEntities}: Details about the entities impacted by the problem in form of a json array.
    JobTemplateUrl string

    The URL of the target job template.

    Note: Be sure to select the Prompt on Launch option in the Extra Variables section of your job template configuration.

    Profile string
    The ID of the associated alerting profile.
    Username string
    Account username.
    Active bool
    This setting is enabled (true) or disabled (false)
    Insecure bool
    Accept any SSL certificate (including self-signed and invalid certificates)
    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.
    Password string
    Account password.
    custom_message string
    This message will be displayed in the Extra Variables Message field of your job template. Type '{' for placeholder suggestions.. #### Available placeholders {ImpactedEntities}: Details about the entities impacted by the problem in form of a json array.
    job_template_url string

    The URL of the target job template.

    Note: Be sure to select the Prompt on Launch option in the Extra Variables section of your job template configuration.

    profile string
    The ID of the associated alerting profile.
    username string
    Account username.
    active bool
    This setting is enabled (true) or disabled (false)
    insecure bool
    Accept any SSL certificate (including self-signed and invalid certificates)
    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.
    password string
    Account password.
    customMessage String
    This message will be displayed in the Extra Variables Message field of your job template. Type '{' for placeholder suggestions.. #### Available placeholders {ImpactedEntities}: Details about the entities impacted by the problem in form of a json array.
    jobTemplateUrl String

    The URL of the target job template.

    Note: Be sure to select the Prompt on Launch option in the Extra Variables section of your job template configuration.

    profile String
    The ID of the associated alerting profile.
    username String
    Account username.
    active Boolean
    This setting is enabled (true) or disabled (false)
    insecure Boolean
    Accept any SSL certificate (including self-signed and invalid certificates)
    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.
    password String
    Account password.
    customMessage string
    This message will be displayed in the Extra Variables Message field of your job template. Type '{' for placeholder suggestions.. #### Available placeholders {ImpactedEntities}: Details about the entities impacted by the problem in form of a json array.
    jobTemplateUrl string

    The URL of the target job template.

    Note: Be sure to select the Prompt on Launch option in the Extra Variables section of your job template configuration.

    profile string
    The ID of the associated alerting profile.
    username string
    Account username.
    active boolean
    This setting is enabled (true) or disabled (false)
    insecure boolean
    Accept any SSL certificate (including self-signed and invalid certificates)
    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.
    password string
    Account password.
    custom_message str
    This message will be displayed in the Extra Variables Message field of your job template. Type '{' for placeholder suggestions.. #### Available placeholders {ImpactedEntities}: Details about the entities impacted by the problem in form of a json array.
    job_template_url str

    The URL of the target job template.

    Note: Be sure to select the Prompt on Launch option in the Extra Variables section of your job template configuration.

    profile str
    The ID of the associated alerting profile.
    username str
    Account username.
    active bool
    This setting is enabled (true) or disabled (false)
    insecure bool
    Accept any SSL certificate (including self-signed and invalid certificates)
    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.
    password str
    Account password.
    customMessage String
    This message will be displayed in the Extra Variables Message field of your job template. Type '{' for placeholder suggestions.. #### Available placeholders {ImpactedEntities}: Details about the entities impacted by the problem in form of a json array.
    jobTemplateUrl String

    The URL of the target job template.

    Note: Be sure to select the Prompt on Launch option in the Extra Variables section of your job template configuration.

    profile String
    The ID of the associated alerting profile.
    username String
    Account username.
    active Boolean
    This setting is enabled (true) or disabled (false)
    insecure Boolean
    Accept any SSL certificate (including self-signed and invalid certificates)
    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.
    password String
    Account password.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AnsibleTowerNotification 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 AnsibleTowerNotification Resource

    Get an existing AnsibleTowerNotification 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?: AnsibleTowerNotificationState, opts?: CustomResourceOptions): AnsibleTowerNotification
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            active: Optional[bool] = None,
            custom_message: Optional[str] = None,
            insecure: Optional[bool] = None,
            job_template_url: Optional[str] = None,
            legacy_id: Optional[str] = None,
            name: Optional[str] = None,
            password: Optional[str] = None,
            profile: Optional[str] = None,
            username: Optional[str] = None) -> AnsibleTowerNotification
    func GetAnsibleTowerNotification(ctx *Context, name string, id IDInput, state *AnsibleTowerNotificationState, opts ...ResourceOption) (*AnsibleTowerNotification, error)
    public static AnsibleTowerNotification Get(string name, Input<string> id, AnsibleTowerNotificationState? state, CustomResourceOptions? opts = null)
    public static AnsibleTowerNotification get(String name, Output<String> id, AnsibleTowerNotificationState state, CustomResourceOptions options)
    resources:  _:    type: dynatrace:AnsibleTowerNotification    get:      id: ${id}
    import {
      to = dynatrace_ansibletowernotification.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)
    CustomMessage string
    This message will be displayed in the Extra Variables Message field of your job template. Type '{' for placeholder suggestions.. #### Available placeholders {ImpactedEntities}: Details about the entities impacted by the problem in form of a json array.
    Insecure bool
    Accept any SSL certificate (including self-signed and invalid certificates)
    JobTemplateUrl string

    The URL of the target job template.

    Note: Be sure to select the Prompt on Launch option in the Extra Variables section of your job template configuration.

    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.
    Password string
    Account password.
    Profile string
    The ID of the associated alerting profile.
    Username string
    Account username.
    Active bool
    This setting is enabled (true) or disabled (false)
    CustomMessage string
    This message will be displayed in the Extra Variables Message field of your job template. Type '{' for placeholder suggestions.. #### Available placeholders {ImpactedEntities}: Details about the entities impacted by the problem in form of a json array.
    Insecure bool
    Accept any SSL certificate (including self-signed and invalid certificates)
    JobTemplateUrl string

    The URL of the target job template.

    Note: Be sure to select the Prompt on Launch option in the Extra Variables section of your job template configuration.

    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.
    Password string
    Account password.
    Profile string
    The ID of the associated alerting profile.
    Username string
    Account username.
    active bool
    This setting is enabled (true) or disabled (false)
    custom_message string
    This message will be displayed in the Extra Variables Message field of your job template. Type '{' for placeholder suggestions.. #### Available placeholders {ImpactedEntities}: Details about the entities impacted by the problem in form of a json array.
    insecure bool
    Accept any SSL certificate (including self-signed and invalid certificates)
    job_template_url string

    The URL of the target job template.

    Note: Be sure to select the Prompt on Launch option in the Extra Variables section of your job template configuration.

    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.
    password string
    Account password.
    profile string
    The ID of the associated alerting profile.
    username string
    Account username.
    active Boolean
    This setting is enabled (true) or disabled (false)
    customMessage String
    This message will be displayed in the Extra Variables Message field of your job template. Type '{' for placeholder suggestions.. #### Available placeholders {ImpactedEntities}: Details about the entities impacted by the problem in form of a json array.
    insecure Boolean
    Accept any SSL certificate (including self-signed and invalid certificates)
    jobTemplateUrl String

    The URL of the target job template.

    Note: Be sure to select the Prompt on Launch option in the Extra Variables section of your job template configuration.

    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.
    password String
    Account password.
    profile String
    The ID of the associated alerting profile.
    username String
    Account username.
    active boolean
    This setting is enabled (true) or disabled (false)
    customMessage string
    This message will be displayed in the Extra Variables Message field of your job template. Type '{' for placeholder suggestions.. #### Available placeholders {ImpactedEntities}: Details about the entities impacted by the problem in form of a json array.
    insecure boolean
    Accept any SSL certificate (including self-signed and invalid certificates)
    jobTemplateUrl string

    The URL of the target job template.

    Note: Be sure to select the Prompt on Launch option in the Extra Variables section of your job template configuration.

    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.
    password string
    Account password.
    profile string
    The ID of the associated alerting profile.
    username string
    Account username.
    active bool
    This setting is enabled (true) or disabled (false)
    custom_message str
    This message will be displayed in the Extra Variables Message field of your job template. Type '{' for placeholder suggestions.. #### Available placeholders {ImpactedEntities}: Details about the entities impacted by the problem in form of a json array.
    insecure bool
    Accept any SSL certificate (including self-signed and invalid certificates)
    job_template_url str

    The URL of the target job template.

    Note: Be sure to select the Prompt on Launch option in the Extra Variables section of your job template configuration.

    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.
    password str
    Account password.
    profile str
    The ID of the associated alerting profile.
    username str
    Account username.
    active Boolean
    This setting is enabled (true) or disabled (false)
    customMessage String
    This message will be displayed in the Extra Variables Message field of your job template. Type '{' for placeholder suggestions.. #### Available placeholders {ImpactedEntities}: Details about the entities impacted by the problem in form of a json array.
    insecure Boolean
    Accept any SSL certificate (including self-signed and invalid certificates)
    jobTemplateUrl String

    The URL of the target job template.

    Note: Be sure to select the Prompt on Launch option in the Extra Variables section of your job template configuration.

    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.
    password String
    Account password.
    profile String
    The ID of the associated alerting profile.
    username String
    Account username.

    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