Interface FailoverGroupsClient


  • public interface FailoverGroupsClient
    An instance of this class provides access to all the operations defined in FailoverGroupsClient.
    • Method Detail

      • getWithResponseAsync

        Mono<com.azure.core.http.rest.Response<FailoverGroupInner>> getWithResponseAsync​(String resourceGroupName,
                                                                                         String serverName,
                                                                                         String failoverGroupName)
        Gets a failover group.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server containing the failover group.
        failoverGroupName - The name of the failover group.
        Returns:
        a failover group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getAsync

        Mono<FailoverGroupInner> getAsync​(String resourceGroupName,
                                          String serverName,
                                          String failoverGroupName)
        Gets a failover group.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server containing the failover group.
        failoverGroupName - The name of the failover group.
        Returns:
        a failover group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • get

        FailoverGroupInner get​(String resourceGroupName,
                               String serverName,
                               String failoverGroupName)
        Gets a failover group.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server containing the failover group.
        failoverGroupName - The name of the failover group.
        Returns:
        a failover group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getWithResponse

        com.azure.core.http.rest.Response<FailoverGroupInner> getWithResponse​(String resourceGroupName,
                                                                              String serverName,
                                                                              String failoverGroupName,
                                                                              com.azure.core.util.Context context)
        Gets a failover group.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server containing the failover group.
        failoverGroupName - The name of the failover group.
        context - The context to associate with this operation.
        Returns:
        a failover group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdateWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync​(String resourceGroupName,
                                                                                                  String serverName,
                                                                                                  String failoverGroupName,
                                                                                                  FailoverGroupInner parameters)
        Creates or updates a failover group.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server containing the failover group.
        failoverGroupName - The name of the failover group.
        parameters - A failover group.
        Returns:
        a failover group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginCreateOrUpdateAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<FailoverGroupInner>,​FailoverGroupInner> beginCreateOrUpdateAsync​(String resourceGroupName,
                                                                                                                                                                   String serverName,
                                                                                                                                                                   String failoverGroupName,
                                                                                                                                                                   FailoverGroupInner parameters)
        Creates or updates a failover group.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server containing the failover group.
        failoverGroupName - The name of the failover group.
        parameters - A failover group.
        Returns:
        a failover group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginCreateOrUpdate

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<FailoverGroupInner>,​FailoverGroupInner> beginCreateOrUpdate​(String resourceGroupName,
                                                                                                                                                              String serverName,
                                                                                                                                                              String failoverGroupName,
                                                                                                                                                              FailoverGroupInner parameters)
        Creates or updates a failover group.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server containing the failover group.
        failoverGroupName - The name of the failover group.
        parameters - A failover group.
        Returns:
        a failover group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginCreateOrUpdate

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<FailoverGroupInner>,​FailoverGroupInner> beginCreateOrUpdate​(String resourceGroupName,
                                                                                                                                                              String serverName,
                                                                                                                                                              String failoverGroupName,
                                                                                                                                                              FailoverGroupInner parameters,
                                                                                                                                                              com.azure.core.util.Context context)
        Creates or updates a failover group.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server containing the failover group.
        failoverGroupName - The name of the failover group.
        parameters - A failover group.
        context - The context to associate with this operation.
        Returns:
        a failover group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdateAsync

        Mono<FailoverGroupInner> createOrUpdateAsync​(String resourceGroupName,
                                                     String serverName,
                                                     String failoverGroupName,
                                                     FailoverGroupInner parameters)
        Creates or updates a failover group.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server containing the failover group.
        failoverGroupName - The name of the failover group.
        parameters - A failover group.
        Returns:
        a failover group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdate

        FailoverGroupInner createOrUpdate​(String resourceGroupName,
                                          String serverName,
                                          String failoverGroupName,
                                          FailoverGroupInner parameters)
        Creates or updates a failover group.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server containing the failover group.
        failoverGroupName - The name of the failover group.
        parameters - A failover group.
        Returns:
        a failover group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdate

        FailoverGroupInner createOrUpdate​(String resourceGroupName,
                                          String serverName,
                                          String failoverGroupName,
                                          FailoverGroupInner parameters,
                                          com.azure.core.util.Context context)
        Creates or updates a failover group.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server containing the failover group.
        failoverGroupName - The name of the failover group.
        parameters - A failover group.
        context - The context to associate with this operation.
        Returns:
        a failover group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • deleteWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync​(String resourceGroupName,
                                                                                          String serverName,
                                                                                          String failoverGroupName)
        Deletes a failover group.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server containing the failover group.
        failoverGroupName - The name of the failover group.
        Returns:
        the completion.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginDeleteAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,​Void> beginDeleteAsync​(String resourceGroupName,
                                                                                                                               String serverName,
                                                                                                                               String failoverGroupName)
        Deletes a failover group.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server containing the failover group.
        failoverGroupName - The name of the failover group.
        Returns:
        the completion.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginDelete

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginDelete​(String resourceGroupName,
                                                                                                                          String serverName,
                                                                                                                          String failoverGroupName)
        Deletes a failover group.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server containing the failover group.
        failoverGroupName - The name of the failover group.
        Returns:
        the completion.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginDelete

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginDelete​(String resourceGroupName,
                                                                                                                          String serverName,
                                                                                                                          String failoverGroupName,
                                                                                                                          com.azure.core.util.Context context)
        Deletes a failover group.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server containing the failover group.
        failoverGroupName - The name of the failover group.
        context - The context to associate with this operation.
        Returns:
        the completion.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • deleteAsync

        Mono<Void> deleteAsync​(String resourceGroupName,
                               String serverName,
                               String failoverGroupName)
        Deletes a failover group.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server containing the failover group.
        failoverGroupName - The name of the failover group.
        Returns:
        the completion.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • delete

        void delete​(String resourceGroupName,
                    String serverName,
                    String failoverGroupName)
        Deletes a failover group.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server containing the failover group.
        failoverGroupName - The name of the failover group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • delete

        void delete​(String resourceGroupName,
                    String serverName,
                    String failoverGroupName,
                    com.azure.core.util.Context context)
        Deletes a failover group.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server containing the failover group.
        failoverGroupName - The name of the failover group.
        context - The context to associate with this operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • updateWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> updateWithResponseAsync​(String resourceGroupName,
                                                                                          String serverName,
                                                                                          String failoverGroupName,
                                                                                          FailoverGroupUpdate parameters)
        Updates a failover group.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server containing the failover group.
        failoverGroupName - The name of the failover group.
        parameters - A failover group update request.
        Returns:
        a failover group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginUpdateAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<FailoverGroupInner>,​FailoverGroupInner> beginUpdateAsync​(String resourceGroupName,
                                                                                                                                                           String serverName,
                                                                                                                                                           String failoverGroupName,
                                                                                                                                                           FailoverGroupUpdate parameters)
        Updates a failover group.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server containing the failover group.
        failoverGroupName - The name of the failover group.
        parameters - A failover group update request.
        Returns:
        a failover group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginUpdate

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<FailoverGroupInner>,​FailoverGroupInner> beginUpdate​(String resourceGroupName,
                                                                                                                                                      String serverName,
                                                                                                                                                      String failoverGroupName,
                                                                                                                                                      FailoverGroupUpdate parameters)
        Updates a failover group.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server containing the failover group.
        failoverGroupName - The name of the failover group.
        parameters - A failover group update request.
        Returns:
        a failover group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginUpdate

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<FailoverGroupInner>,​FailoverGroupInner> beginUpdate​(String resourceGroupName,
                                                                                                                                                      String serverName,
                                                                                                                                                      String failoverGroupName,
                                                                                                                                                      FailoverGroupUpdate parameters,
                                                                                                                                                      com.azure.core.util.Context context)
        Updates a failover group.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server containing the failover group.
        failoverGroupName - The name of the failover group.
        parameters - A failover group update request.
        context - The context to associate with this operation.
        Returns:
        a failover group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • updateAsync

        Mono<FailoverGroupInner> updateAsync​(String resourceGroupName,
                                             String serverName,
                                             String failoverGroupName,
                                             FailoverGroupUpdate parameters)
        Updates a failover group.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server containing the failover group.
        failoverGroupName - The name of the failover group.
        parameters - A failover group update request.
        Returns:
        a failover group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • update

        FailoverGroupInner update​(String resourceGroupName,
                                  String serverName,
                                  String failoverGroupName,
                                  FailoverGroupUpdate parameters)
        Updates a failover group.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server containing the failover group.
        failoverGroupName - The name of the failover group.
        parameters - A failover group update request.
        Returns:
        a failover group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • update

        FailoverGroupInner update​(String resourceGroupName,
                                  String serverName,
                                  String failoverGroupName,
                                  FailoverGroupUpdate parameters,
                                  com.azure.core.util.Context context)
        Updates a failover group.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server containing the failover group.
        failoverGroupName - The name of the failover group.
        parameters - A failover group update request.
        context - The context to associate with this operation.
        Returns:
        a failover group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listByServerAsync

        com.azure.core.http.rest.PagedFlux<FailoverGroupInner> listByServerAsync​(String resourceGroupName,
                                                                                 String serverName)
        Lists the failover groups in a server.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server containing the failover group.
        Returns:
        a list of failover groups.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listByServer

        com.azure.core.http.rest.PagedIterable<FailoverGroupInner> listByServer​(String resourceGroupName,
                                                                                String serverName)
        Lists the failover groups in a server.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server containing the failover group.
        Returns:
        a list of failover groups.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listByServer

        com.azure.core.http.rest.PagedIterable<FailoverGroupInner> listByServer​(String resourceGroupName,
                                                                                String serverName,
                                                                                com.azure.core.util.Context context)
        Lists the failover groups in a server.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server containing the failover group.
        context - The context to associate with this operation.
        Returns:
        a list of failover groups.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • failoverWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> failoverWithResponseAsync​(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. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server containing the failover group.
        failoverGroupName - The name of the failover group.
        Returns:
        a failover group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginFailoverAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<FailoverGroupInner>,​FailoverGroupInner> beginFailoverAsync​(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. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server containing the failover group.
        failoverGroupName - The name of the failover group.
        Returns:
        a failover group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginFailover

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<FailoverGroupInner>,​FailoverGroupInner> beginFailover​(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. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server containing the failover group.
        failoverGroupName - The name of the failover group.
        Returns:
        a failover group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginFailover

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<FailoverGroupInner>,​FailoverGroupInner> beginFailover​(String resourceGroupName,
                                                                                                                                                        String serverName,
                                                                                                                                                        String failoverGroupName,
                                                                                                                                                        com.azure.core.util.Context context)
        Fails over from the current primary server to this server.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server containing the failover group.
        failoverGroupName - The name of the failover group.
        context - The context to associate with this operation.
        Returns:
        a failover group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • failoverAsync

        Mono<FailoverGroupInner> failoverAsync​(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. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server containing the failover group.
        failoverGroupName - The name of the failover group.
        Returns:
        a failover group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • failover

        FailoverGroupInner 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. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server containing the failover group.
        failoverGroupName - The name of the failover group.
        Returns:
        a failover group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • failover

        FailoverGroupInner failover​(String resourceGroupName,
                                    String serverName,
                                    String failoverGroupName,
                                    com.azure.core.util.Context context)
        Fails over from the current primary server to this server.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server containing the failover group.
        failoverGroupName - The name of the failover group.
        context - The context to associate with this operation.
        Returns:
        a failover group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • forceFailoverAllowDataLossWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> forceFailoverAllowDataLossWithResponseAsync​(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. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server containing the failover group.
        failoverGroupName - The name of the failover group.
        Returns:
        a failover group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginForceFailoverAllowDataLossAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<FailoverGroupInner>,​FailoverGroupInner> beginForceFailoverAllowDataLossAsync​(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. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server containing the failover group.
        failoverGroupName - The name of the failover group.
        Returns:
        a failover group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginForceFailoverAllowDataLoss

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<FailoverGroupInner>,​FailoverGroupInner> beginForceFailoverAllowDataLoss​(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. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server containing the failover group.
        failoverGroupName - The name of the failover group.
        Returns:
        a failover group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginForceFailoverAllowDataLoss

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<FailoverGroupInner>,​FailoverGroupInner> beginForceFailoverAllowDataLoss​(String resourceGroupName,
                                                                                                                                                                          String serverName,
                                                                                                                                                                          String failoverGroupName,
                                                                                                                                                                          com.azure.core.util.Context context)
        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. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server containing the failover group.
        failoverGroupName - The name of the failover group.
        context - The context to associate with this operation.
        Returns:
        a failover group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • forceFailoverAllowDataLossAsync

        Mono<FailoverGroupInner> 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. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server containing the failover group.
        failoverGroupName - The name of the failover group.
        Returns:
        a failover group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • forceFailoverAllowDataLoss

        FailoverGroupInner 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. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server containing the failover group.
        failoverGroupName - The name of the failover group.
        Returns:
        a failover group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • forceFailoverAllowDataLoss

        FailoverGroupInner forceFailoverAllowDataLoss​(String resourceGroupName,
                                                      String serverName,
                                                      String failoverGroupName,
                                                      com.azure.core.util.Context context)
        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. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server containing the failover group.
        failoverGroupName - The name of the failover group.
        context - The context to associate with this operation.
        Returns:
        a failover group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.