1. Packages
  2. Dynatrace
  3. API Docs
  4. PagerDutyNotification
Dynatrace v0.27.0 published on Friday, Mar 21, 2025 by Pulumiverse

dynatrace.PagerDutyNotification

Explore with Pulumi AI

Create PagerDutyNotification Resource

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

Constructor syntax

new PagerDutyNotification(name: string, args: PagerDutyNotificationArgs, opts?: CustomResourceOptions);
@overload
def PagerDutyNotification(resource_name: str,
                          args: PagerDutyNotificationArgs,
                          opts: Optional[ResourceOptions] = None)

@overload
def PagerDutyNotification(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          account: Optional[str] = None,
                          active: Optional[bool] = None,
                          profile: Optional[str] = None,
                          service: Optional[str] = None,
                          api_key: Optional[str] = None,
                          legacy_id: Optional[str] = None,
                          name: Optional[str] = None)
func NewPagerDutyNotification(ctx *Context, name string, args PagerDutyNotificationArgs, opts ...ResourceOption) (*PagerDutyNotification, error)
public PagerDutyNotification(string name, PagerDutyNotificationArgs args, CustomResourceOptions? opts = null)
public PagerDutyNotification(String name, PagerDutyNotificationArgs args)
public PagerDutyNotification(String name, PagerDutyNotificationArgs args, CustomResourceOptions options)
type: dynatrace:PagerDutyNotification
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. PagerDutyNotificationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. PagerDutyNotificationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. PagerDutyNotificationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. PagerDutyNotificationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. PagerDutyNotificationArgs
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 pagerDutyNotificationResource = new Dynatrace.PagerDutyNotification("pagerDutyNotificationResource", new()
{
    Account = "string",
    Active = false,
    Profile = "string",
    Service = "string",
    ApiKey = "string",
    LegacyId = "string",
    Name = "string",
});
Copy
example, err := dynatrace.NewPagerDutyNotification(ctx, "pagerDutyNotificationResource", &dynatrace.PagerDutyNotificationArgs{
	Account:  pulumi.String("string"),
	Active:   pulumi.Bool(false),
	Profile:  pulumi.String("string"),
	Service:  pulumi.String("string"),
	ApiKey:   pulumi.String("string"),
	LegacyId: pulumi.String("string"),
	Name:     pulumi.String("string"),
})
Copy
var pagerDutyNotificationResource = new PagerDutyNotification("pagerDutyNotificationResource", PagerDutyNotificationArgs.builder()
    .account("string")
    .active(false)
    .profile("string")
    .service("string")
    .apiKey("string")
    .legacyId("string")
    .name("string")
    .build());
Copy
pager_duty_notification_resource = dynatrace.PagerDutyNotification("pagerDutyNotificationResource",
    account="string",
    active=False,
    profile="string",
    service="string",
    api_key="string",
    legacy_id="string",
    name="string")
Copy
const pagerDutyNotificationResource = new dynatrace.PagerDutyNotification("pagerDutyNotificationResource", {
    account: "string",
    active: false,
    profile: "string",
    service: "string",
    apiKey: "string",
    legacyId: "string",
    name: "string",
});
Copy
type: dynatrace:PagerDutyNotification
properties:
    account: string
    active: false
    apiKey: string
    legacyId: string
    name: string
    profile: string
    service: string
Copy

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

Account This property is required. string
The name of the PagerDuty account
Active This property is required. bool
The configuration is enabled (true) or disabled (false)
Profile This property is required. string
The ID of the associated alerting profile
Service This property is required. string
The name of the PagerDuty Service
ApiKey string
The API key to access PagerDuty
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
Account This property is required. string
The name of the PagerDuty account
Active This property is required. bool
The configuration is enabled (true) or disabled (false)
Profile This property is required. string
The ID of the associated alerting profile
Service This property is required. string
The name of the PagerDuty Service
ApiKey string
The API key to access PagerDuty
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
account This property is required. String
The name of the PagerDuty account
active This property is required. Boolean
The configuration is enabled (true) or disabled (false)
profile This property is required. String
The ID of the associated alerting profile
service This property is required. String
The name of the PagerDuty Service
apiKey String
The API key to access PagerDuty
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
account This property is required. string
The name of the PagerDuty account
active This property is required. boolean
The configuration is enabled (true) or disabled (false)
profile This property is required. string
The ID of the associated alerting profile
service This property is required. string
The name of the PagerDuty Service
apiKey string
The API key to access PagerDuty
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
account This property is required. str
The name of the PagerDuty account
active This property is required. bool
The configuration is enabled (true) or disabled (false)
profile This property is required. str
The ID of the associated alerting profile
service This property is required. str
The name of the PagerDuty Service
api_key str
The API key to access PagerDuty
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
account This property is required. String
The name of the PagerDuty account
active This property is required. Boolean
The configuration is enabled (true) or disabled (false)
profile This property is required. String
The ID of the associated alerting profile
service This property is required. String
The name of the PagerDuty Service
apiKey String
The API key to access PagerDuty
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 PagerDutyNotification 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 str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing PagerDutyNotification Resource

Get an existing PagerDutyNotification 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?: PagerDutyNotificationState, opts?: CustomResourceOptions): PagerDutyNotification
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account: Optional[str] = None,
        active: Optional[bool] = None,
        api_key: Optional[str] = None,
        legacy_id: Optional[str] = None,
        name: Optional[str] = None,
        profile: Optional[str] = None,
        service: Optional[str] = None) -> PagerDutyNotification
func GetPagerDutyNotification(ctx *Context, name string, id IDInput, state *PagerDutyNotificationState, opts ...ResourceOption) (*PagerDutyNotification, error)
public static PagerDutyNotification Get(string name, Input<string> id, PagerDutyNotificationState? state, CustomResourceOptions? opts = null)
public static PagerDutyNotification get(String name, Output<String> id, PagerDutyNotificationState state, CustomResourceOptions options)
resources:  _:    type: dynatrace:PagerDutyNotification    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Account string
The name of the PagerDuty account
Active bool
The configuration is enabled (true) or disabled (false)
ApiKey string
The API key to access PagerDuty
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
Profile string
The ID of the associated alerting profile
Service string
The name of the PagerDuty Service
Account string
The name of the PagerDuty account
Active bool
The configuration is enabled (true) or disabled (false)
ApiKey string
The API key to access PagerDuty
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
Profile string
The ID of the associated alerting profile
Service string
The name of the PagerDuty Service
account String
The name of the PagerDuty account
active Boolean
The configuration is enabled (true) or disabled (false)
apiKey String
The API key to access PagerDuty
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
profile String
The ID of the associated alerting profile
service String
The name of the PagerDuty Service
account string
The name of the PagerDuty account
active boolean
The configuration is enabled (true) or disabled (false)
apiKey string
The API key to access PagerDuty
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
profile string
The ID of the associated alerting profile
service string
The name of the PagerDuty Service
account str
The name of the PagerDuty account
active bool
The configuration is enabled (true) or disabled (false)
api_key str
The API key to access PagerDuty
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
profile str
The ID of the associated alerting profile
service str
The name of the PagerDuty Service
account String
The name of the PagerDuty account
active Boolean
The configuration is enabled (true) or disabled (false)
apiKey String
The API key to access PagerDuty
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
profile String
The ID of the associated alerting profile
service String
The name of the PagerDuty Service

Package Details

Repository
dynatrace pulumiverse/pulumi-dynatrace
License
Apache-2.0
Notes
This Pulumi package is based on the dynatrace Terraform Provider.