Interface FailoverGroupsClient
public interface FailoverGroupsClient
An instance of this class provides access to all the operations defined in FailoverGroupsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<FailoverGroupInner>,FailoverGroupInner> beginCreateOrUpdate(String resourceGroupName, String serverName, String failoverGroupName, FailoverGroupInner parameters) Creates or updates a failover group.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<FailoverGroupInner>,FailoverGroupInner> beginCreateOrUpdate(String resourceGroupName, String serverName, String failoverGroupName, FailoverGroupInner parameters, com.azure.core.util.Context context) Creates or updates a failover group.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<FailoverGroupInner>,FailoverGroupInner> beginCreateOrUpdateAsync(String resourceGroupName, String serverName, String failoverGroupName, FailoverGroupInner parameters) Creates or updates a failover group.beginDelete(String resourceGroupName, String serverName, String failoverGroupName) Deletes a failover group.beginDelete(String resourceGroupName, String serverName, String failoverGroupName, com.azure.core.util.Context context) Deletes a failover group.beginDeleteAsync(String resourceGroupName, String serverName, String failoverGroupName) Deletes a failover group.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<FailoverGroupInner>,FailoverGroupInner> beginFailover(String resourceGroupName, String serverName, String failoverGroupName) Fails over from the current primary server to this server.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<FailoverGroupInner>,FailoverGroupInner> beginFailover(String resourceGroupName, String serverName, String failoverGroupName, com.azure.core.util.Context context) Fails over from the current primary server to this server.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<FailoverGroupInner>,FailoverGroupInner> beginFailoverAsync(String resourceGroupName, String serverName, String failoverGroupName) Fails over from the current primary server to this server.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<FailoverGroupInner>,FailoverGroupInner> beginForceFailoverAllowDataLoss(String resourceGroupName, String serverName, String failoverGroupName) Fails over from the current primary server to this server.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<FailoverGroupInner>,FailoverGroupInner> beginForceFailoverAllowDataLoss(String resourceGroupName, String serverName, String failoverGroupName, com.azure.core.util.Context context) Fails over from the current primary server to this server.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<FailoverGroupInner>,FailoverGroupInner> beginForceFailoverAllowDataLossAsync(String resourceGroupName, String serverName, String failoverGroupName) Fails over from the current primary server to this server.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<FailoverGroupInner>,FailoverGroupInner> beginUpdate(String resourceGroupName, String serverName, String failoverGroupName, FailoverGroupUpdate parameters) Updates a failover group.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<FailoverGroupInner>,FailoverGroupInner> beginUpdate(String resourceGroupName, String serverName, String failoverGroupName, FailoverGroupUpdate parameters, com.azure.core.util.Context context) Updates a failover group.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<FailoverGroupInner>,FailoverGroupInner> beginUpdateAsync(String resourceGroupName, String serverName, String failoverGroupName, FailoverGroupUpdate parameters) Updates a failover group.createOrUpdate(String resourceGroupName, String serverName, String failoverGroupName, FailoverGroupInner parameters) Creates or updates a failover group.createOrUpdate(String resourceGroupName, String serverName, String failoverGroupName, FailoverGroupInner parameters, com.azure.core.util.Context context) Creates or updates a failover group.createOrUpdateAsync(String resourceGroupName, String serverName, String failoverGroupName, FailoverGroupInner parameters) Creates or updates a failover group.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>createOrUpdateWithResponseAsync(String resourceGroupName, String serverName, String failoverGroupName, FailoverGroupInner parameters) Creates or updates a failover group.voidDeletes a failover group.voiddelete(String resourceGroupName, String serverName, String failoverGroupName, com.azure.core.util.Context context) Deletes a failover group.deleteAsync(String resourceGroupName, String serverName, String failoverGroupName) Deletes a failover group.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>deleteWithResponseAsync(String resourceGroupName, String serverName, String failoverGroupName) Deletes a failover group.Fails over from the current primary server to this server.failover(String resourceGroupName, String serverName, String failoverGroupName, com.azure.core.util.Context context) Fails over from the current primary server to this server.failoverAsync(String resourceGroupName, String serverName, String failoverGroupName) Fails over from the current primary server to this server.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>failoverWithResponseAsync(String resourceGroupName, String serverName, String failoverGroupName) Fails over from the current primary server to this server.forceFailoverAllowDataLoss(String resourceGroupName, String serverName, String failoverGroupName) Fails over from the current primary server to this server.forceFailoverAllowDataLoss(String resourceGroupName, String serverName, String failoverGroupName, com.azure.core.util.Context context) Fails over from the current primary server to this server.forceFailoverAllowDataLossAsync(String resourceGroupName, String serverName, String failoverGroupName) Fails over from the current primary server to this server.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>forceFailoverAllowDataLossWithResponseAsync(String resourceGroupName, String serverName, String failoverGroupName) Fails over from the current primary server to this server.Gets a failover group.Gets a failover group.com.azure.core.http.rest.Response<FailoverGroupInner>getWithResponse(String resourceGroupName, String serverName, String failoverGroupName, com.azure.core.util.Context context) Gets a failover group.Mono<com.azure.core.http.rest.Response<FailoverGroupInner>>getWithResponseAsync(String resourceGroupName, String serverName, String failoverGroupName) Gets a failover group.com.azure.core.http.rest.PagedIterable<FailoverGroupInner>listByServer(String resourceGroupName, String serverName) Lists the failover groups in a server.com.azure.core.http.rest.PagedIterable<FailoverGroupInner>listByServer(String resourceGroupName, String serverName, com.azure.core.util.Context context) Lists the failover groups in a server.com.azure.core.http.rest.PagedFlux<FailoverGroupInner>listByServerAsync(String resourceGroupName, String serverName) Lists the failover groups in a server.update(String resourceGroupName, String serverName, String failoverGroupName, FailoverGroupUpdate parameters) Updates a failover group.update(String resourceGroupName, String serverName, String failoverGroupName, FailoverGroupUpdate parameters, com.azure.core.util.Context context) Updates a failover group.updateAsync(String resourceGroupName, String serverName, String failoverGroupName, FailoverGroupUpdate parameters) Updates a failover group.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>updateWithResponseAsync(String resourceGroupName, String serverName, String failoverGroupName, FailoverGroupUpdate parameters) Updates a failover group.
-
Method Details
-
listByServerAsync
com.azure.core.http.rest.PagedFlux<FailoverGroupInner> listByServerAsync(String resourceGroupName, String serverName) Lists the failover groups in a server.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server containing the failover group.- Returns:
- a list of failover groups 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.
-
listByServer
com.azure.core.http.rest.PagedIterable<FailoverGroupInner> listByServer(String resourceGroupName, String serverName) Lists the failover groups in a server.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server containing the failover group.- Returns:
- a list of failover groups 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.
-
listByServer
com.azure.core.http.rest.PagedIterable<FailoverGroupInner> listByServer(String resourceGroupName, String serverName, com.azure.core.util.Context context) Lists the failover groups in a server.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server containing the failover group.context- The context to associate with this operation.- Returns:
- a list of failover groups 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<FailoverGroupInner>> getWithResponseAsync(String resourceGroupName, String serverName, String failoverGroupName) Gets a failover group.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server containing the failover group.failoverGroupName- The name of the failover group.- Returns:
- a failover group along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getAsync
Mono<FailoverGroupInner> getAsync(String resourceGroupName, String serverName, String failoverGroupName) Gets a failover group.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server containing the failover group.failoverGroupName- The name of the failover group.- Returns:
- a failover group 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<FailoverGroupInner> getWithResponse(String resourceGroupName, String serverName, String failoverGroupName, com.azure.core.util.Context context) Gets a failover group.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server containing the failover group.failoverGroupName- The name of the failover group.context- The context to associate with this operation.- Returns:
- a failover group 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
Gets a failover group.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server containing the failover group.failoverGroupName- The name of the failover group.- Returns:
- a failover group.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String serverName, String failoverGroupName, FailoverGroupInner parameters) Creates or updates a failover group.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server containing the failover group.failoverGroupName- The name of the failover group.parameters- The failover group parameters.- Returns:
- a failover group along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreateOrUpdateAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<FailoverGroupInner>,FailoverGroupInner> beginCreateOrUpdateAsync(String resourceGroupName, String serverName, String failoverGroupName, FailoverGroupInner parameters) Creates or updates a failover group.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server containing the failover group.failoverGroupName- The name of the failover group.parameters- The failover group parameters.- Returns:
- the
PollerFluxfor polling of a failover group. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<FailoverGroupInner>,FailoverGroupInner> beginCreateOrUpdate(String resourceGroupName, String serverName, String failoverGroupName, FailoverGroupInner parameters) Creates or updates a failover group.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server containing the failover group.failoverGroupName- The name of the failover group.parameters- The failover group parameters.- Returns:
- the
SyncPollerfor polling of a failover group. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<FailoverGroupInner>,FailoverGroupInner> beginCreateOrUpdate(String resourceGroupName, String serverName, String failoverGroupName, FailoverGroupInner parameters, com.azure.core.util.Context context) Creates or updates a failover group.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server containing the failover group.failoverGroupName- The name of the failover group.parameters- The failover group parameters.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of a failover group. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateAsync
Mono<FailoverGroupInner> createOrUpdateAsync(String resourceGroupName, String serverName, String failoverGroupName, FailoverGroupInner parameters) Creates or updates a failover group.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server containing the failover group.failoverGroupName- The name of the failover group.parameters- The failover group parameters.- 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.
-
createOrUpdate
FailoverGroupInner createOrUpdate(String resourceGroupName, String serverName, String failoverGroupName, FailoverGroupInner parameters) Creates or updates a failover group.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server containing the failover group.failoverGroupName- The name of the failover group.parameters- The failover group parameters.- Returns:
- a failover group.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
FailoverGroupInner createOrUpdate(String resourceGroupName, String serverName, String failoverGroupName, FailoverGroupInner parameters, com.azure.core.util.Context context) Creates or updates a failover group.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server containing the failover group.failoverGroupName- The name of the failover group.parameters- The failover group parameters.context- The context to associate with this operation.- Returns:
- a failover group.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String serverName, String failoverGroupName) Deletes a failover group.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server containing the failover group.failoverGroupName- The name of the failover group.- Returns:
- the
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginDeleteAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginDeleteAsync(String resourceGroupName, String serverName, String failoverGroupName) Deletes a failover group.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server containing the failover group.failoverGroupName- The name of the failover group.- Returns:
- the
PollerFluxfor 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 serverName, String failoverGroupName) Deletes a failover group.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server containing the failover group.failoverGroupName- The name of the failover group.- Returns:
- the
SyncPollerfor 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 serverName, String failoverGroupName, com.azure.core.util.Context context) Deletes a failover group.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server containing the failover group.failoverGroupName- The name of the failover group.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor 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
Deletes a failover group.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server containing the failover group.failoverGroupName- The name of the failover group.- Returns:
- A
Monothat 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
Deletes a failover group.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server containing the failover group.failoverGroupName- The name of the failover group.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
delete
void delete(String resourceGroupName, String serverName, String failoverGroupName, com.azure.core.util.Context context) Deletes a failover group.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server containing the failover group.failoverGroupName- The name of the failover group.context- The context to associate with this operation.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
updateWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> updateWithResponseAsync(String resourceGroupName, String serverName, String failoverGroupName, FailoverGroupUpdate parameters) Updates a failover group.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server containing the failover group.failoverGroupName- The name of the failover group.parameters- The failover group parameters.- Returns:
- a failover group along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginUpdateAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<FailoverGroupInner>,FailoverGroupInner> beginUpdateAsync(String resourceGroupName, String serverName, String failoverGroupName, FailoverGroupUpdate parameters) Updates a failover group.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server containing the failover group.failoverGroupName- The name of the failover group.parameters- The failover group parameters.- Returns:
- the
PollerFluxfor polling of a failover group. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<FailoverGroupInner>,FailoverGroupInner> beginUpdate(String resourceGroupName, String serverName, String failoverGroupName, FailoverGroupUpdate parameters) Updates a failover group.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server containing the failover group.failoverGroupName- The name of the failover group.parameters- The failover group parameters.- Returns:
- the
SyncPollerfor polling of a failover group. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<FailoverGroupInner>,FailoverGroupInner> beginUpdate(String resourceGroupName, String serverName, String failoverGroupName, FailoverGroupUpdate parameters, com.azure.core.util.Context context) Updates a failover group.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server containing the failover group.failoverGroupName- The name of the failover group.parameters- The failover group parameters.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of a failover group. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
updateAsync
Mono<FailoverGroupInner> updateAsync(String resourceGroupName, String serverName, String failoverGroupName, FailoverGroupUpdate parameters) Updates a failover group.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server containing the failover group.failoverGroupName- The name of the failover group.parameters- The failover group parameters.- 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.
-
update
FailoverGroupInner update(String resourceGroupName, String serverName, String failoverGroupName, FailoverGroupUpdate parameters) Updates a failover group.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server containing the failover group.failoverGroupName- The name of the failover group.parameters- The failover group parameters.- Returns:
- a failover group.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
update
FailoverGroupInner update(String resourceGroupName, String serverName, String failoverGroupName, FailoverGroupUpdate parameters, com.azure.core.util.Context context) Updates a failover group.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server containing the failover group.failoverGroupName- The name of the failover group.parameters- The failover group parameters.context- The context to associate with this operation.- Returns:
- a failover group.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
failoverWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> failoverWithResponseAsync(String resourceGroupName, String serverName, String failoverGroupName) Fails over from the current primary server to this server.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server containing the failover group.failoverGroupName- The name of the failover group.- Returns:
- a failover group along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginFailoverAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<FailoverGroupInner>,FailoverGroupInner> beginFailoverAsync(String resourceGroupName, String serverName, String failoverGroupName) Fails over from the current primary server to this server.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server containing the failover group.failoverGroupName- The name of the failover group.- Returns:
- the
PollerFluxfor polling of a failover group. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginFailover
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<FailoverGroupInner>,FailoverGroupInner> beginFailover(String resourceGroupName, String serverName, String failoverGroupName) Fails over from the current primary server to this server.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server containing the failover group.failoverGroupName- The name of the failover group.- Returns:
- the
SyncPollerfor polling of a failover group. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginFailover
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<FailoverGroupInner>,FailoverGroupInner> beginFailover(String resourceGroupName, String serverName, String failoverGroupName, com.azure.core.util.Context context) Fails over from the current primary server to this server.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server containing the failover group.failoverGroupName- The name of the failover group.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of a failover group. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
failoverAsync
Mono<FailoverGroupInner> failoverAsync(String resourceGroupName, String serverName, String failoverGroupName) Fails over from the current primary server to this server.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server containing the failover group.failoverGroupName- The name of the failover group.- Returns:
- a failover group 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
Fails over from the current primary server to this server.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server containing the failover group.failoverGroupName- The name of the failover group.- Returns:
- a failover group.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
failover
FailoverGroupInner failover(String resourceGroupName, String serverName, String failoverGroupName, com.azure.core.util.Context context) Fails over from the current primary server to this server.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server containing the failover group.failoverGroupName- The name of the failover group.context- The context to associate with this operation.- Returns:
- a failover group.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
forceFailoverAllowDataLossWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> forceFailoverAllowDataLossWithResponseAsync(String resourceGroupName, String serverName, String failoverGroupName) Fails over from the current primary server to this server. This operation might result in data loss.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server containing the failover group.failoverGroupName- The name of the failover group.- Returns:
- a failover group along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginForceFailoverAllowDataLossAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<FailoverGroupInner>,FailoverGroupInner> beginForceFailoverAllowDataLossAsync(String resourceGroupName, String serverName, String failoverGroupName) Fails over from the current primary server to this server. This operation might result in data loss.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server containing the failover group.failoverGroupName- The name of the failover group.- Returns:
- the
PollerFluxfor polling of a failover group. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginForceFailoverAllowDataLoss
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<FailoverGroupInner>,FailoverGroupInner> beginForceFailoverAllowDataLoss(String resourceGroupName, String serverName, String failoverGroupName) Fails over from the current primary server to this server. This operation might result in data loss.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server containing the failover group.failoverGroupName- The name of the failover group.- Returns:
- the
SyncPollerfor polling of a failover group. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginForceFailoverAllowDataLoss
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<FailoverGroupInner>,FailoverGroupInner> beginForceFailoverAllowDataLoss(String resourceGroupName, String serverName, String failoverGroupName, com.azure.core.util.Context context) Fails over from the current primary server to this server. This operation might result in data loss.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server containing the failover group.failoverGroupName- The name of the failover group.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of a failover group. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
forceFailoverAllowDataLossAsync
Mono<FailoverGroupInner> forceFailoverAllowDataLossAsync(String resourceGroupName, String serverName, String failoverGroupName) Fails over from the current primary server to this server. This operation might result in data loss.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server containing the failover group.failoverGroupName- The name of the failover group.- Returns:
- a failover group 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
FailoverGroupInner forceFailoverAllowDataLoss(String resourceGroupName, String serverName, String failoverGroupName) Fails over from the current primary server to this server. This operation might result in data loss.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server containing the failover group.failoverGroupName- The name of the failover group.- Returns:
- a failover group.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
forceFailoverAllowDataLoss
FailoverGroupInner forceFailoverAllowDataLoss(String resourceGroupName, String serverName, String failoverGroupName, com.azure.core.util.Context context) Fails over from the current primary server to this server. This operation might result in data loss.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server containing the failover group.failoverGroupName- The name of the failover group.context- The context to associate with this operation.- Returns:
- a failover group.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-