Interface ReplicationLinksClient


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

      • deleteWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Void>> deleteWithResponseAsync​(String resourceGroupName,
                                                                              String serverName,
                                                                              String databaseName,
                                                                              String linkId)
        Deletes a database replication link. Cannot be done during failover.
        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.
        databaseName - The name of the database that has the replication link to be dropped.
        linkId - The ID of the replication link to be deleted.
        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 databaseName,
                               String linkId)
        Deletes a database replication link. Cannot be done during failover.
        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.
        databaseName - The name of the database that has the replication link to be dropped.
        linkId - The ID of the replication link to be deleted.
        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 databaseName,
                    String linkId)
        Deletes a database replication link. Cannot be done during failover.
        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.
        databaseName - The name of the database that has the replication link to be dropped.
        linkId - The ID of the replication link to be deleted.
        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.
      • deleteWithResponse

        com.azure.core.http.rest.Response<Void> deleteWithResponse​(String resourceGroupName,
                                                                   String serverName,
                                                                   String databaseName,
                                                                   String linkId,
                                                                   com.azure.core.util.Context context)
        Deletes a database replication link. Cannot be done during failover.
        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.
        databaseName - The name of the database that has the replication link to be dropped.
        linkId - The ID of the replication link to be deleted.
        context - The context to associate with this operation.
        Returns:
        the response.
        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.
      • getWithResponseAsync

        Mono<com.azure.core.http.rest.Response<ReplicationLinkInner>> getWithResponseAsync​(String resourceGroupName,
                                                                                           String serverName,
                                                                                           String databaseName,
                                                                                           String linkId)
        Gets a database replication link.
        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.
        databaseName - The name of the database to get the link for.
        linkId - The replication link ID to be retrieved.
        Returns:
        a database replication link.
        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<ReplicationLinkInner> getAsync​(String resourceGroupName,
                                            String serverName,
                                            String databaseName,
                                            String linkId)
        Gets a database replication link.
        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.
        databaseName - The name of the database to get the link for.
        linkId - The replication link ID to be retrieved.
        Returns:
        a database replication link.
        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

        ReplicationLinkInner get​(String resourceGroupName,
                                 String serverName,
                                 String databaseName,
                                 String linkId)
        Gets a database replication link.
        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.
        databaseName - The name of the database to get the link for.
        linkId - The replication link ID to be retrieved.
        Returns:
        a database replication link.
        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<ReplicationLinkInner> getWithResponse​(String resourceGroupName,
                                                                                String serverName,
                                                                                String databaseName,
                                                                                String linkId,
                                                                                com.azure.core.util.Context context)
        Gets a database replication link.
        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.
        databaseName - The name of the database to get the link for.
        linkId - The replication link ID to be retrieved.
        context - The context to associate with this operation.
        Returns:
        a database replication link.
        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 databaseName,
                                                                                            String linkId)
        Sets which replica database is primary by failing over from the current primary replica database.
        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.
        databaseName - The name of the database that has the replication link to be failed over.
        linkId - The ID of the replication link to be failed over.
        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.
      • beginFailoverAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,​Void> beginFailoverAsync​(String resourceGroupName,
                                                                                                                                 String serverName,
                                                                                                                                 String databaseName,
                                                                                                                                 String linkId)
        Sets which replica database is primary by failing over from the current primary replica database.
        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.
        databaseName - The name of the database that has the replication link to be failed over.
        linkId - The ID of the replication link to be failed over.
        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.
      • beginFailover

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginFailover​(String resourceGroupName,
                                                                                                                            String serverName,
                                                                                                                            String databaseName,
                                                                                                                            String linkId)
        Sets which replica database is primary by failing over from the current primary replica database.
        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.
        databaseName - The name of the database that has the replication link to be failed over.
        linkId - The ID of the replication link to be failed over.
        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.
      • beginFailover

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginFailover​(String resourceGroupName,
                                                                                                                            String serverName,
                                                                                                                            String databaseName,
                                                                                                                            String linkId,
                                                                                                                            com.azure.core.util.Context context)
        Sets which replica database is primary by failing over from the current primary replica database.
        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.
        databaseName - The name of the database that has the replication link to be failed over.
        linkId - The ID of the replication link to be failed over.
        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.
      • failoverAsync

        Mono<Void> failoverAsync​(String resourceGroupName,
                                 String serverName,
                                 String databaseName,
                                 String linkId)
        Sets which replica database is primary by failing over from the current primary replica database.
        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.
        databaseName - The name of the database that has the replication link to be failed over.
        linkId - The ID of the replication link to be failed over.
        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.
      • failover

        void failover​(String resourceGroupName,
                      String serverName,
                      String databaseName,
                      String linkId)
        Sets which replica database is primary by failing over from the current primary replica database.
        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.
        databaseName - The name of the database that has the replication link to be failed over.
        linkId - The ID of the replication link to be failed over.
        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

        void failover​(String resourceGroupName,
                      String serverName,
                      String databaseName,
                      String linkId,
                      com.azure.core.util.Context context)
        Sets which replica database is primary by failing over from the current primary replica database.
        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.
        databaseName - The name of the database that has the replication link to be failed over.
        linkId - The ID of the replication link to be failed over.
        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.
      • failoverAllowDataLossWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> failoverAllowDataLossWithResponseAsync​(String resourceGroupName,
                                                                                                         String serverName,
                                                                                                         String databaseName,
                                                                                                         String linkId)
        Sets which replica database is primary by failing over from the current primary replica database. 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.
        databaseName - The name of the database that has the replication link to be failed over.
        linkId - The ID of the replication link to be failed over.
        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.
      • beginFailoverAllowDataLossAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,​Void> beginFailoverAllowDataLossAsync​(String resourceGroupName,
                                                                                                                                              String serverName,
                                                                                                                                              String databaseName,
                                                                                                                                              String linkId)
        Sets which replica database is primary by failing over from the current primary replica database. 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.
        databaseName - The name of the database that has the replication link to be failed over.
        linkId - The ID of the replication link to be failed over.
        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.
      • beginFailoverAllowDataLoss

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginFailoverAllowDataLoss​(String resourceGroupName,
                                                                                                                                         String serverName,
                                                                                                                                         String databaseName,
                                                                                                                                         String linkId)
        Sets which replica database is primary by failing over from the current primary replica database. 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.
        databaseName - The name of the database that has the replication link to be failed over.
        linkId - The ID of the replication link to be failed over.
        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.
      • beginFailoverAllowDataLoss

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginFailoverAllowDataLoss​(String resourceGroupName,
                                                                                                                                         String serverName,
                                                                                                                                         String databaseName,
                                                                                                                                         String linkId,
                                                                                                                                         com.azure.core.util.Context context)
        Sets which replica database is primary by failing over from the current primary replica database. 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.
        databaseName - The name of the database that has the replication link to be failed over.
        linkId - The ID of the replication link to be failed over.
        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.
      • failoverAllowDataLossAsync

        Mono<Void> failoverAllowDataLossAsync​(String resourceGroupName,
                                              String serverName,
                                              String databaseName,
                                              String linkId)
        Sets which replica database is primary by failing over from the current primary replica database. 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.
        databaseName - The name of the database that has the replication link to be failed over.
        linkId - The ID of the replication link to be failed over.
        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.
      • failoverAllowDataLoss

        void failoverAllowDataLoss​(String resourceGroupName,
                                   String serverName,
                                   String databaseName,
                                   String linkId)
        Sets which replica database is primary by failing over from the current primary replica database. 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.
        databaseName - The name of the database that has the replication link to be failed over.
        linkId - The ID of the replication link to be failed over.
        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.
      • failoverAllowDataLoss

        void failoverAllowDataLoss​(String resourceGroupName,
                                   String serverName,
                                   String databaseName,
                                   String linkId,
                                   com.azure.core.util.Context context)
        Sets which replica database is primary by failing over from the current primary replica database. 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.
        databaseName - The name of the database that has the replication link to be failed over.
        linkId - The ID of the replication link to be failed over.
        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.
      • unlinkWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> unlinkWithResponseAsync​(String resourceGroupName,
                                                                                          String serverName,
                                                                                          String databaseName,
                                                                                          String linkId,
                                                                                          Boolean forcedTermination)
        Deletes a database replication link in forced or friendly way.
        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.
        databaseName - The name of the database that has the replication link to be failed over.
        linkId - The ID of the replication link to be failed over.
        forcedTermination - Determines whether link will be terminated in a forced or a friendly way.
        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.
      • beginUnlinkAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,​Void> beginUnlinkAsync​(String resourceGroupName,
                                                                                                                               String serverName,
                                                                                                                               String databaseName,
                                                                                                                               String linkId,
                                                                                                                               Boolean forcedTermination)
        Deletes a database replication link in forced or friendly way.
        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.
        databaseName - The name of the database that has the replication link to be failed over.
        linkId - The ID of the replication link to be failed over.
        forcedTermination - Determines whether link will be terminated in a forced or a friendly way.
        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.
      • beginUnlink

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginUnlink​(String resourceGroupName,
                                                                                                                          String serverName,
                                                                                                                          String databaseName,
                                                                                                                          String linkId,
                                                                                                                          Boolean forcedTermination)
        Deletes a database replication link in forced or friendly way.
        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.
        databaseName - The name of the database that has the replication link to be failed over.
        linkId - The ID of the replication link to be failed over.
        forcedTermination - Determines whether link will be terminated in a forced or a friendly way.
        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.
      • beginUnlink

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginUnlink​(String resourceGroupName,
                                                                                                                          String serverName,
                                                                                                                          String databaseName,
                                                                                                                          String linkId,
                                                                                                                          Boolean forcedTermination,
                                                                                                                          com.azure.core.util.Context context)
        Deletes a database replication link in forced or friendly way.
        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.
        databaseName - The name of the database that has the replication link to be failed over.
        linkId - The ID of the replication link to be failed over.
        forcedTermination - Determines whether link will be terminated in a forced or a friendly way.
        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.
      • unlinkAsync

        Mono<Void> unlinkAsync​(String resourceGroupName,
                               String serverName,
                               String databaseName,
                               String linkId,
                               Boolean forcedTermination)
        Deletes a database replication link in forced or friendly way.
        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.
        databaseName - The name of the database that has the replication link to be failed over.
        linkId - The ID of the replication link to be failed over.
        forcedTermination - Determines whether link will be terminated in a forced or a friendly way.
        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.
      • unlinkAsync

        Mono<Void> unlinkAsync​(String resourceGroupName,
                               String serverName,
                               String databaseName,
                               String linkId)
        Deletes a database replication link in forced or friendly way.
        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.
        databaseName - The name of the database that has the replication link to be failed over.
        linkId - The ID of the replication link to be failed over.
        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.
      • unlink

        void unlink​(String resourceGroupName,
                    String serverName,
                    String databaseName,
                    String linkId,
                    Boolean forcedTermination)
        Deletes a database replication link in forced or friendly way.
        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.
        databaseName - The name of the database that has the replication link to be failed over.
        linkId - The ID of the replication link to be failed over.
        forcedTermination - Determines whether link will be terminated in a forced or a friendly way.
        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.
      • unlink

        void unlink​(String resourceGroupName,
                    String serverName,
                    String databaseName,
                    String linkId,
                    Boolean forcedTermination,
                    com.azure.core.util.Context context)
        Deletes a database replication link in forced or friendly way.
        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.
        databaseName - The name of the database that has the replication link to be failed over.
        linkId - The ID of the replication link to be failed over.
        forcedTermination - Determines whether link will be terminated in a forced or a friendly way.
        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.
      • unlink

        void unlink​(String resourceGroupName,
                    String serverName,
                    String databaseName,
                    String linkId)
        Deletes a database replication link in forced or friendly way.
        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.
        databaseName - The name of the database that has the replication link to be failed over.
        linkId - The ID of the replication link to be failed over.
        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.
      • listByDatabaseAsync

        com.azure.core.http.rest.PagedFlux<ReplicationLinkInner> listByDatabaseAsync​(String resourceGroupName,
                                                                                     String serverName,
                                                                                     String databaseName)
        Lists a database's replication links.
        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.
        databaseName - The name of the database to retrieve links for.
        Returns:
        represents the response to a List database replication link request.
        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.
      • listByDatabase

        com.azure.core.http.rest.PagedIterable<ReplicationLinkInner> listByDatabase​(String resourceGroupName,
                                                                                    String serverName,
                                                                                    String databaseName)
        Lists a database's replication links.
        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.
        databaseName - The name of the database to retrieve links for.
        Returns:
        represents the response to a List database replication link request.
        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.
      • listByDatabase

        com.azure.core.http.rest.PagedIterable<ReplicationLinkInner> listByDatabase​(String resourceGroupName,
                                                                                    String serverName,
                                                                                    String databaseName,
                                                                                    com.azure.core.util.Context context)
        Lists a database's replication links.
        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.
        databaseName - The name of the database to retrieve links for.
        context - The context to associate with this operation.
        Returns:
        represents the response to a List database replication link request.
        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.