1. Packages
  2. Opsgenie Provider
  3. API Docs
  4. getEscalation
Opsgenie v1.3.12 published on Wednesday, Oct 16, 2024 by Pulumi

opsgenie.getEscalation

Explore with Pulumi AI

opsgenie logo
Opsgenie v1.3.12 published on Wednesday, Oct 16, 2024 by Pulumi

    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
    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 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 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
    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<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
    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 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 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
    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<Property Map>
    Escalation repeat preferences
    rules List<Property Map>
    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 string
    The ID of the Opsgenie Escalation.
    type string
    id str
    The ID of the Opsgenie Escalation.
    type str
    id String
    The ID of the Opsgenie Escalation.
    type String

    Package Details

    Repository
    Opsgenie pulumi/pulumi-opsgenie
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the opsgenie Terraform Provider.
    opsgenie logo
    Opsgenie v1.3.12 published on Wednesday, Oct 16, 2024 by Pulumi