PagerDuty v4.23.1 published on Tuesday, Apr 22, 2025 by Pulumi
pagerduty.getEventOrchestration
Explore with Pulumi AI
Use this data source to get information about a specific Global Event Orchestration
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as pagerduty from "@pulumi/pagerduty";
const tfOrchA = new pagerduty.EventOrchestration("tf_orch_a", {name: "Test Event Orchestration"});
const tfMyMonitor = pagerduty.getEventOrchestrationOutput({
    name: tfOrchA.name,
});
const unrouted = new pagerduty.EventOrchestrationUnrouted("unrouted", {
    eventOrchestration: tfMyMonitor.apply(tfMyMonitor => tfMyMonitor.id),
    catchAll: {
        actions: {
            severity: "info",
        },
    },
    sets: [{
        id: "start",
        rules: [{
            actions: {
                extractions: [{
                    target: "event.custom_details.integration_type",
                    template: tfMyMonitor.apply(tfMyMonitor => tfMyMonitor.integrationDetail?.[0]?.parameters?.[0]?.type),
                }],
            },
        }],
    }],
});
import pulumi
import pulumi_pagerduty as pagerduty
tf_orch_a = pagerduty.EventOrchestration("tf_orch_a", name="Test Event Orchestration")
tf_my_monitor = pagerduty.get_event_orchestration_output(name=tf_orch_a.name)
unrouted = pagerduty.EventOrchestrationUnrouted("unrouted",
    event_orchestration=tf_my_monitor.id,
    catch_all={
        "actions": {
            "severity": "info",
        },
    },
    sets=[{
        "id": "start",
        "rules": [{
            "actions": {
                "extractions": [{
                    "target": "event.custom_details.integration_type",
                    "template": tf_my_monitor.integration_detail[0].parameters[0].type,
                }],
            },
        }],
    }])
