Interface DistributedAvailabilityGroupsClient


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

    • listByInstanceAsync

      com.azure.core.http.rest.PagedFlux<DistributedAvailabilityGroupInner> listByInstanceAsync(String resourceGroupName, String managedInstanceName)
      Gets a list of a distributed availability groups in instance.
      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.
      managedInstanceName - The name of the managed instance.
      Returns:
      a list of a distributed availability groups in instance as paginated response with PagedFlux.
      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.
    • listByInstance

      com.azure.core.http.rest.PagedIterable<DistributedAvailabilityGroupInner> listByInstance(String resourceGroupName, String managedInstanceName)
      Gets a list of a distributed availability groups in instance.
      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.
      managedInstanceName - The name of the managed instance.
      Returns:
      a list of a distributed availability groups in instance as paginated response with PagedIterable.
      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.
    • listByInstance

      com.azure.core.http.rest.PagedIterable<DistributedAvailabilityGroupInner> listByInstance(String resourceGroupName, String managedInstanceName, com.azure.core.util.Context context)
      Gets a list of a distributed availability groups in instance.
      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.
      managedInstanceName - The name of the managed instance.
      context - The context to associate with this operation.
      Returns:
      a list of a distributed availability groups in instance as paginated response with PagedIterable.
      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<DistributedAvailabilityGroupInner>> getWithResponseAsync(String resourceGroupName, String managedInstanceName, String distributedAvailabilityGroupName)
      Gets a distributed availability group info.
      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.
      managedInstanceName - The name of the managed instance.
      distributedAvailabilityGroupName - The distributed availability group name.
      Returns:
      a distributed availability group info along with Response on successful completion of Mono.
      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<DistributedAvailabilityGroupInner> getAsync(String resourceGroupName, String managedInstanceName, String distributedAvailabilityGroupName)
      Gets a distributed availability group info.
      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.
      managedInstanceName - The name of the managed instance.
      distributedAvailabilityGroupName - The distributed availability group name.
      Returns:
      a distributed availability group info on successful completion of Mono.
      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<DistributedAvailabilityGroupInner> getWithResponse(String resourceGroupName, String managedInstanceName, String distributedAvailabilityGroupName, com.azure.core.util.Context context)
      Gets a distributed availability group info.
      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.
      managedInstanceName - The name of the managed instance.
      distributedAvailabilityGroupName - The distributed availability group name.
      context - The context to associate with this operation.
      Returns:
      a distributed availability group info along with 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.
    • get

      DistributedAvailabilityGroupInner get(String resourceGroupName, String managedInstanceName, String distributedAvailabilityGroupName)
      Gets a distributed availability group info.
      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.
      managedInstanceName - The name of the managed instance.
      distributedAvailabilityGroupName - The distributed availability group name.
      Returns:
      a distributed availability group info.
      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 managedInstanceName, String distributedAvailabilityGroupName, DistributedAvailabilityGroupInner parameters)
      Creates a distributed availability group between Sql On-Prem and Sql Managed Instance.
      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.
      managedInstanceName - The name of the managed instance.
      distributedAvailabilityGroupName - The distributed availability group name.
      parameters - The distributed availability group info.
      Returns:
      distributed availability group between box and Sql Managed Instance along with Response on successful completion of Mono.
      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<DistributedAvailabilityGroupInner>, DistributedAvailabilityGroupInner> beginCreateOrUpdateAsync(String resourceGroupName, String managedInstanceName, String distributedAvailabilityGroupName, DistributedAvailabilityGroupInner parameters)
      Creates a distributed availability group between Sql On-Prem and Sql Managed Instance.
      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.
      managedInstanceName - The name of the managed instance.
      distributedAvailabilityGroupName - The distributed availability group name.
      parameters - The distributed availability group info.
      Returns:
      the PollerFlux for polling of distributed availability group between box and Sql Managed Instance.
      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<DistributedAvailabilityGroupInner>, DistributedAvailabilityGroupInner> beginCreateOrUpdate(String resourceGroupName, String managedInstanceName, String distributedAvailabilityGroupName, DistributedAvailabilityGroupInner parameters)
      Creates a distributed availability group between Sql On-Prem and Sql Managed Instance.
      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.
      managedInstanceName - The name of the managed instance.
      distributedAvailabilityGroupName - The distributed availability group name.
      parameters - The distributed availability group info.
      Returns:
      the SyncPoller for polling of distributed availability group between box and Sql Managed Instance.
      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<DistributedAvailabilityGroupInner>, DistributedAvailabilityGroupInner> beginCreateOrUpdate(String resourceGroupName, String managedInstanceName, String distributedAvailabilityGroupName, DistributedAvailabilityGroupInner parameters, com.azure.core.util.Context context)
      Creates a distributed availability group between Sql On-Prem and Sql Managed Instance.
      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.
      managedInstanceName - The name of the managed instance.
      distributedAvailabilityGroupName - The distributed availability group name.
      parameters - The distributed availability group info.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of distributed availability group between box and Sql Managed Instance.
      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<DistributedAvailabilityGroupInner> createOrUpdateAsync(String resourceGroupName, String managedInstanceName, String distributedAvailabilityGroupName, DistributedAvailabilityGroupInner parameters)
      Creates a distributed availability group between Sql On-Prem and Sql Managed Instance.
      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.
      managedInstanceName - The name of the managed instance.
      distributedAvailabilityGroupName - The distributed availability group name.
      parameters - The distributed availability group info.
      Returns:
      distributed availability group between box and Sql Managed Instance on successful completion of Mono.
      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

      DistributedAvailabilityGroupInner createOrUpdate(String resourceGroupName, String managedInstanceName, String distributedAvailabilityGroupName, DistributedAvailabilityGroupInner parameters)
      Creates a distributed availability group between Sql On-Prem and Sql Managed Instance.
      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.
      managedInstanceName - The name of the managed instance.
      distributedAvailabilityGroupName - The distributed availability group name.
      parameters - The distributed availability group info.
      Returns:
      distributed availability group between box and Sql Managed Instance.
      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

      DistributedAvailabilityGroupInner createOrUpdate(String resourceGroupName, String managedInstanceName, String distributedAvailabilityGroupName, DistributedAvailabilityGroupInner parameters, com.azure.core.util.Context context)
      Creates a distributed availability group between Sql On-Prem and Sql Managed Instance.
      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.
      managedInstanceName - The name of the managed instance.
      distributedAvailabilityGroupName - The distributed availability group name.
      parameters - The distributed availability group info.
      context - The context to associate with this operation.
      Returns:
      distributed availability group between box and Sql Managed Instance.
      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 managedInstanceName, String distributedAvailabilityGroupName)
      Drops a distributed availability group between Sql On-Prem and Sql Managed Instance.
      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.
      managedInstanceName - The name of the managed instance.
      distributedAvailabilityGroupName - The distributed availability group name.
      Returns:
      the Response on successful completion of Mono.
      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 managedInstanceName, String distributedAvailabilityGroupName)
      Drops a distributed availability group between Sql On-Prem and Sql Managed Instance.
      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.
      managedInstanceName - The name of the managed instance.
      distributedAvailabilityGroupName - The distributed availability group name.
      Returns:
      the PollerFlux for polling of long-running 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.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginDelete(String resourceGroupName, String managedInstanceName, String distributedAvailabilityGroupName)
      Drops a distributed availability group between Sql On-Prem and Sql Managed Instance.
      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.
      managedInstanceName - The name of the managed instance.
      distributedAvailabilityGroupName - The distributed availability group name.
      Returns:
      the SyncPoller for polling of long-running 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.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginDelete(String resourceGroupName, String managedInstanceName, String distributedAvailabilityGroupName, com.azure.core.util.Context context)
      Drops a distributed availability group between Sql On-Prem and Sql Managed Instance.
      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.
      managedInstanceName - The name of the managed instance.
      distributedAvailabilityGroupName - The distributed availability group name.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of long-running 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.
    • deleteAsync

      Mono<Void> deleteAsync(String resourceGroupName, String managedInstanceName, String distributedAvailabilityGroupName)
      Drops a distributed availability group between Sql On-Prem and Sql Managed Instance.
      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.
      managedInstanceName - The name of the managed instance.
      distributedAvailabilityGroupName - The distributed availability group name.
      Returns:
      A Mono that completes when a successful response is received.
      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 managedInstanceName, String distributedAvailabilityGroupName)
      Drops a distributed availability group between Sql On-Prem and Sql Managed Instance.
      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.
      managedInstanceName - The name of the managed instance.
      distributedAvailabilityGroupName - The distributed availability group name.
      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 managedInstanceName, String distributedAvailabilityGroupName, com.azure.core.util.Context context)
      Drops a distributed availability group between Sql On-Prem and Sql Managed Instance.
      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.
      managedInstanceName - The name of the managed instance.
      distributedAvailabilityGroupName - The distributed availability group name.
      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 managedInstanceName, String distributedAvailabilityGroupName, DistributedAvailabilityGroupInner parameters)
      Updates a distributed availability group replication mode.
      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.
      managedInstanceName - The name of the managed instance.
      distributedAvailabilityGroupName - The distributed availability group name.
      parameters - The distributed availability group info.
      Returns:
      distributed availability group between box and Sql Managed Instance along with Response on successful completion of Mono.
      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<DistributedAvailabilityGroupInner>, DistributedAvailabilityGroupInner> beginUpdateAsync(String resourceGroupName, String managedInstanceName, String distributedAvailabilityGroupName, DistributedAvailabilityGroupInner parameters)
      Updates a distributed availability group replication mode.
      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.
      managedInstanceName - The name of the managed instance.
      distributedAvailabilityGroupName - The distributed availability group name.
      parameters - The distributed availability group info.
      Returns:
      the PollerFlux for polling of distributed availability group between box and Sql Managed Instance.
      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<DistributedAvailabilityGroupInner>, DistributedAvailabilityGroupInner> beginUpdate(String resourceGroupName, String managedInstanceName, String distributedAvailabilityGroupName, DistributedAvailabilityGroupInner parameters)
      Updates a distributed availability group replication mode.
      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.
      managedInstanceName - The name of the managed instance.
      distributedAvailabilityGroupName - The distributed availability group name.
      parameters - The distributed availability group info.
      Returns:
      the SyncPoller for polling of distributed availability group between box and Sql Managed Instance.
      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<DistributedAvailabilityGroupInner>, DistributedAvailabilityGroupInner> beginUpdate(String resourceGroupName, String managedInstanceName, String distributedAvailabilityGroupName, DistributedAvailabilityGroupInner parameters, com.azure.core.util.Context context)
      Updates a distributed availability group replication mode.
      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.
      managedInstanceName - The name of the managed instance.
      distributedAvailabilityGroupName - The distributed availability group name.
      parameters - The distributed availability group info.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of distributed availability group between box and Sql Managed Instance.
      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<DistributedAvailabilityGroupInner> updateAsync(String resourceGroupName, String managedInstanceName, String distributedAvailabilityGroupName, DistributedAvailabilityGroupInner parameters)
      Updates a distributed availability group replication mode.
      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.
      managedInstanceName - The name of the managed instance.
      distributedAvailabilityGroupName - The distributed availability group name.
      parameters - The distributed availability group info.
      Returns:
      distributed availability group between box and Sql Managed Instance on successful completion of Mono.
      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

      DistributedAvailabilityGroupInner update(String resourceGroupName, String managedInstanceName, String distributedAvailabilityGroupName, DistributedAvailabilityGroupInner parameters)
      Updates a distributed availability group replication mode.
      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.
      managedInstanceName - The name of the managed instance.
      distributedAvailabilityGroupName - The distributed availability group name.
      parameters - The distributed availability group info.
      Returns:
      distributed availability group between box and Sql Managed Instance.
      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

      DistributedAvailabilityGroupInner update(String resourceGroupName, String managedInstanceName, String distributedAvailabilityGroupName, DistributedAvailabilityGroupInner parameters, com.azure.core.util.Context context)
      Updates a distributed availability group replication mode.
      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.
      managedInstanceName - The name of the managed instance.
      distributedAvailabilityGroupName - The distributed availability group name.
      parameters - The distributed availability group info.
      context - The context to associate with this operation.
      Returns:
      distributed availability group between box and Sql Managed Instance.
      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.