PagerDuty v4.17.0 published on Wednesday, Nov 20, 2024 by Pulumi
pagerduty.getEventOrchestrations
Explore with Pulumi AI
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:
- Name
Filter string - The regex name of Global Event orchestrations to find in the PagerDuty API.
- Name
Filter string - The regex name of Global Event orchestrations to find in the PagerDuty API.
- name
Filter String - The regex name of Global Event orchestrations to find in the PagerDuty API.
- name
Filter 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.
- name
Filter String - The regex name of Global Event orchestrations to find in the PagerDuty API.
getEventOrchestrations Result
The following output properties are available:
- Event
Orchestrations List<GetEvent Orchestrations Event Orchestration> - Id string
- The provider-assigned unique ID for this managed resource.
- Name
Filter string - The list of the Event Orchestrations which name match
name_filter
argument.
- Event
Orchestrations []GetEvent Orchestrations Event Orchestration - Id string
- The provider-assigned unique ID for this managed resource.
- Name
Filter string - The list of the Event Orchestrations which name match
name_filter
argument.
- event
Orchestrations List<GetEvent Orchestrations Event Orchestration> - id String
- The provider-assigned unique ID for this managed resource.
- name
Filter String - The list of the Event Orchestrations which name match
name_filter
argument.
- event
Orchestrations GetEvent Orchestrations Event Orchestration[] - id string
- The provider-assigned unique ID for this managed resource.
- name
Filter string - The list of the Event Orchestrations which name match
name_filter
argument.
- event_
orchestrations Sequence[GetEvent Orchestrations Event Orchestration] - 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.
- event
Orchestrations List<Property Map> - id String
- The provider-assigned unique ID for this managed resource.
- name
Filter String - The list of the Event Orchestrations which name match
name_filter
argument.
Supporting Types
GetEventOrchestrationsEventOrchestration
- Id string
- ID of the integration
- Integrations
List<Get
Event Orchestrations Event Orchestration Integration> - An integration for the Event Orchestration.
- Name string
- The name of the found Event Orchestration.
- Id string
- ID of the integration
- Integrations
[]Get
Event Orchestrations Event Orchestration Integration - An integration for the Event Orchestration.
- Name string
- The name of the found Event Orchestration.
- id String
- ID of the integration
- integrations
List<Get
Event Orchestrations Event Orchestration Integration> - An integration for the Event Orchestration.
- name String
- The name of the found Event Orchestration.
- id string
- ID of the integration
- integrations
Get
Event Orchestrations Event Orchestration Integration[] - An integration for the Event Orchestration.
- name string
- The name of the found Event Orchestration.
- id str
- ID of the integration
- integrations
Sequence[Get
Event Orchestrations Event Orchestration Integration] - 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<Get
Event Orchestrations Event Orchestration Integration Parameter>
- Id string
- ID of the integration
- Label string
- Parameters
[]Get
Event Orchestrations Event Orchestration Integration Parameter
- id String
- ID of the integration
- label String
- parameters
List<Get
Event Orchestrations Event Orchestration Integration Parameter>
- id string
- ID of the integration
- label string
- parameters
Get
Event Orchestrations Event Orchestration Integration Parameter[]
- id str
- ID of the integration
- label str
- parameters
Sequence[Get
Event Orchestrations Event Orchestration Integration Parameter]
- id String
- ID of the integration
- label String
- parameters List<Property Map>
GetEventOrchestrationsEventOrchestrationIntegrationParameter
- Routing
Key string - Routing key that routes to this Orchestration.
- Type string
- Type of the routing key.
global
is the default type.
- Routing
Key string - Routing key that routes to this Orchestration.
- Type string
- Type of the routing key.
global
is the default type.
- routing
Key String - Routing key that routes to this Orchestration.
- type String
- Type of the routing key.
global
is the default type.
- routing
Key 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.
- routing
Key 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.