Partager via


SqlFailoverGroupOperations Interface

Implements

public interface SqlFailoverGroupOperations
extends SupportsCreating<WithSqlServer>, SqlChildrenOperations<SqlFailoverGroup>

A representation of the Azure SQL Failover Group operations.

Method Summary

Modifier and Type Method and Description
abstract SqlFailoverGroup failover(String resourceGroupName, String serverName, String failoverGroupName)

Fails over from the current primary server to this server.

abstract Mono<SqlFailoverGroup> failoverAsync(String resourceGroupName, String serverName, String failoverGroupName)

Asynchronously fails over from the current primary server to this server.

abstract SqlFailoverGroup forceFailoverAllowDataLoss(String resourceGroupName, String serverName, String failoverGroupName)

Fails over from the current primary server to this server.

abstract Mono<SqlFailoverGroup> forceFailoverAllowDataLossAsync(String resourceGroupName, String serverName, String failoverGroupName)

Fails over from the current primary server to this server.

Method Details

failover

public abstract SqlFailoverGroup failover(String resourceGroupName, String serverName, String failoverGroupName)

Fails over from the current primary server to this server.

Parameters:

resourceGroupName - the name of the resource group that contains the resource
serverName - the name of the server containing the failover group
failoverGroupName - the name of the failover group

Returns:

the SqlFailoverGroup object

failoverAsync

public abstract Mono failoverAsync(String resourceGroupName, String serverName, String failoverGroupName)

Asynchronously fails over from the current primary server to this server.

Parameters:

resourceGroupName - the name of the resource group that contains the resource
serverName - the name of the server containing the failover group
failoverGroupName - the name of the failover group

Returns:

a representation of the deferred computation of this call returning the SqlFailoverGroup object

forceFailoverAllowDataLoss

public abstract SqlFailoverGroup forceFailoverAllowDataLoss(String resourceGroupName, String serverName, String failoverGroupName)

Fails over from the current primary server to this server. This operation might result in data loss.

Parameters:

resourceGroupName - the name of the resource group that contains the resource
serverName - the name of the server containing the failover group
failoverGroupName - the name of the failover group

Returns:

the SqlFailoverGroup object

forceFailoverAllowDataLossAsync

public abstract Mono forceFailoverAllowDataLossAsync(String resourceGroupName, String serverName, String failoverGroupName)

Fails over from the current primary server to this server. This operation might result in data loss.

Parameters:

resourceGroupName - the name of the resource group that contains the resource
serverName - the name of the server containing the failover group
failoverGroupName - the name of the failover group

Returns:

a representation of the deferred computation of this call returning the SqlFailoverGroup object

Applies to