pagerduty.getEventOrchestrations

Use this data source to get information as a list about specific Global Event Orchestrations filtered by a Regular Expression provided.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Pagerduty = Pulumi.Pagerduty;

return await Deployment.RunAsync(() => 
{
    var tfOrchA = new Pagerduty.EventOrchestration("tfOrchA");

    var tfOrchB = new Pagerduty.EventOrchestration("tfOrchB");

    var tfMyMonitor = Pagerduty.GetEventOrchestrations.Invoke(new()
    {
        NameFilter = ".*Orchestration$",
    });

});
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := pagerduty.NewEventOrchestration(ctx, "tfOrchA", nil)
		if err != nil {
			return err
		}
		_, err = pagerduty.NewEventOrchestration(ctx, "tfOrchB", nil)
		if err != nil {
			return err
		}
		_, err = pagerduty.GetEventOrchestrations(ctx, &pagerduty.GetEventOrchestrationsArgs{
			NameFilter: ".*Orchestration$",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
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.PagerdutyFunctions;
import com.pulumi.pagerduty.inputs.GetEventOrchestrationsArgs;
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");

        var tfOrchB = new EventOrchestration("tfOrchB");

        final var tfMyMonitor = PagerdutyFunctions.getEventOrchestrations(GetEventOrchestrationsArgs.builder()
            .nameFilter(".*Orchestration$")
            .build());

    }
}
import pulumi
import pulumi_pagerduty as pagerduty

tf_orch_a = pagerduty.EventOrchestration("tfOrchA")
tf_orch_b = pagerduty.EventOrchestration("tfOrchB")
tf_my_monitor = pagerduty.get_event_orchestrations(name_filter=".*Orchestration$")
import * as pulumi from "@pulumi/pulumi";
import * as pagerduty from "@pulumi/pagerduty";

const tfOrchA = new pagerduty.EventOrchestration("tfOrchA", {});
const tfOrchB = new pagerduty.EventOrchestration("tfOrchB", {});
const tfMyMonitor = pagerduty.getEventOrchestrations({
    nameFilter: ".*Orchestration$",
});
resources:
  tfOrchA:
    type: pagerduty:EventOrchestration
  tfOrchB:
    type: pagerduty:EventOrchestration
variables:
  tfMyMonitor:
    fn::invoke:
      Function: pagerduty:getEventOrchestrations
      Arguments:
        nameFilter: .*Orchestration$

Using getEventOrchestrations

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 getEventOrchestrations(args: GetEventOrchestrationsArgs, opts?: InvokeOptions): Promise<GetEventOrchestrationsResult>
function getEventOrchestrationsOutput(args: GetEventOrchestrationsOutputArgs, opts?: InvokeOptions): Output<GetEventOrchestrationsResult>
def get_event_orchestrations(name_filter: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetEventOrchestrationsResult
def get_event_orchestrations_output(name_filter: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetEventOrchestrationsResult]
func GetEventOrchestrations(ctx *Context, args *GetEventOrchestrationsArgs, opts ...InvokeOption) (*GetEventOrchestrationsResult, error)
func GetEventOrchestrationsOutput(ctx *Context, args *GetEventOrchestrationsOutputArgs, opts ...InvokeOption) GetEventOrchestrationsResultOutput

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

public static class GetEventOrchestrations 
{
    public static Task<GetEventOrchestrationsResult> InvokeAsync(GetEventOrchestrationsArgs args, InvokeOptions? opts = null)
    public static Output<GetEventOrchestrationsResult> Invoke(GetEventOrchestrationsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetEventOrchestrationsResult> getEventOrchestrations(GetEventOrchestrationsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: pagerduty:index/getEventOrchestrations:getEventOrchestrations
  arguments:
    # arguments dictionary

The following arguments are supported:

NameFilter string

The regex name of Global Event orchestrations to find in the PagerDuty API.

NameFilter string

The regex name of Global Event orchestrations to find in the PagerDuty API.

nameFilter String

The regex name of Global Event orchestrations to find in the PagerDuty API.

nameFilter string

The regex name of Global Event orchestrations to find in the PagerDuty API.

name_filter str

The regex name of Global Event orchestrations to find in the PagerDuty API.

nameFilter String

The regex name of Global Event orchestrations to find in the PagerDuty API.

getEventOrchestrations Result

The following output properties are available:

EventOrchestrations List<GetEventOrchestrationsEventOrchestration>
Id string

The provider-assigned unique ID for this managed resource.

NameFilter string

The list of the Event Orchestrations which name match name_filter argument.

EventOrchestrations []GetEventOrchestrationsEventOrchestration
Id string

The provider-assigned unique ID for this managed resource.

NameFilter string

The list of the Event Orchestrations which name match name_filter argument.

eventOrchestrations List<GetEventOrchestrationsEventOrchestration>
id String

The provider-assigned unique ID for this managed resource.

nameFilter String

The list of the Event Orchestrations which name match name_filter argument.

eventOrchestrations GetEventOrchestrationsEventOrchestration[]
id string

The provider-assigned unique ID for this managed resource.

nameFilter string

The list of the Event Orchestrations which name match name_filter argument.

event_orchestrations Sequence[GetEventOrchestrationsEventOrchestration]
id str

The provider-assigned unique ID for this managed resource.

name_filter str

The list of the Event Orchestrations which name match name_filter argument.

eventOrchestrations List<Property Map>
id String

The provider-assigned unique ID for this managed resource.

nameFilter String

The list of the Event Orchestrations which name match name_filter argument.

Supporting Types

GetEventOrchestrationsEventOrchestration

Id string

ID of the integration

Integrations List<GetEventOrchestrationsEventOrchestrationIntegration>

An integration for the Event Orchestration.

Name string

The name of the found Event Orchestration.

Id string

ID of the integration

Integrations []GetEventOrchestrationsEventOrchestrationIntegration

An integration for the Event Orchestration.

Name string

The name of the found Event Orchestration.

id String

ID of the integration

integrations List<GetEventOrchestrationsEventOrchestrationIntegration>

An integration for the Event Orchestration.

name String

The name of the found Event Orchestration.

id string

ID of the integration

integrations GetEventOrchestrationsEventOrchestrationIntegration[]

An integration for the Event Orchestration.

name string

The name of the found Event Orchestration.

id str

ID of the integration

integrations Sequence[GetEventOrchestrationsEventOrchestrationIntegration]

An integration for the Event Orchestration.

name str

The name of the found Event Orchestration.

id String

ID of the integration

integrations List<Property Map>

An integration for the Event Orchestration.

name String

The name of the found Event Orchestration.

GetEventOrchestrationsEventOrchestrationIntegration

id String

ID of the integration

parameters List<Property Map>

GetEventOrchestrationsEventOrchestrationIntegrationParameter

RoutingKey string

Routing key that routes to this Orchestration.

Type string

Type of the routing key. global is the default type.

RoutingKey string

Routing key that routes to this Orchestration.

Type string

Type of the routing key. global is the default type.

routingKey String

Routing key that routes to this Orchestration.

type String

Type of the routing key. global is the default type.

routingKey string

Routing key that routes to this Orchestration.

type string

Type of the routing key. global is the default type.

routing_key str

Routing key that routes to this Orchestration.

type str

Type of the routing key. global is the default type.

routingKey String

Routing key that routes to this Orchestration.

type String

Type of the routing key. global is the default type.

Package Details

Repository
PagerDuty pulumi/pulumi-pagerduty
License
Apache-2.0
Notes

This Pulumi package is based on the pagerduty Terraform Provider.