Interface InstanceFailoverGroupsClient


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

    • listByLocationAsync

      com.azure.core.http.rest.PagedFlux<InstanceFailoverGroupInner> listByLocationAsync(String resourceGroupName, String locationName)
      Lists the failover groups in a location.
      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.
      locationName - The name of the region where the resource is located.
      Returns:
      a list of instance failover groups 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.
    • listByLocation

      com.azure.core.http.rest.PagedIterable<InstanceFailoverGroupInner> listByLocation(String resourceGroupName, String locationName)
      Lists the failover groups in a location.
      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.
      locationName - The name of the region where the resource is located.
      Returns:
      a list of instance failover groups 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.
    • listByLocation

      com.azure.core.http.rest.PagedIterable<InstanceFailoverGroupInner> listByLocation(String resourceGroupName, String locationName, com.azure.core.util.Context context)
      Lists the failover groups in a location.
      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.
      locationName - The name of the region where the resource is located.
      context - The context to associate with this operation.
      Returns:
      a list of instance failover groups 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<InstanceFailoverGroupInner>> getWithResponseAsync(String resourceGroupName, String locationName, 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.
      locationName - The name of the region where the resource is located.
      failoverGroupName - The name of the failover group.
      Returns:
      a failover group 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<InstanceFailoverGroupInner> getAsync(String resourceGroupName, String locationName, 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.
      locationName - The name of the region where the resource is located.
      failoverGroupName - The name of the failover group.
      Returns:
      a failover group 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<InstanceFailoverGroupInner> getWithResponse(String resourceGroupName, String locationName, 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.
      locationName - The name of the region where the resource is located.
      failoverGroupName - The name of the failover group.
      context - The context to associate with this operation.
      Returns:
      a failover group 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

      InstanceFailoverGroupInner get(String resourceGroupName, String locationName, 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.
      locationName - The name of the region where the resource is located.
      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.
    • createOrUpdateWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String locationName, String failoverGroupName, InstanceFailoverGroupInner 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.
      locationName - The name of the region where the resource is located.
      failoverGroupName - The name of the failover group.
      parameters - The failover group parameters.
      Returns:
      an instance failover group 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<InstanceFailoverGroupInner>, InstanceFailoverGroupInner> beginCreateOrUpdateAsync(String resourceGroupName, String locationName, String failoverGroupName, InstanceFailoverGroupInner 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.
      locationName - The name of the region where the resource is located.
      failoverGroupName - The name of the failover group.
      parameters - The failover group parameters.
      Returns:
      the PollerFlux for polling of an instance 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<InstanceFailoverGroupInner>, InstanceFailoverGroupInner> beginCreateOrUpdate(String resourceGroupName, String locationName, String failoverGroupName, InstanceFailoverGroupInner 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.
      locationName - The name of the region where the resource is located.
      failoverGroupName - The name of the failover group.
      parameters - The failover group parameters.
      Returns:
      the SyncPoller for polling of an instance 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<InstanceFailoverGroupInner>, InstanceFailoverGroupInner> beginCreateOrUpdate(String resourceGroupName, String locationName, String failoverGroupName, InstanceFailoverGroupInner 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.
      locationName - The name of the region where the resource is located.
      failoverGroupName - The name of the failover group.
      parameters - The failover group parameters.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of an instance 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<InstanceFailoverGroupInner> createOrUpdateAsync(String resourceGroupName, String locationName, String failoverGroupName, InstanceFailoverGroupInner 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.
      locationName - The name of the region where the resource is located.
      failoverGroupName - The name of the failover group.
      parameters - The failover group parameters.
      Returns:
      an instance failover group 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

      InstanceFailoverGroupInner createOrUpdate(String resourceGroupName, String locationName, String failoverGroupName, InstanceFailoverGroupInner 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.
      locationName - The name of the region where the resource is located.
      failoverGroupName - The name of the failover group.
      parameters - The failover group parameters.
      Returns:
      an instance 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

      InstanceFailoverGroupInner createOrUpdate(String resourceGroupName, String locationName, String failoverGroupName, InstanceFailoverGroupInner 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.
      locationName - The name of the region where the resource is located.
      failoverGroupName - The name of the failover group.
      parameters - The failover group parameters.
      context - The context to associate with this operation.
      Returns:
      an instance 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 locationName, 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.
      locationName - The name of the region where the resource is located.
      failoverGroupName - The name of the failover group.
      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 locationName, 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.
      locationName - The name of the region where the resource is located.
      failoverGroupName - The name of the failover group.
      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 locationName, 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.
      locationName - The name of the region where the resource is located.
      failoverGroupName - The name of the failover group.
      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 locationName, 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.
      locationName - The name of the region where the resource is located.
      failoverGroupName - The name of the failover group.
      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 locationName, 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.
      locationName - The name of the region where the resource is located.
      failoverGroupName - The name of the failover group.
      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 locationName, 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.
      locationName - The name of the region where the resource is located.
      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 locationName, 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.
      locationName - The name of the region where the resource is located.
      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.
    • failoverWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> failoverWithResponseAsync(String resourceGroupName, String locationName, String failoverGroupName)
      Fails over from the current primary managed instance to this 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.
      locationName - The name of the region where the resource is located.
      failoverGroupName - The name of the failover group.
      Returns:
      an instance failover group 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.
    • beginFailoverAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<InstanceFailoverGroupInner>, InstanceFailoverGroupInner> beginFailoverAsync(String resourceGroupName, String locationName, String failoverGroupName)
      Fails over from the current primary managed instance to this 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.
      locationName - The name of the region where the resource is located.
      failoverGroupName - The name of the failover group.
      Returns:
      the PollerFlux for polling of an instance 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<InstanceFailoverGroupInner>, InstanceFailoverGroupInner> beginFailover(String resourceGroupName, String locationName, String failoverGroupName)
      Fails over from the current primary managed instance to this 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.
      locationName - The name of the region where the resource is located.
      failoverGroupName - The name of the failover group.
      Returns:
      the SyncPoller for polling of an instance 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<InstanceFailoverGroupInner>, InstanceFailoverGroupInner> beginFailover(String resourceGroupName, String locationName, String failoverGroupName, com.azure.core.util.Context context)
      Fails over from the current primary managed instance to this 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.
      locationName - The name of the region where the resource is located.
      failoverGroupName - The name of the failover group.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of an instance 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<InstanceFailoverGroupInner> failoverAsync(String resourceGroupName, String locationName, String failoverGroupName)
      Fails over from the current primary managed instance to this 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.
      locationName - The name of the region where the resource is located.
      failoverGroupName - The name of the failover group.
      Returns:
      an instance failover group 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.
    • failover

      InstanceFailoverGroupInner failover(String resourceGroupName, String locationName, String failoverGroupName)
      Fails over from the current primary managed instance to this 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.
      locationName - The name of the region where the resource is located.
      failoverGroupName - The name of the failover group.
      Returns:
      an instance 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

      InstanceFailoverGroupInner failover(String resourceGroupName, String locationName, String failoverGroupName, com.azure.core.util.Context context)
      Fails over from the current primary managed instance to this 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.
      locationName - The name of the region where the resource is located.
      failoverGroupName - The name of the failover group.
      context - The context to associate with this operation.
      Returns:
      an instance 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 locationName, String failoverGroupName)
      Fails over from the current primary managed instance to this managed instance. 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.
      locationName - The name of the region where the resource is located.
      failoverGroupName - The name of the failover group.
      Returns:
      an instance failover group 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.
    • beginForceFailoverAllowDataLossAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<InstanceFailoverGroupInner>, InstanceFailoverGroupInner> beginForceFailoverAllowDataLossAsync(String resourceGroupName, String locationName, String failoverGroupName)
      Fails over from the current primary managed instance to this managed instance. 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.
      locationName - The name of the region where the resource is located.
      failoverGroupName - The name of the failover group.
      Returns:
      the PollerFlux for polling of an instance 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<InstanceFailoverGroupInner>, InstanceFailoverGroupInner> beginForceFailoverAllowDataLoss(String resourceGroupName, String locationName, String failoverGroupName)
      Fails over from the current primary managed instance to this managed instance. 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.
      locationName - The name of the region where the resource is located.
      failoverGroupName - The name of the failover group.
      Returns:
      the SyncPoller for polling of an instance 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<InstanceFailoverGroupInner>, InstanceFailoverGroupInner> beginForceFailoverAllowDataLoss(String resourceGroupName, String locationName, String failoverGroupName, com.azure.core.util.Context context)
      Fails over from the current primary managed instance to this managed instance. 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.
      locationName - The name of the region where the resource is located.
      failoverGroupName - The name of the failover group.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of an instance 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<InstanceFailoverGroupInner> forceFailoverAllowDataLossAsync(String resourceGroupName, String locationName, String failoverGroupName)
      Fails over from the current primary managed instance to this managed instance. 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.
      locationName - The name of the region where the resource is located.
      failoverGroupName - The name of the failover group.
      Returns:
      an instance failover group 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.
    • forceFailoverAllowDataLoss

      InstanceFailoverGroupInner forceFailoverAllowDataLoss(String resourceGroupName, String locationName, String failoverGroupName)
      Fails over from the current primary managed instance to this managed instance. 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.
      locationName - The name of the region where the resource is located.
      failoverGroupName - The name of the failover group.
      Returns:
      an instance 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

      InstanceFailoverGroupInner forceFailoverAllowDataLoss(String resourceGroupName, String locationName, String failoverGroupName, com.azure.core.util.Context context)
      Fails over from the current primary managed instance to this managed instance. 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.
      locationName - The name of the region where the resource is located.
      failoverGroupName - The name of the failover group.
      context - The context to associate with this operation.
      Returns:
      an instance 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.