1. Packages
  2. PagerDuty
  3. API Docs
  4. getEventOrchestrations
PagerDuty v4.12.3 published on Tuesday, May 21, 2024 by Pulumi

pagerduty.getEventOrchestrations

Explore with Pulumi AI

pagerduty logo
PagerDuty v4.12.3 published on Tuesday, May 21, 2024 by Pulumi

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

    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 A Orchestration"});
    const tfOrchB = new pagerduty.EventOrchestration("tf_orch_b", {name: "Test Event B Orchestration"});
    const tfMyMonitor = pagerduty.getEventOrchestrations({
        nameFilter: ".*Orchestration$",
    });
    
    import pulumi
    import pulumi_pagerduty as pagerduty
    
    tf_orch_a = pagerduty.EventOrchestration("tf_orch_a", name="Test Event A Orchestration")
    tf_orch_b = pagerduty.EventOrchestration("tf_orch_b", name="Test Event B Orchestration")
    tf_my_monitor = pagerduty.get_event_orchestrations(name_filter=".*Orchestration$")
    
    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 {
    		_, err := pagerduty.NewEventOrchestration(ctx, "tf_orch_a", &pagerduty.EventOrchestrationArgs{
    			Name: pulumi.String("Test Event A Orchestration"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = pagerduty.NewEventOrchestration(ctx, "tf_orch_b", &pagerduty.EventOrchestrationArgs{
    			Name: pulumi.String("Test Event B Orchestration"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = pagerduty.GetEventOrchestrations(ctx, &pagerduty.GetEventOrchestrationsArgs{
    			NameFilter: ".*Orchestration$",
    		}, nil)
    		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 A Orchestration",
        });
    
        var tfOrchB = new Pagerduty.EventOrchestration("tf_orch_b", new()
        {
            Name = "Test Event B Orchestration",
        });
    
        var tfMyMonitor = Pagerduty.GetEventOrchestrations.Invoke(new()
        {
            NameFilter = ".*Orchestration$",
        });
    
    });
    
    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.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", EventOrchestrationArgs.builder()        
                .name("Test Event A Orchestration")
                .build());
    
            var tfOrchB = new EventOrchestration("tfOrchB", EventOrchestrationArgs.builder()        
                .name("Test Event B Orchestration")
                .build());
    
            final var tfMyMonitor = PagerdutyFunctions.getEventOrchestrations(GetEventOrchestrationsArgs.builder()
                .nameFilter(".*Orchestration$")
                .build());
    
        }
    }
    
    resources:
      tfOrchA:
        type: pagerduty:EventOrchestration
        name: tf_orch_a
        properties:
          name: Test Event A Orchestration
      tfOrchB:
        type: pagerduty:EventOrchestration
        name: tf_orch_b
        properties:
          name: Test Event B Orchestration
    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
    label String
    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.
    pagerduty logo
    PagerDuty v4.12.3 published on Tuesday, May 21, 2024 by Pulumi