Skip to main content

router

Creates, updates, deletes, gets or lists a router resource.

Overview

Namerouter
TypeResource
Idpagerduty.event_orchestrations.router

Fields

The following fields are returned by SELECT queries:

The Orchestration Router object.

NameDatatypeDescription
catch_allWhen none of the rules match an event, the event will be routed according to the catch_all settings.
parent
setsThe Router contains a single set of rules (the "start" set). The Router evaluates Events against these Rules, one at a time, and routes each Event to a specific Service based on the first rule that matches.
typeIndicates that these are a "router" type set of rules. (default: router)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_orch_path_routerselectidAccept, Content-TypeGet a Global Orchestration's Routing Rules.

An Orchestration Router allows you to create a set of Event Rules. The Router evaluates Events you send to this Global Orchestration against each of its rules, one at a time, and routes the event to a specific Service based on the first rule that matches. If an event doesn't match any rules, it'll be sent to service specified in as the catch_all or the "Unrouted" Orchestration if no service is specified.

For more information see the API Concepts Document

Scoped OAuth requires: event_orchestrations.read
_get_orch_path_routerexecidAccept, Content-TypeGet a Global Orchestration's Routing Rules.

An Orchestration Router allows you to create a set of Event Rules. The Router evaluates Events you send to this Global Orchestration against each of its rules, one at a time, and routes the event to a specific Service based on the first rule that matches. If an event doesn't match any rules, it'll be sent to service specified in as the catch_all or the "Unrouted" Orchestration if no service is specified.

For more information see the API Concepts Document

Scoped OAuth requires: event_orchestrations.read
update_orch_path_routerexecid, orchestration_pathAccept, Content-TypeUpdate a Global Orchestration's Routing Rules.

An Orchestration Router allows you to create a set of Event Rules. The Router evaluates Events you send to this Global Orchestration against each of its rules, one at a time, and routes the event to a specific Service based on the first rule that matches. If an event doesn't match any rules, it'll be sent to service specified in as the catch_all or the "Unrouted" Orchestration if no service is specified.

For more information see the API Concepts Document

Scoped OAuth requires: event_orchestrations.write

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
idstringThe ID of an Event Orchestration.
AcceptstringThe Accept header is used as a versioning header.
Content-Typestring

SELECT examples

Get a Global Orchestration's Routing Rules.

An Orchestration Router allows you to create a set of Event Rules. The Router evaluates Events you send to this Global Orchestration against each of its rules, one at a time, and routes the event to a specific Service based on the first rule that matches. If an event doesn't match any rules, it'll be sent to service specified in as the catch_all or the "Unrouted" Orchestration if no service is specified.

For more information see the API Concepts Document

Scoped OAuth requires: event_orchestrations.read

SELECT
catch_all,
parent,
sets,
type
FROM pagerduty.event_orchestrations.router
WHERE id = '{{ id }}' -- required
AND Accept = '{{ Accept }}'
AND Content-Type = '{{ Content-Type }}'
;

Lifecycle Methods

Get a Global Orchestration's Routing Rules.

An Orchestration Router allows you to create a set of Event Rules. The Router evaluates Events you send to this Global Orchestration against each of its rules, one at a time, and routes the event to a specific Service based on the first rule that matches. If an event doesn't match any rules, it'll be sent to service specified in as the catch_all or the "Unrouted" Orchestration if no service is specified.

For more information see the API Concepts Document

Scoped OAuth requires: event_orchestrations.read

EXEC pagerduty.event_orchestrations.router._get_orch_path_router 
@id='{{ id }}' --required,
@Accept='{{ Accept }}',
@Content-Type='{{ Content-Type }}'
;