ALTER EVENT ROUTING TABLE
statementpartialAccounts, users, sessions, warehousesAlters an event routing table used to route events to a centralized location. You can make the following changes to an event routing table: - Specify a new set of rules using SET RULES - Create a new rule or replace a single rule using SET RULE - Delete a rule using UNSET RULE - Rename a rule using MODIFY RULE ... RENAME - Rename the event routing table For information about event routing tables, see Configure centralized event sharing for an app.
Syntax
supportedpartialnot supportednot scored
ALTER EVENT ROUTING TABLE <table_name> [ FORCE ]
SET RULES
<rule_name> = (REGION_GROUP=<region_group>, REGIONS=('<region1>', '<region2>', ...), DESTINATION_ACCOUNT = <organization>.<account_name>),
...
ALTER EVENT ROUTING TABLE <table_name> [ FORCE ]
SET RULE
<rule_name> REGION_GROUP=<region_group> REGIONS=('<region1>', '<region2>', ...) DESTINATION_ACCOUNT = <organization>.<account_name>
ALTER EVENT ROUTING TABLE <table_name> [ FORCE ]
UNSET RULE <rule_name>
ALTER EVENT ROUTING TABLE <table_name>
MODIFY RULE <rule_name> RENAME TO <new_rule_name>
ALTER EVENT ROUTING TABLE <table_name>
RENAME TO <new_table_name>
Parameters
| Name | Required | Description |
|---|---|---|
table_name | Specifies the identifier (name) for the event routing table to alter. If the identifier contains spaces or special characters, enclose the entire string in double quotes. Identifiers enclosed in double quotes are also case-sensitive. | |
FORCE | Specifies that the operation should be performed even if the event routing table is currently activated for an organization. If you omit FORCE and the table is currently activated, the command fails. FORCE is not required for renaming commands. | |
SET RULES | Replaces all existing rules with a new set of rules. Each rule has the following parameters: | |
rule_name (required) | Specifies the name of the rule. The rule name must be unique within the event routing table. If REGIONS is set to ALL, the name must be default. Default rules can’t be enclosed in double quotes. Other rule names can be enclosed in double quotes to preserve letter case. | |
REGIONS = ('region1', 'region2', ...) (required) | Specifies the regions from which events are routed. You can specify individual regions or use ALL to specify all regions. For information about available regions, see Region IDs. | |
DESTINATION_ACCOUNT = organization.account_name (required) | Specifies the destination account to route events to. Organization is not required. The account must be in the organization. | |
REGION_GROUP = region_group (optional) | Specifies the region group. The only supported value is PUBLIC. | |
SET RULE | Creates or replaces a single rule. Accepts the same parameters as SET RULES. | |
UNSET RULE <rule_name> | Deletes a rule from the event routing table. | |
rule_name (required) | Specifies the name of the rule to delete. If only one rule remains in the event routing table, it can’t be unset. | |
MODIFY RULE rule_name RENAME TO new_rule_name | Renames a rule.
| |
RENAME TO new_table_name | Renames the event routing table.
|
Usage notes
- Use FORCE to modify an event routing table that is currently activated for an organization. Tables are activated by the command ALTER ORGANIZATION SET EVENT ROUTING TABLE FOR ALL APPLICATION LISTINGS. If you omit FORCE and the table is activated, the command fails. FORCE is not required for renaming commands.
- SET RULES replaces all existing rules. To add or update a single rule without affecting others, use SET RULE instead.
- If only one rule remains in the event routing table, you can’t use UNSET RULE to remove it.
Access control requirements
Role | Notes ORGADMIN | Required to run this command. If the organization account has the GLOBALORGADMIN role enabled, only GLOBALORGADMIN can run this command. For instructions on creating a custom role with a specified set of privileges, see Creating custom roles. For general information about roles and privilege grants for performing SQL actions on securable objects, see Overview of Access Control.
Known gaps
- FORCE, REGION_GROUP, REGIONS, DESTINATION_ACCOUNT are not exercised by any test