Opsgenie v1.3.12 published on Wednesday, Oct 16, 2024 by Pulumi
opsgenie.getEscalation
Explore with Pulumi AI
Manages an Escalation within Opsgenie.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opsgenie from "@pulumi/opsgenie";
const test = opsgenie.getEscalation({
name: "existing-escalation",
});
import pulumi
import pulumi_opsgenie as opsgenie
test = opsgenie.get_escalation(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, &opsgenie.LookupEscalationArgs{
Name: "existing-escalation",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opsgenie = Pulumi.Opsgenie;
return await Deployment.RunAsync(() =>
{
var test = Opsgenie.GetEscalation.Invoke(new()
{
Name = "existing-escalation",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opsgenie.OpsgenieFunctions;
import com.pulumi.opsgenie.inputs.GetEscalationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var test = OpsgenieFunctions.getEscalation(GetEscalationArgs.builder()
.name("existing-escalation")
.build());
}
}
variables:
test:
fn::invoke:
Function: opsgenie:getEscalation
Arguments:
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)
}
public static CompletableFuture<GetEscalationResult> getEscalation(GetEscalationArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: opsgenie:index/getEscalation:getEscalation
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- Name of the escalation.
- Description string
- Escalation Description
- Owner
Team stringId - If owner team exist the id of the team is exported
- Repeats
List<Get
Escalation Repeat> - Escalation repeat preferences
- Rules
List<Get
Escalation Rule> - Escalation rules
- Name string
- Name of the escalation.
- Description string
- Escalation Description
- Owner
Team stringId - If owner team exist the id of the team is exported
- Repeats
[]Get
Escalation Repeat - Escalation repeat preferences
- Rules
[]Get
Escalation Rule - Escalation rules
- name String
- Name of the escalation.
- description String
- Escalation Description
- owner
Team StringId - If owner team exist the id of the team is exported
- repeats
List<Get
Escalation Repeat> - Escalation repeat preferences
- rules
List<Get
Escalation Rule> - Escalation rules
- name string
- Name of the escalation.
- description string
- Escalation Description
- owner
Team stringId - If owner team exist the id of the team is exported
- repeats
Get
Escalation Repeat[] - Escalation repeat preferences
- rules
Get
Escalation Rule[] - Escalation rules
- name str
- Name of the escalation.
- description str
- Escalation Description
- owner_
team_ strid - If owner team exist the id of the team is exported
- repeats
Sequence[Get
Escalation Repeat] - Escalation repeat preferences
- rules
Sequence[Get
Escalation Rule] - Escalation rules
- name String
- Name of the escalation.
- description String
- Escalation Description
- owner
Team StringId - If owner team exist the id of the team is exported
- repeats List<Property Map>
- Escalation repeat preferences
- rules List<Property Map>
- 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
- Owner
Team stringId - If owner team exist the id of the team is exported
- Repeats
List<Get
Escalation Repeat> - Escalation repeat preferences
- Rules
List<Get
Escalation Rule> - Escalation rules
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Description string
- Escalation Description
- Owner
Team stringId - If owner team exist the id of the team is exported
- Repeats
[]Get
Escalation Repeat - Escalation repeat preferences
- Rules
[]Get
Escalation Rule - Escalation rules
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- description String
- Escalation Description
- owner
Team StringId - If owner team exist the id of the team is exported
- repeats
List<Get
Escalation Repeat> - Escalation repeat preferences
- rules
List<Get
Escalation Rule> - Escalation rules
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- description string
- Escalation Description
- owner
Team stringId - If owner team exist the id of the team is exported
- repeats
Get
Escalation Repeat[] - Escalation repeat preferences
- rules
Get
Escalation Rule[] - Escalation rules
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- description str
- Escalation Description
- owner_
team_ strid - If owner team exist the id of the team is exported
- repeats
Sequence[Get
Escalation Repeat] - Escalation repeat preferences
- rules
Sequence[Get
Escalation Rule] - Escalation rules
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- description String
- Escalation Description
- owner
Team StringId - If owner team exist the id of the team is exported
- repeats List<Property Map>
- Escalation repeat preferences
- rules List<Property Map>
- Escalation rules
Supporting Types
GetEscalationRepeat
- Close
Alert boolAfter All - Count int
- Reset
Recipient boolStates - Wait
Interval int
- Close
Alert boolAfter All - Count int
- Reset
Recipient boolStates - Wait
Interval int
- close
Alert BooleanAfter All - count Integer
- reset
Recipient BooleanStates - wait
Interval Integer
- close
Alert booleanAfter All - count number
- reset
Recipient booleanStates - wait
Interval number
- close_
alert_ boolafter_ all - count int
- reset_
recipient_ boolstates - wait_
interval int
- close
Alert BooleanAfter All - count Number
- reset
Recipient BooleanStates - wait
Interval Number
GetEscalationRule
- Condition string
- Delay int
- Notify
Type string - Recipients
List<Get
Escalation Rule Recipient>
- Condition string
- Delay int
- Notify
Type string - Recipients
[]Get
Escalation Rule Recipient
- condition String
- delay Integer
- notify
Type String - recipients
List<Get
Escalation Rule Recipient>
- condition string
- delay number
- notify
Type string - recipients
Get
Escalation Rule Recipient[]
- condition String
- delay Number
- notify
Type String - recipients List<Property Map>
GetEscalationRuleRecipient
Package Details
- Repository
- Opsgenie pulumi/pulumi-opsgenie
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
opsgenie
Terraform Provider.