Failover Group
A failover group manages Databricks Managed Disaster Recovery for a pair of workspaces in two regions. It continuously replicates the selected Unity Catalog catalogs and workspace assets from the primary region to the secondary region and lets you fail over to the secondary region; at least one of the two replication types must be enabled. See https://docs.databricks.com/aws/en/admin/managed-disaster-recovery for the product documentation.
FailoverGroup object
A failover group manages Databricks Managed Disaster Recovery for a pair of workspaces in two regions. It continuously replicates the selected Unity Catalog catalogs and workspace assets from the primary region to the secondary region and lets you fail over to the secondary region; at least one of the two replication types must be enabled. See https://docs.databricks.com/aws/en/admin/managed-disaster-recovery for the product documentation.
- namestringIDImmutable
Fully qualified resource name in the format accounts/{account_id}/failover-groups/{failover_group_id}.
- effective_primary_regionstringOutput only
Current effective primary region. Replication flows FROM workspaces in this region. Changes after a successful failover.
- regionsarray of stringImmutable
The two cloud regions that participate in this failover group, the primary and the secondary. Each workspace set contains one workspace in each region.
- workspace_setsarray of object
Workspace sets, each containing workspaces that replicate to each other. A failover group currently supports exactly one workspace set.
Show child attributesHide child attributes
- namestring
Identifier of the workspace set, unique within the failover group and referenced by unity_catalog_assets.data_replication_workspace_set. Cannot be changed after creation.
- workspace_idsarray of string
IDs of the two workspaces in this set, one in each of the failover group's regions. The system derives and validates each workspace's region. Both workspaces must belong to the account and have the Mission Critical add-on enabled, and they cannot be changed after creation.
- replicate_workspace_assetsboolean
Whether to replicate workspace assets (notebooks, jobs, clusters, SQL warehouses and so on) and their ACLs for this set. Defaults to false. Can be turned on or off with UpdateFailoverGroup.
- stable_url_namesarray of string
Resource names of stable URLs associated with this workspace set. Format: accounts/{account_id}/stable-urls/{stable_url_id}. The referenced stable URLs must already exist (via CreateStableUrl), and the list can only be set when replicate_workspace_assets is true. While workspace asset replication stays enabled, an update can attach or detach one stable URL at a time.
- unity_catalog_assetsobject
Unity Catalog replication configuration: the catalogs to replicate and the storage location mappings for their data. Omit it to replicate workspace assets only.
Show child attributesHide child attributes
- location_mappingsarray of object
Storage location mappings. Each mapping pairs a storage path used by the replicated catalogs in one region with the corresponding path in the other region, so that replicated data is written to the matching storage in the secondary region.
Show child attributesHide child attributes
- namestring
Identifier of this location mapping, unique within the failover group.
- uri_by_regionarray of object
The storage URI of this location in each region, with exactly one entry per region of the failover group.
Show child attributesHide child attributes
- regionstring
Cloud region this URI applies to. Must be one of the failover group's regions.
- uristring
Cloud storage URI of the location in this region. End the URI with
/*to map every path under it as a prefix; within one mapping, either all URIs or none carry the/*suffix.
- catalogsarray of object
Unity Catalog catalogs to replicate, including their metadata and managed table data. Adding a catalog to an existing failover group returns the group to INITIAL_REPLICATION until the catalog has been replicated.
Show child attributesHide child attributes
- namestring
Name of the Unity Catalog catalog to replicate.
- data_replication_workspace_setstring
Name of the workspace set whose workspaces run the data replication for the catalogs' underlying storage. Must match the name of a workspace set in this failover group.
- statestringOutput only
Aggregate state of the failover group across Unity Catalog and workspace asset replication. The group is INITIAL_REPLICATION until it has a replication point, ACTIVE while replication is in steady state and failover is available, and FAILING_OVER while a failover is in progress; the
*_FAILEDvalues mean that the last operation did not complete. Not populated in ListFailoverGroups responses.CREATINGCREATION_FAILEDINITIAL_REPLICATIONACTIVEFAILING_OVERDELETINGFAILOVER_FAILEDDELETION_FAILED
- etagstringOutput only
Opaque version string for optimistic locking. Server-generated and returned in responses.
- create_timestringOutput only
Time at which this failover group was created.
- update_timestringOutput only
Time at which this failover group was last modified.
- replication_pointstringOutput only
The most recent point in time up to which all in-scope assets have been replicated to the secondary region. Data written after this point might not exist in the secondary yet and can be lost in an unplanned failover. When both Unity Catalog and workspace assets are replicated, this is the older of the two replication points. Not populated until the first replication point exists, and not populated in ListFailoverGroups responses.
- initial_primary_regionstringInput onlyImmutable
Initial primary region. Used only in Create requests to set the starting primary region, and must be one of the regions in
regions. Not returned in responses.
- initial_replication_progressobjectBetaOutput only
Initial replication progress of all in-scope assets. Set only when the FailoverGroup is in INITIAL_REPLICATION state.
Show child attributesHide child attributes
- completedint32BetaOutput only
Percentage of in-scope assets replicated so far, from 0 to 100. Stays below 100 while errors block the first replication point.
- has_replication_point_blocking_errorsbooleanBetaOutput only
True when replication errors are preventing the replication point from advancing. Populated only while the failover group is INITIAL_REPLICATION or ACTIVE; the blocking errors are listed in the system.replication.states system table.
Get a Failover Group GA
GET
Get a failover group, including its current state and replication point.
API scopes: disaster-recovery
Parameters
- namestringRequiredIDImmutablepath
The fully qualified resource name of the failover group. Format: accounts/{account_id}/failover-groups/{failover_group_id}.
Response
Returns the FailoverGroup object.
List Failover Groups GA
GET
List the failover groups in an account.
List entries are abbreviated: state, replication_point and
unity_catalog_assets.location_mappings are not populated. Call GetFailoverGroup to
retrieve the full resource.
API scopes: disaster-recovery
Parameters
- parentstringRequiredpath
The parent resource. Format: accounts/{account_id}.
- page_sizeint32query
Maximum number of failover groups to return per page:
- when set to a value greater than 0, the page length is the minimum of this value and a server configured value;
- when set to 0 or unset, the page length is set to a server configured value (recommended);
- when set to a value less than 0, an invalid parameter error is returned.
- page_tokenstringquery
Page token received from a previous ListFailoverGroups call. Provide this to retrieve the subsequent page.
Response
Returns a list of FailoverGroup objects.
Create a Failover Group GA
POST
Create a failover group. The group starts in the CREATING state and moves to INITIAL_REPLICATION while the first replication cycle copies all in-scope data to the secondary region; failover becomes available once the group is ACTIVE. Set validate_only to check the request without creating anything.
API scopes: disaster-recovery
Parameters
- parentstringRequiredpath
The parent resource. Format: accounts/{account_id}.
- validate_onlybooleanquery
When true, validates the request without creating the failover group.
- failover_group_idstringRequiredquery
Client-provided identifier for the failover group. Used to construct the resource name as {parent}/failover-groups/{failover_group_id}.
Request body
The failover group to create.
- namestringIDImmutable
Fully qualified resource name in the format accounts/{account_id}/failover-groups/{failover_group_id}.
- regionsarray of stringRequiredImmutable
The two cloud regions that participate in this failover group, the primary and the secondary. Each workspace set contains one workspace in each region.
- workspace_setsarray of objectRequired
Workspace sets, each containing workspaces that replicate to each other. A failover group currently supports exactly one workspace set.
Show child attributesHide child attributes
- namestringRequired
Identifier of the workspace set, unique within the failover group and referenced by unity_catalog_assets.data_replication_workspace_set. Cannot be changed after creation.
- workspace_idsarray of stringRequired
IDs of the two workspaces in this set, one in each of the failover group's regions. The system derives and validates each workspace's region. Both workspaces must belong to the account and have the Mission Critical add-on enabled, and they cannot be changed after creation.
- replicate_workspace_assetsboolean
Whether to replicate workspace assets (notebooks, jobs, clusters, SQL warehouses and so on) and their ACLs for this set. Defaults to false. Can be turned on or off with UpdateFailoverGroup.
- stable_url_namesarray of string
Resource names of stable URLs associated with this workspace set. Format: accounts/{account_id}/stable-urls/{stable_url_id}. The referenced stable URLs must already exist (via CreateStableUrl), and the list can only be set when replicate_workspace_assets is true. While workspace asset replication stays enabled, an update can attach or detach one stable URL at a time.
- unity_catalog_assetsobject
Unity Catalog replication configuration: the catalogs to replicate and the storage location mappings for their data. Omit it to replicate workspace assets only.
Show child attributesHide child attributes
- location_mappingsarray of object
Storage location mappings. Each mapping pairs a storage path used by the replicated catalogs in one region with the corresponding path in the other region, so that replicated data is written to the matching storage in the secondary region.
Show child attributesHide child attributes
- namestringRequired
Identifier of this location mapping, unique within the failover group.
- uri_by_regionarray of objectRequired
The storage URI of this location in each region, with exactly one entry per region of the failover group.
Show child attributesHide child attributes
- regionstringRequired
Cloud region this URI applies to. Must be one of the failover group's regions.
- uristringRequired
Cloud storage URI of the location in this region. End the URI with
/*to map every path under it as a prefix; within one mapping, either all URIs or none carry the/*suffix.
- catalogsarray of objectRequired
Unity Catalog catalogs to replicate, including their metadata and managed table data. Adding a catalog to an existing failover group returns the group to INITIAL_REPLICATION until the catalog has been replicated.
Show child attributesHide child attributes
- namestringRequired
Name of the Unity Catalog catalog to replicate.
- data_replication_workspace_setstringRequired
Name of the workspace set whose workspaces run the data replication for the catalogs' underlying storage. Must match the name of a workspace set in this failover group.
- initial_primary_regionstringRequiredInput onlyImmutable
Initial primary region. Used only in Create requests to set the starting primary region, and must be one of the regions in
regions. Not returned in responses.
Response
Returns the FailoverGroup object.
Update a Failover Group GA
PATCH
Update a failover group. Only the fields named in update_mask change. You can turn workspace asset replication on or off, attach or detach a stable URL, and change the Unity Catalog catalogs and location mappings; the regions, the workspace set name and the workspace IDs cannot be changed. Updates are rejected while a create, failover or delete is in progress, and after a create or delete has failed.
API scopes: disaster-recovery
Parameters
- namestringRequiredIDImmutablepath
Fully qualified resource name in the format accounts/{account_id}/failover-groups/{failover_group_id}.
- update_maskstringRequiredquery
Comma-separated list of the fields to update. The supported paths are
workspace_sets,unity_catalog_assets,unity_catalog_assets.catalogsandunity_catalog_assets.location_mappings; any other path is rejected.
- etagstringquery
Optional opaque version string for optimistic locking, obtained from a prior read of the failover group. If provided, the update is rejected unless it matches the failover group's current etag. If omitted, the update proceeds without an optimistic-lock check.
Request body
The failover group with updated fields. The name field identifies the resource and is populated from the URL path.
- regionsarray of stringRequiredImmutable
The two cloud regions that participate in this failover group, the primary and the secondary. Each workspace set contains one workspace in each region.
- workspace_setsarray of objectRequired
Workspace sets, each containing workspaces that replicate to each other. A failover group currently supports exactly one workspace set.
Show child attributesHide child attributes
- namestringRequired
Identifier of the workspace set, unique within the failover group and referenced by unity_catalog_assets.data_replication_workspace_set. Cannot be changed after creation.
- workspace_idsarray of stringRequired
IDs of the two workspaces in this set, one in each of the failover group's regions. The system derives and validates each workspace's region. Both workspaces must belong to the account and have the Mission Critical add-on enabled, and they cannot be changed after creation.
- replicate_workspace_assetsboolean
Whether to replicate workspace assets (notebooks, jobs, clusters, SQL warehouses and so on) and their ACLs for this set. Defaults to false. Can be turned on or off with UpdateFailoverGroup.
- stable_url_namesarray of string
Resource names of stable URLs associated with this workspace set. Format: accounts/{account_id}/stable-urls/{stable_url_id}. The referenced stable URLs must already exist (via CreateStableUrl), and the list can only be set when replicate_workspace_assets is true. While workspace asset replication stays enabled, an update can attach or detach one stable URL at a time.
- unity_catalog_assetsobject
Unity Catalog replication configuration: the catalogs to replicate and the storage location mappings for their data. Omit it to replicate workspace assets only.
Show child attributesHide child attributes
- location_mappingsarray of object
Storage location mappings. Each mapping pairs a storage path used by the replicated catalogs in one region with the corresponding path in the other region, so that replicated data is written to the matching storage in the secondary region.
Show child attributesHide child attributes
- namestringRequired
Identifier of this location mapping, unique within the failover group.
- uri_by_regionarray of objectRequired
The storage URI of this location in each region, with exactly one entry per region of the failover group.
Show child attributesHide child attributes
- regionstringRequired
Cloud region this URI applies to. Must be one of the failover group's regions.
- uristringRequired
Cloud storage URI of the location in this region. End the URI with
/*to map every path under it as a prefix; within one mapping, either all URIs or none carry the/*suffix.
- catalogsarray of objectRequired
Unity Catalog catalogs to replicate, including their metadata and managed table data. Adding a catalog to an existing failover group returns the group to INITIAL_REPLICATION until the catalog has been replicated.
Show child attributesHide child attributes
- namestringRequired
Name of the Unity Catalog catalog to replicate.
- data_replication_workspace_setstringRequired
Name of the workspace set whose workspaces run the data replication for the catalogs' underlying storage. Must match the name of a workspace set in this failover group.
- initial_primary_regionstringRequiredInput onlyImmutable
Initial primary region. Used only in Create requests to set the starting primary region, and must be one of the regions in
regions. Not returned in responses.
Response
Returns the FailoverGroup object.
Delete a Failover Group GA
DELETE
Delete a failover group. Deleting stops replication for the group; stable URLs linked to it are detached but not deleted.
API scopes: disaster-recovery
Parameters
- namestringRequiredIDImmutablepath
The fully qualified resource name of the failover group to delete. Format: accounts/{account_id}/failover-groups/{failover_group_id}.
- etagstringquery
Opaque version string for optimistic locking. If provided, must match the current etag. If omitted, the delete proceeds without an etag check.
Failover a Failover Group to a new primary region GA
POST
Initiate a failover that makes target_primary_region the primary region. Stable URLs linked to the group are pointed at the new primary workspace, replication is reversed so that the former primary becomes the secondary, and the group moves through FAILING_OVER to INITIAL_REPLICATION until it has a replication point in the new direction. The group must be ACTIVE; repeating the request while it is FAILING_OVER is accepted. To fail back, repeat the request with the former primary region as the target once the group is ACTIVE again. In an unplanned failover, data written after the replication point can be lost.
API scopes: disaster-recovery
Parameters
- namestringRequiredIDImmutablepath
The fully qualified resource name of the failover group to failover. Format: accounts/{account_id}/failover-groups/{failover_group_id}.
Request body
- target_primary_regionstringRequired
The target primary region. Must be one of the participating regions and different from the current effective_primary_region. Serves as an idempotency check.
- etagstring
Opaque version string for optimistic locking. If provided, must match the current etag. If omitted, the failover proceeds regardless of current state.
- failover_typestringRequired
The type of failover to perform. FORCED is the only supported type.
FORCED
Response
Returns the FailoverGroup object.