1. Packages
  2. Dynatrace
  3. API Docs
  4. OpsGenieNotification
Dynatrace v0.10.0 published on Friday, Jun 7, 2024 by Pulumiverse

dynatrace.OpsGenieNotification

Explore with Pulumi AI

dynatrace logo
Dynatrace v0.10.0 published on Friday, Jun 7, 2024 by Pulumiverse

    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.
    
    

    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"),
    })
    
    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

    The OpsGenieNotification resource accepts the following input properties:

    Active bool
    The configuration is enabled (true) or disabled (false)
    Domain string
    The region domain of the OpsGenie
    Message string
    The content of the message. You can use the following placeholders: * {ProblemID}: The display number of the reported problem. * {ProblemImpact}: The impact level of the problem. Possible values are APPLICATION, SERVICE, and INFRASTRUCTURE. * {ProblemSeverity}: The severity level of the problem. Possible values are AVAILABILITY, ERROR, PERFORMANCE, RESOURCE_CONTENTION, and CUSTOM_ALERT. * {ProblemTitle}: A short description of the problem
    Profile string
    The ID of the associated alerting profile
    ApiKey string
    The API key to access OpsGenie
    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
    The configuration is enabled (true) or disabled (false)
    Domain string
    The region domain of the OpsGenie
    Message string
    The content of the message. You can use the following placeholders: * {ProblemID}: The display number of the reported problem. * {ProblemImpact}: The impact level of the problem. Possible values are APPLICATION, SERVICE, and INFRASTRUCTURE. * {ProblemSeverity}: The severity level of the problem. Possible values are AVAILABILITY, ERROR, PERFORMANCE, RESOURCE_CONTENTION, and CUSTOM_ALERT. * {ProblemTitle}: A short description of the problem
    Profile string
    The ID of the associated alerting profile
    ApiKey string
    The API key to access OpsGenie
    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
    The configuration is enabled (true) or disabled (false)
    domain String
    The region domain of the OpsGenie
    message String
    The content of the message. You can use the following placeholders: * {ProblemID}: The display number of the reported problem. * {ProblemImpact}: The impact level of the problem. Possible values are APPLICATION, SERVICE, and INFRASTRUCTURE. * {ProblemSeverity}: The severity level of the problem. Possible values are AVAILABILITY, ERROR, PERFORMANCE, RESOURCE_CONTENTION, and CUSTOM_ALERT. * {ProblemTitle}: A short description of the problem
    profile String
    The ID of the associated alerting profile
    apiKey String
    The API key to access OpsGenie
    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
    The configuration is enabled (true) or disabled (false)
    domain string
    The region domain of the OpsGenie
    message string
    The content of the message. You can use the following placeholders: * {ProblemID}: The display number of the reported problem. * {ProblemImpact}: The impact level of the problem. Possible values are APPLICATION, SERVICE, and INFRASTRUCTURE. * {ProblemSeverity}: The severity level of the problem. Possible values are AVAILABILITY, ERROR, PERFORMANCE, RESOURCE_CONTENTION, and CUSTOM_ALERT. * {ProblemTitle}: A short description of the problem
    profile string
    The ID of the associated alerting profile
    apiKey string
    The API key to access OpsGenie
    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
    The configuration is enabled (true) or disabled (false)
    domain str
    The region domain of the OpsGenie
    message str
    The content of the message. You can use the following placeholders: * {ProblemID}: The display number of the reported problem. * {ProblemImpact}: The impact level of the problem. Possible values are APPLICATION, SERVICE, and INFRASTRUCTURE. * {ProblemSeverity}: The severity level of the problem. Possible values are AVAILABILITY, ERROR, PERFORMANCE, RESOURCE_CONTENTION, and CUSTOM_ALERT. * {ProblemTitle}: A short description of the problem
    profile str
    The ID of the associated alerting profile
    api_key str
    The API key to access OpsGenie
    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
    The configuration is enabled (true) or disabled (false)
    domain String
    The region domain of the OpsGenie
    message String
    The content of the message. You can use the following placeholders: * {ProblemID}: The display number of the reported problem. * {ProblemImpact}: The impact level of the problem. Possible values are APPLICATION, SERVICE, and INFRASTRUCTURE. * {ProblemSeverity}: The severity level of the problem. Possible values are AVAILABILITY, ERROR, PERFORMANCE, RESOURCE_CONTENTION, and CUSTOM_ALERT. * {ProblemTitle}: A short description of the problem
    profile String
    The ID of the associated alerting profile
    apiKey String
    The API key to access OpsGenie
    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 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 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) -> OpsGenieNotification
    func 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)
    Resource lookup is not supported in YAML
    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
    The configuration is enabled (true) or disabled (false)
    ApiKey string
    The API key to access OpsGenie
    Domain string
    The region domain of the OpsGenie
    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. You can use the following placeholders: * {ProblemID}: The display number of the reported problem. * {ProblemImpact}: The impact level of the problem. Possible values are APPLICATION, SERVICE, and INFRASTRUCTURE. * {ProblemSeverity}: The severity level of the problem. Possible values are AVAILABILITY, ERROR, PERFORMANCE, RESOURCE_CONTENTION, and CUSTOM_ALERT. * {ProblemTitle}: A short description of the problem
    Name string
    The name of the notification configuration
    Profile string
    The ID of the associated alerting profile
    Active bool
    The configuration is enabled (true) or disabled (false)
    ApiKey string
    The API key to access OpsGenie
    Domain string
    The region domain of the OpsGenie
    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. You can use the following placeholders: * {ProblemID}: The display number of the reported problem. * {ProblemImpact}: The impact level of the problem. Possible values are APPLICATION, SERVICE, and INFRASTRUCTURE. * {ProblemSeverity}: The severity level of the problem. Possible values are AVAILABILITY, ERROR, PERFORMANCE, RESOURCE_CONTENTION, and CUSTOM_ALERT. * {ProblemTitle}: A short description of the problem
    Name string
    The name of the notification configuration
    Profile string
    The ID of the associated alerting profile
    active Boolean
    The configuration is enabled (true) or disabled (false)
    apiKey String
    The API key to access OpsGenie
    domain String
    The region domain of the OpsGenie
    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. You can use the following placeholders: * {ProblemID}: The display number of the reported problem. * {ProblemImpact}: The impact level of the problem. Possible values are APPLICATION, SERVICE, and INFRASTRUCTURE. * {ProblemSeverity}: The severity level of the problem. Possible values are AVAILABILITY, ERROR, PERFORMANCE, RESOURCE_CONTENTION, and CUSTOM_ALERT. * {ProblemTitle}: A short description of the problem
    name String
    The name of the notification configuration
    profile String
    The ID of the associated alerting profile
    active boolean
    The configuration is enabled (true) or disabled (false)
    apiKey string
    The API key to access OpsGenie
    domain string
    The region domain of the OpsGenie
    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. You can use the following placeholders: * {ProblemID}: The display number of the reported problem. * {ProblemImpact}: The impact level of the problem. Possible values are APPLICATION, SERVICE, and INFRASTRUCTURE. * {ProblemSeverity}: The severity level of the problem. Possible values are AVAILABILITY, ERROR, PERFORMANCE, RESOURCE_CONTENTION, and CUSTOM_ALERT. * {ProblemTitle}: A short description of the problem
    name string
    The name of the notification configuration
    profile string
    The ID of the associated alerting profile
    active bool
    The configuration is enabled (true) or disabled (false)
    api_key str
    The API key to access OpsGenie
    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. You can use the following placeholders: * {ProblemID}: The display number of the reported problem. * {ProblemImpact}: The impact level of the problem. Possible values are APPLICATION, SERVICE, and INFRASTRUCTURE. * {ProblemSeverity}: The severity level of the problem. Possible values are AVAILABILITY, ERROR, PERFORMANCE, RESOURCE_CONTENTION, and CUSTOM_ALERT. * {ProblemTitle}: A short description of the problem
    name str
    The name of the notification configuration
    profile str
    The ID of the associated alerting profile
    active Boolean
    The configuration is enabled (true) or disabled (false)
    apiKey String
    The API key to access OpsGenie
    domain String
    The region domain of the OpsGenie
    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. You can use the following placeholders: * {ProblemID}: The display number of the reported problem. * {ProblemImpact}: The impact level of the problem. Possible values are APPLICATION, SERVICE, and INFRASTRUCTURE. * {ProblemSeverity}: The severity level of the problem. Possible values are AVAILABILITY, ERROR, PERFORMANCE, RESOURCE_CONTENTION, and CUSTOM_ALERT. * {ProblemTitle}: A short description of the problem
    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 dynatrace Terraform Provider.
    dynatrace logo
    Dynatrace v0.10.0 published on Friday, Jun 7, 2024 by Pulumiverse