package main
import (
	"github.com/pulumi/pulumi-pagerduty/sdk/v4/go/pagerduty"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		tfOrchA, err := pagerduty.NewEventOrchestration(ctx, "tf_orch_a", &pagerduty.EventOrchestrationArgs{
			Name: pulumi.String("Test Event Orchestration"),
		})
		if err != nil {
			return err
		}
		tfMyMonitor := pagerduty.LookupEventOrchestrationOutput(ctx, pagerduty.GetEventOrchestrationOutputArgs{
			Name: tfOrchA.Name,
		}, nil)
		_, err = pagerduty.NewEventOrchestrationUnrouted(ctx, "unrouted", &pagerduty.EventOrchestrationUnroutedArgs{
			EventOrchestration: pulumi.String(tfMyMonitor.ApplyT(func(tfMyMonitor pagerduty.GetEventOrchestrationResult) (*string, error) {
				return &tfMyMonitor.Id, nil
			}).(pulumi.StringPtrOutput)),
			CatchAll: &pagerduty.EventOrchestrationUnroutedCatchAllArgs{
				Actions: &pagerduty.EventOrchestrationUnroutedCatchAllActionsArgs{
					Severity: pulumi.String("info"),
				},
			},
			Sets: pagerduty.EventOrchestrationUnroutedSetArray{
				&pagerduty.EventOrchestrationUnroutedSetArgs{
					Id: pulumi.String("start"),
					Rules: pagerduty.EventOrchestrationUnroutedSetRuleArray{
						&pagerduty.EventOrchestrationUnroutedSetRuleArgs{
							Actions: &pagerduty.EventOrchestrationUnroutedSetRuleActionsArgs{
								Extractions: pagerduty.EventOrchestrationUnroutedSetRuleActionsExtractionArray{
									&pagerduty.EventOrchestrationUnroutedSetRuleActionsExtractionArgs{
										Target: pulumi.String("event.custom_details.integration_type"),
										Template: tfMyMonitor.ApplyT(func(tfMyMonitor pagerduty.GetEventOrchestrationResult) (*string, error) {
											return &tfMyMonitor.IntegrationDetail[0].Parameters[0].Type, nil
										}).(pulumi.StringPtrOutput),
									},
								},
							},
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Pagerduty = Pulumi.Pagerduty;
return await Deployment.RunAsync(() => 
{
    var tfOrchA = new Pagerduty.EventOrchestration("tf_orch_a", new()
    {
        Name = "Test Event Orchestration",
    });
    var tfMyMonitor = Pagerduty.GetEventOrchestration.Invoke(new()
    {
        Name = tfOrchA.Name,
    });
    var unrouted = new Pagerduty.EventOrchestrationUnrouted("unrouted", new()
    {
        EventOrchestration = tfMyMonitor.Apply(getEventOrchestrationResult => getEventOrchestrationResult.Id),
        CatchAll = new Pagerduty.Inputs.EventOrchestrationUnroutedCatchAllArgs
        {
            Actions = new Pagerduty.Inputs.EventOrchestrationUnroutedCatchAllActionsArgs
            {
                Severity = "info",
            },
        },
        Sets = new[]
        {
            new Pagerduty.Inputs.EventOrchestrationUnroutedSetArgs
            {
                Id = "start",
                Rules = new[]
                {
                    new Pagerduty.Inputs.EventOrchestrationUnroutedSetRuleArgs
                    {
                        Actions = new Pagerduty.Inputs.EventOrchestrationUnroutedSetRuleActionsArgs
                        {
                            Extractions = new[]
                            {
                                new Pagerduty.Inputs.EventOrchestrationUnroutedSetRuleActionsExtractionArgs
                                {
                                    Target = "event.custom_details.integration_type",
                                    Template = tfMyMonitor.Apply(getEventOrchestrationResult => getEventOrchestrationResult.IntegrationDetail[0]?.Parameters[0]?.Type),
                                },
                            },
                        },
                    },
                },
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.pagerduty.EventOrchestration;
import com.pulumi.pagerduty.EventOrchestrationArgs;
import com.pulumi.pagerduty.PagerdutyFunctions;
import com.pulumi.pagerduty.inputs.GetEventOrchestrationArgs;
import com.pulumi.pagerduty.EventOrchestrationUnrouted;
import com.pulumi.pagerduty.EventOrchestrationUnroutedArgs;
import com.pulumi.pagerduty.inputs.EventOrchestrationUnroutedCatchAllArgs;
import com.pulumi.pagerduty.inputs.EventOrchestrationUnroutedCatchAllActionsArgs;
import com.pulumi.pagerduty.inputs.EventOrchestrationUnroutedSetArgs;
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) {
        var tfOrchA = new EventOrchestration("tfOrchA", EventOrchestrationArgs.builder()
            .name("Test Event Orchestration")
            .build());
        final var tfMyMonitor = PagerdutyFunctions.getEventOrchestration(GetEventOrchestrationArgs.builder()
            .name(tfOrchA.name())
            .build());
        var unrouted = new EventOrchestrationUnrouted("unrouted", EventOrchestrationUnroutedArgs.builder()
            .eventOrchestration(tfMyMonitor.applyValue(_tfMyMonitor -> _tfMyMonitor.id()))
            .catchAll(EventOrchestrationUnroutedCatchAllArgs.builder()
                .actions(EventOrchestrationUnroutedCatchAllActionsArgs.builder()
                    .severity("info")
                    .build())
                .build())
            .sets(EventOrchestrationUnroutedSetArgs.builder()
                .id("start")
                .rules(EventOrchestrationUnroutedSetRuleArgs.builder()
                    .actions(EventOrchestrationUnroutedSetRuleActionsArgs.builder()
                        .extractions(EventOrchestrationUnroutedSetRuleActionsExtractionArgs.builder()
                            .target("event.custom_details.integration_type")
                            .template(tfMyMonitor.applyValue(_tfMyMonitor -> _tfMyMonitor.integrationDetail()[0].parameters()[0].type()))
                            .build())
                        .build())
                    .build())
                .build())
            .build());
    }
}
resources:
  tfOrchA:
    type: pagerduty:EventOrchestration
    name: tf_orch_a
    properties:
      name: Test Event Orchestration
  unrouted:
    type: pagerduty:EventOrchestrationUnrouted
    properties:
      eventOrchestration: ${tfMyMonitor.id}
      catchAll:
        actions:
          severity: info
      sets:
        - id: start
          rules:
            - actions:
                extractions:
                  - target: event.custom_details.integration_type
                    template: ${tfMyMonitor.integrationDetail[0].parameters[0].type}
variables:
  tfMyMonitor:
    fn::invoke:
      function: pagerduty:getEventOrchestration
      arguments:
        name: ${tfOrchA.name}
Using getEventOrchestration
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 getEventOrchestration(args: GetEventOrchestrationArgs, opts?: InvokeOptions): Promise<GetEventOrchestrationResult>
function getEventOrchestrationOutput(args: GetEventOrchestrationOutputArgs, opts?: InvokeOptions): Output<GetEventOrchestrationResult>def get_event_orchestration(integration_detail: Optional[Sequence[GetEventOrchestrationIntegrationDetail]] = None,
                            name: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetEventOrchestrationResult
def get_event_orchestration_output(integration_detail: Optional[pulumi.Input[Sequence[pulumi.Input[GetEventOrchestrationIntegrationDetailArgs]]]] = None,
                            name: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetEventOrchestrationResult]func LookupEventOrchestration(ctx *Context, args *LookupEventOrchestrationArgs, opts ...InvokeOption) (*LookupEventOrchestrationResult, error)
func LookupEventOrchestrationOutput(ctx *Context, args *LookupEventOrchestrationOutputArgs, opts ...InvokeOption) LookupEventOrchestrationResultOutput> Note: This function is named LookupEventOrchestration in the Go SDK.
public static class GetEventOrchestration 
{
    public static Task<GetEventOrchestrationResult> InvokeAsync(GetEventOrchestrationArgs args, InvokeOptions? opts = null)
    public static Output<GetEventOrchestrationResult> Invoke(GetEventOrchestrationInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetEventOrchestrationResult> getEventOrchestration(GetEventOrchestrationArgs args, InvokeOptions options)
public static Output<GetEventOrchestrationResult> getEventOrchestration(GetEventOrchestrationArgs args, InvokeOptions options)
fn::invoke:
  function: pagerduty:index/getEventOrchestration:getEventOrchestration
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Name string
 - The name of the Global Event Orchestration to find in the PagerDuty API.
 - Integration
Detail List<GetEvent Orchestration Integration Detail>  - A list of integrations for the Event Orchestration.
 
- Name string
 - The name of the Global Event Orchestration to find in the PagerDuty API.
 - Integration
Detail []GetEvent Orchestration Integration Detail  - A list of integrations for the Event Orchestration.
 
- name String
 - The name of the Global Event Orchestration to find in the PagerDuty API.
 - integration
Detail List<GetEvent Orchestration Integration Detail>  - A list of integrations for the Event Orchestration.
 
- name string
 - The name of the Global Event Orchestration to find in the PagerDuty API.
 - integration
Detail GetEvent Orchestration Integration Detail[]  - A list of integrations for the Event Orchestration.
 
- name str
 - The name of the Global Event Orchestration to find in the PagerDuty API.
 - integration_
detail Sequence[GetEvent Orchestration Integration Detail]  - A list of integrations for the Event Orchestration.
 
- name String
 - The name of the Global Event Orchestration to find in the PagerDuty API.
 - integration
Detail List<Property Map> - A list of integrations for the Event Orchestration.
 
getEventOrchestration Result
The following output properties are available:
- Id string
 - The provider-assigned unique ID for this managed resource.
 - Integration
Detail List<GetEvent Orchestration Integration Detail>  - A list of integrations for the Event Orchestration.
 - Name string
 - The name of the found Event Orchestration.
 
- Id string
 - The provider-assigned unique ID for this managed resource.
 - Integration
Detail []GetEvent Orchestration Integration Detail  - A list of integrations for the Event Orchestration.
 - Name string
 - The name of the found Event Orchestration.
 
- id String
 - The provider-assigned unique ID for this managed resource.
 - integration
Detail List<GetEvent Orchestration Integration Detail>  - A list of integrations for the Event Orchestration.
 - name String
 - The name of the found Event Orchestration.
 
- id string
 - The provider-assigned unique ID for this managed resource.
 - integration
Detail GetEvent Orchestration Integration Detail[]  - A list of integrations for the Event Orchestration.
 - name string
 - The name of the found Event Orchestration.
 
- id str
 - The provider-assigned unique ID for this managed resource.
 - integration_
detail Sequence[GetEvent Orchestration Integration Detail]  - A list of integrations for the Event Orchestration.
 - name str
 - The name of the found Event Orchestration.
 
- id String
 - The provider-assigned unique ID for this managed resource.
 - integration
Detail List<Property Map> - A list of integrations for the Event Orchestration.
 - name String
 - The name of the found Event Orchestration.
 
Supporting Types
GetEventOrchestrationIntegrationDetail    
- Id string
 - ID of the integration
 - Label string
 - Parameters
List<Get
Event Orchestration Integration Detail Parameter>  - A single-item list containing a parameter object describing the integration
 
- Id string
 - ID of the integration
 - Label string
 - Parameters
[]Get
Event Orchestration Integration Detail Parameter  - A single-item list containing a parameter object describing the integration
 
- id String
 - ID of the integration
 - label String
 - parameters
List<Get
Event Orchestration Integration Detail Parameter>  - A single-item list containing a parameter object describing the integration
 
- id string
 - ID of the integration
 - label string
 - parameters
Get
Event Orchestration Integration Detail Parameter[]  - A single-item list containing a parameter object describing the integration
 
- id str
 - ID of the integration
 - label str
 - parameters
Sequence[Get
Event Orchestration Integration Detail Parameter]  - A single-item list containing a parameter object describing the integration
 
- id String
 - ID of the integration
 - label String
 - parameters List<Property Map>
 - A single-item list containing a parameter object describing the integration
 
GetEventOrchestrationIntegrationDetailParameter     
- Routing
Key string - Routing key that routes to this Orchestration.
 - Type string
 - Type of the routing key. 
globalis the default type. 
- Routing
Key string - Routing key that routes to this Orchestration.
 - Type string
 - Type of the routing key. 
globalis the default type. 
- routing
Key String - Routing key that routes to this Orchestration.
 - type String
 - Type of the routing key. 
globalis the default type. 
- routing
Key string - Routing key that routes to this Orchestration.
 - type string
 - Type of the routing key. 
globalis the default type. 
- routing_
key str - Routing key that routes to this Orchestration.
 - type str
 - Type of the routing key. 
globalis the default type. 
- routing
Key String - Routing key that routes to this Orchestration.
 - type String
 - Type of the routing key. 
globalis the default type. 
Package Details
- Repository
 - PagerDuty pulumi/pulumi-pagerduty
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
pagerdutyTerraform Provider.