Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

Opsgenie

v1.1.0 published on Thursday, Nov 11, 2021 by Pulumi

getEscalation

Manages an Escalation within Opsgenie.

Example Usage

using Pulumi;
using Opsgenie = Pulumi.Opsgenie;

class MyStack : Stack
{
    public MyStack()
    {
        var test = Output.Create(Opsgenie.GetEscalation.InvokeAsync(new Opsgenie.GetEscalationArgs
        {
            Name = "existing-escalation",
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-opsgenie/sdk/go/opsgenie"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := opsgenie.LookupEscalation(ctx, &GetEscalationArgs{
			Name: "existing-escalation",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_opsgenie as opsgenie

test = opsgenie.get_escalation(name="existing-escalation")
import * as pulumi from "@pulumi/pulumi";
import * as opsgenie from "@pulumi/opsgenie";

const test = pulumi.output(opsgenie.getEscalation({
    name: "existing-escalation",
}));

Using getEscalation

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getEscalation(args: GetEscalationArgs, opts?: InvokeOptions): Promise<GetEscalationResult>
function getEscalationOutput(args: GetEscalationOutputArgs, opts?: InvokeOptions): Output<GetEscalationResult>
def get_escalation(description: Optional[str] = None,
                   name: Optional[str] = None,
                   owner_team_id: Optional[str] = None,
                   repeats: Optional[Sequence[GetEscalationRepeat]] = None,
                   rules: Optional[Sequence[GetEscalationRule]] = None,
                   opts: Optional[InvokeOptions] = None) -> GetEscalationResult
def get_escalation_output(description: Optional[pulumi.Input[str]] = None,
                   name: Optional[pulumi.Input[str]] = None,
                   owner_team_id: Optional[pulumi.Input[str]] = None,
                   repeats: Optional[pulumi.Input[Sequence[pulumi.Input[GetEscalationRepeatArgs]]]] = None,
                   rules: Optional[pulumi.Input[Sequence[pulumi.Input[GetEscalationRuleArgs]]]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetEscalationResult]
func LookupEscalation(ctx *Context, args *LookupEscalationArgs, opts ...InvokeOption) (*LookupEscalationResult, error)
func LookupEscalationOutput(ctx *Context, args *LookupEscalationOutputArgs, opts ...InvokeOption) LookupEscalationResultOutput

> Note: This function is named LookupEscalation in the Go SDK.

public static class GetEscalation 
{
    public static Task<GetEscalationResult> InvokeAsync(GetEscalationArgs args, InvokeOptions? opts = null)
    public static Output<GetEscalationResult> Invoke(GetEscalationInvokeArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string
Name of the escalation.
Description string
Escalation Description
OwnerTeamId string
If owner team exist the id of the team is exported
Repeats List<GetEscalationRepeat>
Escalation repeat preferences
Rules List<GetEscalationRule>
Escalation rules
Name string
Name of the escalation.
Description string
Escalation Description
OwnerTeamId string
If owner team exist the id of the team is exported
Repeats []GetEscalationRepeat
Escalation repeat preferences
Rules []GetEscalationRule
Escalation rules
name string
Name of the escalation.
description string
Escalation Description
ownerTeamId string
If owner team exist the id of the team is exported
repeats GetEscalationRepeat[]
Escalation repeat preferences
rules GetEscalationRule[]
Escalation rules
name str
Name of the escalation.
description str
Escalation Description
owner_team_id str
If owner team exist the id of the team is exported
repeats Sequence[GetEscalationRepeat]
Escalation repeat preferences
rules Sequence[GetEscalationRule]
Escalation rules

getEscalation Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Name string
Description string
Escalation Description
OwnerTeamId string
If owner team exist the id of the team is exported
Repeats List<GetEscalationRepeat>
Escalation repeat preferences
Rules List<GetEscalationRule>
Escalation rules
Id string
The provider-assigned unique ID for this managed resource.
Name string
Description string
Escalation Description
OwnerTeamId string
If owner team exist the id of the team is exported
Repeats []GetEscalationRepeat
Escalation repeat preferences
Rules []GetEscalationRule
Escalation rules
id string
The provider-assigned unique ID for this managed resource.
name string
description string
Escalation Description
ownerTeamId string
If owner team exist the id of the team is exported
repeats GetEscalationRepeat[]
Escalation repeat preferences
rules GetEscalationRule[]
Escalation rules
id str
The provider-assigned unique ID for this managed resource.
name str
description str
Escalation Description
owner_team_id str
If owner team exist the id of the team is exported
repeats Sequence[GetEscalationRepeat]
Escalation repeat preferences
rules Sequence[GetEscalationRule]
Escalation rules

Supporting Types

GetEscalationRepeat

GetEscalationRule

GetEscalationRuleRecipient

Id string
The ID of the Opsgenie Escalation.
Type string
Id string
The ID of the Opsgenie Escalation.
Type string
id string
The ID of the Opsgenie Escalation.
type string
id str
The ID of the Opsgenie Escalation.
type str

Package Details

Repository
https://github.com/pulumi/pulumi-opsgenie
License
Apache-2.0
Notes
This Pulumi package is based on the opsgenie Terraform Provider.