SHOW REPLICATION GROUPS¶
Lists each primary or secondary replication or failover group in this account.
Lists primary replication and failover groups in other accounts enabled for replication to this account.
Lists secondary replication and failover groups in other accounts linked to groups in this account.
Syntax¶
SHOW REPLICATION GROUPS [ IN ACCOUNT <account> ]
Parameters¶
account
Specifies the identifier for the account.
Output¶
The command returns the following columns:
Column |
Description |
---|---|
|
Region group where the account is located. Note: this column is only visible to organizations that span multiple Region groups. |
|
Snowflake Region where the account is located. A Snowflake Region is a distinct location within a cloud platform region that is isolated from other Snowflake Regions. A Snowflake Region can be either multi-tenant or single-tenant (for a Virtual Private Snowflake account). |
|
Date and time replication or failover group was created. |
|
Name of the account. |
|
Name of the replication or failover group. |
|
Type of group. Valid values are |
|
Comment string. |
|
Indicates whether the replication or failover group is the primary group. |
|
Name of the primary group. |
|
List of specified object types enabled for replication (and failover in the case of a |
|
A list of integration types that are enabled for replication. Snowflake always includes this column in the output even if integrations were not specified in the CREATE <object> or ALTER <object> command. |
|
List of accounts enabled for replication and failover. |
|
Name of your Snowflake organization. |
|
Account locator in a region. |
|
Scheduled interval for refresh; NULL if no replication schedule is set. |
|
Current state of scheduled refresh. Valid values are |
|
Date and time of the next scheduled refresh. |
|
Name of the role with the OWNERSHIP privilege on the replication or failover group. NULL if the replication or failover group is in a different region. |
|
TRUE if the replication group is used for Cross-Cloud Auto-Fulfillment. FALSE otherwise. |
Usage notes¶
Executing this command requires a role with any one of the following privileges on a replication group:
MONITOR
OWNERSHIP
REPLICATE
The output of SHOW REPLICATION GROUPS includes groups of types
FAILOVER
andREPLICATION
.
The command doesn’t require a running warehouse to execute.
The command only returns objects for which the current user’s current role has been granted at least one access privilege.
The MANAGE GRANTS access privilege implicitly allows its holder to see every object in the account. By default, only the account administrator (users with the ACCOUNTADMIN role) and security administrator (users with the SECURITYADMIN role) have the MANAGE GRANTS privilege.
To post-process the output of this command, you can use the RESULT_SCAN function, which treats the output as a table that can be queried.
Examples¶
List replication groups in myaccount1
:
SHOW REPLICATION GROUPS IN ACCOUNT myaccount1;
+------------------+-------------------------------+--------------+------+----------+---------+------------+-----------------------+---------------------------------------------+---------------------------+----------------------------------------------+-------------------+-------------------+----------------------+-----------------+-------------------------------+---------+-----------------------------------+
| snowflake_region | created_on | account_name | name | type | comment | is_primary | primary | object_types | allowed_integration_types | allowed_accounts | organization_name | account_locator | replication_schedule | secondary_state | next_scheduled_refresh | owner | is_listing_auto_fulfillment_group |
+------------------+-------------------------------+--------------+------+----------+---------+------------+-----------------------+---------------------------------------------+---------------------------+----------------------------------------------+-------------------+-------------------+----------------------+-----------------+-------------------------------+---------+-----------------------------------+
| AWS_US_EAST_1 | 2021-10-25 19:08:15.209 -0700 | MYACCOUNT1 | MYFG | FAILOVER | | true | MYORG.MYACCOUNT1.MYFG | DATABASES, ROLES, USERS, WAREHOUSES, SHARES | | MYORG.MYACCOUNT1.MYFG,MYORG.MYACCOUNT2.MYFG | MYORG | MYACCOUNT1LOCATOR | 10 MINUTE | | | MYROLE | false |
+------------------+-------------------------------+--------------+------+----------+---------+------------+-----------------------+---------------------------------------------+---------------------------+----------------------------------------------+-------------------+-------------------+----------------------+-----------------+-------------------------------+---------+-----------------------------------+
| AWS_US_WEST_2 | 2021-10-25 19:08:15.209 -0700 | MYACCOUNT2 | MYFG | FAILOVER | | false | MYORG.MYACCOUNT1.MYFG | | | | MYORG | MYACCOUNT2LOCATOR | 10 MINUTE | STARTED | 2022-03-06 12:10:35.280 -0800 | NULL | false |
+------------------+-------------------------------+--------------+------+----------+---------+------------+-----------------------+---------------------------------------------+---------------------------+----------------------------------------------+-------------------+-------------------+----------------------+-----------------+-------------------------------+---------+-----------------------------------+