published on Tuesday, Jun 9, 2026 by Pulumiverse
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
OpsGenie notifications - https://www.dynatrace.com/support/help/setup-and-configuration/integrations/problem-notifications/opsgenie-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.OpsGenieNotificationdownloads the existing problem notifications for OpsGenie
The full documentation of the export feature is available here.
Create OpsGenieNotification Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OpsGenieNotification(name: string, args: OpsGenieNotificationArgs, opts?: CustomResourceOptions);@overload
def OpsGenieNotification(resource_name: str,
args: OpsGenieNotificationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OpsGenieNotification(resource_name: str,
opts: Optional[ResourceOptions] = None,
active: Optional[bool] = None,
domain: Optional[str] = None,
message: Optional[str] = None,
profile: Optional[str] = None,
api_key: Optional[str] = None,
legacy_id: Optional[str] = None,
name: Optional[str] = None)func NewOpsGenieNotification(ctx *Context, name string, args OpsGenieNotificationArgs, opts ...ResourceOption) (*OpsGenieNotification, error)public OpsGenieNotification(string name, OpsGenieNotificationArgs args, CustomResourceOptions? opts = null)
public OpsGenieNotification(String name, OpsGenieNotificationArgs args)
public OpsGenieNotification(String name, OpsGenieNotificationArgs args, CustomResourceOptions options)
type: dynatrace:OpsGenieNotification
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "dynatrace_opsgenienotification" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args OpsGenieNotificationArgs
- 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 OpsGenieNotificationArgs
- 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 OpsGenieNotificationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OpsGenieNotificationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OpsGenieNotificationArgs
- 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 opsGenieNotificationResource = new Dynatrace.OpsGenieNotification("opsGenieNotificationResource", new()
{
Active = false,
Domain = "string",
Message = "string",
Profile = "string",
ApiKey = "string",
LegacyId = "string",
Name = "string",
});
example, err := dynatrace.NewOpsGenieNotification(ctx, "opsGenieNotificationResource", &dynatrace.OpsGenieNotificationArgs{
Active: pulumi.Bool(false),
Domain: pulumi.String("string"),
Message: pulumi.String("string"),
Profile: pulumi.String("string"),
ApiKey: pulumi.String("string"),
LegacyId: pulumi.String("string"),
Name: pulumi.String("string"),
})
resource "dynatrace_opsgenienotification" "opsGenieNotificationResource" {
active = false
domain = "string"
message = "string"
profile = "string"
api_key = "string"
legacy_id = "string"
name = "string"
}
var opsGenieNotificationResource = new OpsGenieNotification("opsGenieNotificationResource", OpsGenieNotificationArgs.builder()
.active(false)
.domain("string")
.message("string")
.profile("string")
.apiKey("string")
.legacyId("string")
.name("string")
.build());
ops_genie_notification_resource = dynatrace.OpsGenieNotification("opsGenieNotificationResource",
active=False,
domain="string",
message="string",
profile="string",
api_key="string",
legacy_id="string",
name="string")
const opsGenieNotificationResource = new dynatrace.OpsGenieNotification("opsGenieNotificationResource", {
active: false,
domain: "string",
message: "string",
profile: "string",
apiKey: "string",
legacyId: "string",
name: "string",
});
type: dynatrace:OpsGenieNotification
properties:
active: false
apiKey: string
domain: string
legacyId: string
message: string
name: string
profile: string
OpsGenieNotification 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 OpsGenieNotification resource accepts the following input properties:
- Active bool
- This setting is enabled (
true) or disabled (false) - Domain string
- The region domain of the OpsGenie.
- Message string
The content of the message. Type '{' for placeholder suggestions.. #### Available placeholders {ProblemID}: Display number of the reported problem.
{ProblemImpact}: Impact level of the problem. Possible values are APPLICATION, SERVICE, or INFRASTRUCTURE.
{ProblemSeverity}: Severity level of the problem. Possible values are AVAILABILITY, ERROR, PERFORMANCE, RESOURCE_CONTENTION, or CUSTOM_ALERT.
{ProblemTitle}: Short description of the problem.
{ImpactedEntityNames}: The entity impacted by the problem (or multiple impacted entities).
- Profile string
- The ID of the associated alerting profile
- Api
Key string The API key to access OpsGenie.
Go to OpsGenie-Integrations and create a new Dynatrace integration. Copy the newly created API key.
- 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 bool
- This setting is enabled (
true) or disabled (false) - Domain string
- The region domain of the OpsGenie.
- Message string
The content of the message. Type '{' for placeholder suggestions.. #### Available placeholders {ProblemID}: Display number of the reported problem.
{ProblemImpact}: Impact level of the problem. Possible values are APPLICATION, SERVICE, or INFRASTRUCTURE.
{ProblemSeverity}: Severity level of the problem. Possible values are AVAILABILITY, ERROR, PERFORMANCE, RESOURCE_CONTENTION, or CUSTOM_ALERT.
{ProblemTitle}: Short description of the problem.
{ImpactedEntityNames}: The entity impacted by the problem (or multiple impacted entities).
- Profile string
- The ID of the associated alerting profile
- Api
Key string The API key to access OpsGenie.
Go to OpsGenie-Integrations and create a new Dynatrace integration. Copy the newly created API key.
- 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 bool
- This setting is enabled (
true) or disabled (false) - domain string
- The region domain of the OpsGenie.
- message string
The content of the message. Type '{' for placeholder suggestions.. #### Available placeholders {ProblemID}: Display number of the reported problem.
{ProblemImpact}: Impact level of the problem. Possible values are APPLICATION, SERVICE, or INFRASTRUCTURE.
{ProblemSeverity}: Severity level of the problem. Possible values are AVAILABILITY, ERROR, PERFORMANCE, RESOURCE_CONTENTION, or CUSTOM_ALERT.
{ProblemTitle}: Short description of the problem.
{ImpactedEntityNames}: The entity impacted by the problem (or multiple impacted entities).
- profile string
- The ID of the associated alerting profile
- api_
key string The API key to access OpsGenie.
Go to OpsGenie-Integrations and create a new Dynatrace integration. Copy the newly created API key.
- 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) - domain String
- The region domain of the OpsGenie.
- message String
The content of the message. Type '{' for placeholder suggestions.. #### Available placeholders {ProblemID}: Display number of the reported problem.
{ProblemImpact}: Impact level of the problem. Possible values are APPLICATION, SERVICE, or INFRASTRUCTURE.
{ProblemSeverity}: Severity level of the problem. Possible values are AVAILABILITY, ERROR, PERFORMANCE, RESOURCE_CONTENTION, or CUSTOM_ALERT.
{ProblemTitle}: Short description of the problem.
{ImpactedEntityNames}: The entity impacted by the problem (or multiple impacted entities).
- profile String
- The ID of the associated alerting profile
- api
Key String The API key to access OpsGenie.
Go to OpsGenie-Integrations and create a new Dynatrace integration. Copy the newly created API key.
- 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) - domain string
- The region domain of the OpsGenie.
- message string
The content of the message. Type '{' for placeholder suggestions.. #### Available placeholders {ProblemID}: Display number of the reported problem.
{ProblemImpact}: Impact level of the problem. Possible values are APPLICATION, SERVICE, or INFRASTRUCTURE.
{ProblemSeverity}: Severity level of the problem. Possible values are AVAILABILITY, ERROR, PERFORMANCE, RESOURCE_CONTENTION, or CUSTOM_ALERT.
{ProblemTitle}: Short description of the problem.
{ImpactedEntityNames}: The entity impacted by the problem (or multiple impacted entities).
- profile string
- The ID of the associated alerting profile
- api
Key string The API key to access OpsGenie.
Go to OpsGenie-Integrations and create a new Dynatrace integration. Copy the newly created API key.
- 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 bool
- This setting is enabled (
true) or disabled (false) - domain str
- The region domain of the OpsGenie.
- message str
The content of the message. Type '{' for placeholder suggestions.. #### Available placeholders {ProblemID}: Display number of the reported problem.
{ProblemImpact}: Impact level of the problem. Possible values are APPLICATION, SERVICE, or INFRASTRUCTURE.
{ProblemSeverity}: Severity level of the problem. Possible values are AVAILABILITY, ERROR, PERFORMANCE, RESOURCE_CONTENTION, or CUSTOM_ALERT.
{ProblemTitle}: Short description of the problem.
{ImpactedEntityNames}: The entity impacted by the problem (or multiple impacted entities).
- profile str
- The ID of the associated alerting profile
- api_
key str The API key to access OpsGenie.
Go to OpsGenie-Integrations and create a new Dynatrace integration. Copy the newly created API key.
- 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) - domain String
- The region domain of the OpsGenie.
- message String
The content of the message. Type '{' for placeholder suggestions.. #### Available placeholders {ProblemID}: Display number of the reported problem.
{ProblemImpact}: Impact level of the problem. Possible values are APPLICATION, SERVICE, or INFRASTRUCTURE.
{ProblemSeverity}: Severity level of the problem. Possible values are AVAILABILITY, ERROR, PERFORMANCE, RESOURCE_CONTENTION, or CUSTOM_ALERT.
{ProblemTitle}: Short description of the problem.
{ImpactedEntityNames}: The entity impacted by the problem (or multiple impacted entities).
- profile String
- The ID of the associated alerting profile
- api
Key String The API key to access OpsGenie.
Go to OpsGenie-Integrations and create a new Dynatrace integration. Copy the newly created API key.
- 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
Outputs
All input properties are implicitly available as output properties. Additionally, the OpsGenieNotification 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 OpsGenieNotification Resource
Get an existing OpsGenieNotification 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?: OpsGenieNotificationState, opts?: CustomResourceOptions): OpsGenieNotification@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
active: Optional[bool] = None,
api_key: Optional[str] = None,
domain: Optional[str] = None,
legacy_id: Optional[str] = None,
message: Optional[str] = None,
name: Optional[str] = None,
profile: Optional[str] = None) -> OpsGenieNotificationfunc GetOpsGenieNotification(ctx *Context, name string, id IDInput, state *OpsGenieNotificationState, opts ...ResourceOption) (*OpsGenieNotification, error)public static OpsGenieNotification Get(string name, Input<string> id, OpsGenieNotificationState? state, CustomResourceOptions? opts = null)public static OpsGenieNotification get(String name, Output<String> id, OpsGenieNotificationState state, CustomResourceOptions options)resources: _: type: dynatrace:OpsGenieNotification get: id: ${id}import {
to = dynatrace_opsgenienotification.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.
- Active bool
- This setting is enabled (
true) or disabled (false) - Api
Key string The API key to access OpsGenie.
Go to OpsGenie-Integrations and create a new Dynatrace integration. Copy the newly created API key.
- Domain string
- The region domain of the OpsGenie.
- 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 {ProblemID}: Display number of the reported problem.
{ProblemImpact}: Impact level of the problem. Possible values are APPLICATION, SERVICE, or INFRASTRUCTURE.
{ProblemSeverity}: Severity level of the problem. Possible values are AVAILABILITY, ERROR, PERFORMANCE, RESOURCE_CONTENTION, or CUSTOM_ALERT.
{ProblemTitle}: Short description of the problem.
{ImpactedEntityNames}: The entity impacted by the problem (or multiple impacted entities).
- Name string
- The name of the notification configuration
- Profile string
- The ID of the associated alerting profile
- Active bool
- This setting is enabled (
true) or disabled (false) - Api
Key string The API key to access OpsGenie.
Go to OpsGenie-Integrations and create a new Dynatrace integration. Copy the newly created API key.
- Domain string
- The region domain of the OpsGenie.
- 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 {ProblemID}: Display number of the reported problem.
{ProblemImpact}: Impact level of the problem. Possible values are APPLICATION, SERVICE, or INFRASTRUCTURE.
{ProblemSeverity}: Severity level of the problem. Possible values are AVAILABILITY, ERROR, PERFORMANCE, RESOURCE_CONTENTION, or CUSTOM_ALERT.
{ProblemTitle}: Short description of the problem.
{ImpactedEntityNames}: The entity impacted by the problem (or multiple impacted entities).
- Name string
- The name of the notification configuration
- Profile string
- The ID of the associated alerting profile
- active bool
- This setting is enabled (
true) or disabled (false) - api_
key string The API key to access OpsGenie.
Go to OpsGenie-Integrations and create a new Dynatrace integration. Copy the newly created API key.
- domain string
- The region domain of the OpsGenie.
- 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 {ProblemID}: Display number of the reported problem.
{ProblemImpact}: Impact level of the problem. Possible values are APPLICATION, SERVICE, or INFRASTRUCTURE.
{ProblemSeverity}: Severity level of the problem. Possible values are AVAILABILITY, ERROR, PERFORMANCE, RESOURCE_CONTENTION, or CUSTOM_ALERT.
{ProblemTitle}: Short description of the problem.
{ImpactedEntityNames}: The entity impacted by the problem (or multiple impacted entities).
- name string
- The name of the notification configuration
- profile string
- The ID of the associated alerting profile
- active Boolean
- This setting is enabled (
true) or disabled (false) - api
Key String The API key to access OpsGenie.
Go to OpsGenie-Integrations and create a new Dynatrace integration. Copy the newly created API key.
- domain String
- The region domain of the OpsGenie.
- 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 {ProblemID}: Display number of the reported problem.
{ProblemImpact}: Impact level of the problem. Possible values are APPLICATION, SERVICE, or INFRASTRUCTURE.
{ProblemSeverity}: Severity level of the problem. Possible values are AVAILABILITY, ERROR, PERFORMANCE, RESOURCE_CONTENTION, or CUSTOM_ALERT.
{ProblemTitle}: Short description of the problem.
{ImpactedEntityNames}: The entity impacted by the problem (or multiple impacted entities).
- name String
- The name of the notification configuration
- profile String
- The ID of the associated alerting profile
- active boolean
- This setting is enabled (
true) or disabled (false) - api
Key string The API key to access OpsGenie.
Go to OpsGenie-Integrations and create a new Dynatrace integration. Copy the newly created API key.
- domain string
- The region domain of the OpsGenie.
- 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 {ProblemID}: Display number of the reported problem.
{ProblemImpact}: Impact level of the problem. Possible values are APPLICATION, SERVICE, or INFRASTRUCTURE.
{ProblemSeverity}: Severity level of the problem. Possible values are AVAILABILITY, ERROR, PERFORMANCE, RESOURCE_CONTENTION, or CUSTOM_ALERT.
{ProblemTitle}: Short description of the problem.
{ImpactedEntityNames}: The entity impacted by the problem (or multiple impacted entities).
- name string
- The name of the notification configuration
- profile string
- The ID of the associated alerting profile
- active bool
- This setting is enabled (
true) or disabled (false) - api_
key str The API key to access OpsGenie.
Go to OpsGenie-Integrations and create a new Dynatrace integration. Copy the newly created API key.
- domain str
- The region domain of the OpsGenie.
- 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 {ProblemID}: Display number of the reported problem.
{ProblemImpact}: Impact level of the problem. Possible values are APPLICATION, SERVICE, or INFRASTRUCTURE.
{ProblemSeverity}: Severity level of the problem. Possible values are AVAILABILITY, ERROR, PERFORMANCE, RESOURCE_CONTENTION, or CUSTOM_ALERT.
{ProblemTitle}: Short description of the problem.
{ImpactedEntityNames}: The entity impacted by the problem (or multiple impacted entities).
- name str
- The name of the notification configuration
- profile str
- The ID of the associated alerting profile
- active Boolean
- This setting is enabled (
true) or disabled (false) - api
Key String The API key to access OpsGenie.
Go to OpsGenie-Integrations and create a new Dynatrace integration. Copy the newly created API key.
- domain String
- The region domain of the OpsGenie.
- 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 {ProblemID}: Display number of the reported problem.
{ProblemImpact}: Impact level of the problem. Possible values are APPLICATION, SERVICE, or INFRASTRUCTURE.
{ProblemSeverity}: Severity level of the problem. Possible values are AVAILABILITY, ERROR, PERFORMANCE, RESOURCE_CONTENTION, or CUSTOM_ALERT.
{ProblemTitle}: Short description of the problem.
{ImpactedEntityNames}: The entity impacted by the problem (or multiple impacted entities).
- name String
- The name of the notification configuration
- profile String
- The ID of the associated alerting profile
Package Details
- Repository
- dynatrace pulumiverse/pulumi-dynatrace
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dynatraceTerraform Provider.
published on Tuesday, Jun 9, 2026 by Pulumiverse