Interface ManagedInstancesClient
- All Superinterfaces:
InnerSupportsDelete<Void>,InnerSupportsGet<ManagedInstanceInner>,InnerSupportsListing<ManagedInstanceInner>
public interface ManagedInstancesClient
extends InnerSupportsGet<ManagedInstanceInner>, InnerSupportsListing<ManagedInstanceInner>, InnerSupportsDelete<Void>
An instance of this class provides access to all the operations defined in ManagedInstancesClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ManagedInstanceInner>, ManagedInstanceInner> beginCreateOrUpdate(String resourceGroupName, String managedInstanceName, ManagedInstanceInner parameters) Creates or updates a managed instance.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ManagedInstanceInner>, ManagedInstanceInner> beginCreateOrUpdate(String resourceGroupName, String managedInstanceName, ManagedInstanceInner parameters, com.azure.core.util.Context context) Creates or updates a managed instance.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<ManagedInstanceInner>, ManagedInstanceInner> beginCreateOrUpdateAsync(String resourceGroupName, String managedInstanceName, ManagedInstanceInner parameters) Creates or updates a managed instance.beginDelete(String resourceGroupName, String managedInstanceName) Deletes a managed instance.beginDelete(String resourceGroupName, String managedInstanceName, com.azure.core.util.Context context) Deletes a managed instance.beginDeleteAsync(String resourceGroupName, String managedInstanceName) Deletes a managed instance.beginFailover(String resourceGroupName, String managedInstanceName) Failovers a managed instance.beginFailover(String resourceGroupName, String managedInstanceName, ReplicaType replicaType, com.azure.core.util.Context context) Failovers a managed instance.beginFailoverAsync(String resourceGroupName, String managedInstanceName) Failovers a managed instance.beginFailoverAsync(String resourceGroupName, String managedInstanceName, ReplicaType replicaType) Failovers a managed instance.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ManagedInstanceInner>, ManagedInstanceInner> beginUpdate(String resourceGroupName, String managedInstanceName, ManagedInstanceUpdate parameters) Updates a managed instance.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ManagedInstanceInner>, ManagedInstanceInner> beginUpdate(String resourceGroupName, String managedInstanceName, ManagedInstanceUpdate parameters, com.azure.core.util.Context context) Updates a managed instance.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<ManagedInstanceInner>, ManagedInstanceInner> beginUpdateAsync(String resourceGroupName, String managedInstanceName, ManagedInstanceUpdate parameters) Updates a managed instance.createOrUpdate(String resourceGroupName, String managedInstanceName, ManagedInstanceInner parameters) Creates or updates a managed instance.createOrUpdate(String resourceGroupName, String managedInstanceName, ManagedInstanceInner parameters, com.azure.core.util.Context context) Creates or updates a managed instance.createOrUpdateAsync(String resourceGroupName, String managedInstanceName, ManagedInstanceInner parameters) Creates or updates a managed instance.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String managedInstanceName, ManagedInstanceInner parameters) Creates or updates a managed instance.voidDeletes a managed instance.voidDeletes a managed instance.deleteAsync(String resourceGroupName, String managedInstanceName) Deletes a managed instance.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String managedInstanceName) Deletes a managed instance.voidFailovers a managed instance.voidfailover(String resourceGroupName, String managedInstanceName, ReplicaType replicaType, com.azure.core.util.Context context) Failovers a managed instance.failoverAsync(String resourceGroupName, String managedInstanceName) Failovers a managed instance.failoverAsync(String resourceGroupName, String managedInstanceName, ReplicaType replicaType) Failovers a managed instance.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> failoverWithResponseAsync(String resourceGroupName, String managedInstanceName, ReplicaType replicaType) Failovers a managed instance.getByResourceGroup(String resourceGroupName, String managedInstanceName) Gets a managed instance.getByResourceGroupAsync(String resourceGroupName, String managedInstanceName) Gets a managed instance.com.azure.core.http.rest.Response<ManagedInstanceInner> getByResourceGroupWithResponse(String resourceGroupName, String managedInstanceName, String expand, com.azure.core.util.Context context) Gets a managed instance.Mono<com.azure.core.http.rest.Response<ManagedInstanceInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String managedInstanceName, String expand) Gets a managed instance.com.azure.core.http.rest.PagedIterable<ManagedInstanceInner> list()Gets a list of all managed instances in the subscription.com.azure.core.http.rest.PagedIterable<ManagedInstanceInner> Gets a list of all managed instances in the subscription.com.azure.core.http.rest.PagedFlux<ManagedInstanceInner> Gets a list of all managed instances in the subscription.com.azure.core.http.rest.PagedFlux<ManagedInstanceInner> Gets a list of all managed instances in the subscription.com.azure.core.http.rest.PagedIterable<ManagedInstanceInner> listByInstancePool(String resourceGroupName, String instancePoolName) Gets a list of all managed instances in an instance pool.com.azure.core.http.rest.PagedIterable<ManagedInstanceInner> listByInstancePool(String resourceGroupName, String instancePoolName, String expand, com.azure.core.util.Context context) Gets a list of all managed instances in an instance pool.com.azure.core.http.rest.PagedFlux<ManagedInstanceInner> listByInstancePoolAsync(String resourceGroupName, String instancePoolName) Gets a list of all managed instances in an instance pool.com.azure.core.http.rest.PagedFlux<ManagedInstanceInner> listByInstancePoolAsync(String resourceGroupName, String instancePoolName, String expand) Gets a list of all managed instances in an instance pool.com.azure.core.http.rest.PagedIterable<TopQueriesInner> listByManagedInstance(String resourceGroupName, String managedInstanceName) Get top resource consuming queries of a managed instance.com.azure.core.http.rest.PagedIterable<TopQueriesInner> listByManagedInstance(String resourceGroupName, String managedInstanceName, Integer numberOfQueries, String databases, String startTime, String endTime, QueryTimeGrainType interval, AggregationFunctionType aggregationFunction, MetricType observationMetric, com.azure.core.util.Context context) Get top resource consuming queries of a managed instance.com.azure.core.http.rest.PagedFlux<TopQueriesInner> listByManagedInstanceAsync(String resourceGroupName, String managedInstanceName) Get top resource consuming queries of a managed instance.com.azure.core.http.rest.PagedFlux<TopQueriesInner> listByManagedInstanceAsync(String resourceGroupName, String managedInstanceName, Integer numberOfQueries, String databases, String startTime, String endTime, QueryTimeGrainType interval, AggregationFunctionType aggregationFunction, MetricType observationMetric) Get top resource consuming queries of a managed instance.com.azure.core.http.rest.PagedIterable<ManagedInstanceInner> listByResourceGroup(String resourceGroupName) Gets a list of managed instances in a resource group.com.azure.core.http.rest.PagedIterable<ManagedInstanceInner> listByResourceGroup(String resourceGroupName, String expand, com.azure.core.util.Context context) Gets a list of managed instances in a resource group.com.azure.core.http.rest.PagedFlux<ManagedInstanceInner> listByResourceGroupAsync(String resourceGroupName) Gets a list of managed instances in a resource group.com.azure.core.http.rest.PagedFlux<ManagedInstanceInner> listByResourceGroupAsync(String resourceGroupName, String expand) Gets a list of managed instances in a resource group.com.azure.core.http.rest.PagedIterable<OutboundEnvironmentEndpointInner> listOutboundNetworkDependenciesByManagedInstance(String resourceGroupName, String managedInstanceName) Gets the collection of outbound network dependencies for the given managed instance.com.azure.core.http.rest.PagedIterable<OutboundEnvironmentEndpointInner> listOutboundNetworkDependenciesByManagedInstance(String resourceGroupName, String managedInstanceName, com.azure.core.util.Context context) Gets the collection of outbound network dependencies for the given managed instance.com.azure.core.http.rest.PagedFlux<OutboundEnvironmentEndpointInner> listOutboundNetworkDependenciesByManagedInstanceAsync(String resourceGroupName, String managedInstanceName) Gets the collection of outbound network dependencies for the given managed instance.update(String resourceGroupName, String managedInstanceName, ManagedInstanceUpdate parameters) Updates a managed instance.update(String resourceGroupName, String managedInstanceName, ManagedInstanceUpdate parameters, com.azure.core.util.Context context) Updates a managed instance.updateAsync(String resourceGroupName, String managedInstanceName, ManagedInstanceUpdate parameters) Updates a managed instance.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> updateWithResponseAsync(String resourceGroupName, String managedInstanceName, ManagedInstanceUpdate parameters) Updates a managed instance.
-
Method Details
-
listAsync
Gets a list of all managed instances in the subscription.- Parameters:
expand- The child resources to include in the response.- Returns:
- a list of all managed instances in the subscription 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.
-
listAsync
com.azure.core.http.rest.PagedFlux<ManagedInstanceInner> listAsync()Gets a list of all managed instances in the subscription.- Specified by:
listAsyncin interfaceInnerSupportsListing<ManagedInstanceInner>- Returns:
- a list of all managed instances in the subscription as paginated response with
PagedFlux. - Throws:
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.
-
list
com.azure.core.http.rest.PagedIterable<ManagedInstanceInner> list()Gets a list of all managed instances in the subscription.- Specified by:
listin interfaceInnerSupportsListing<ManagedInstanceInner>- Returns:
- a list of all managed instances in the subscription as paginated response with
PagedIterable. - Throws:
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.
-
list
com.azure.core.http.rest.PagedIterable<ManagedInstanceInner> list(String expand, com.azure.core.util.Context context) Gets a list of all managed instances in the subscription.- Parameters:
expand- The child resources to include in the response.context- The context to associate with this operation.- Returns:
- a list of all managed instances in the subscription 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.
-
listByInstancePoolAsync
com.azure.core.http.rest.PagedFlux<ManagedInstanceInner> listByInstancePoolAsync(String resourceGroupName, String instancePoolName, String expand) Gets a list of all managed instances in an instance pool.- 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.instancePoolName- The instance pool name.expand- The child resources to include in the response.- Returns:
- a list of all managed instances in an instance pool 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.
-
listByInstancePoolAsync
com.azure.core.http.rest.PagedFlux<ManagedInstanceInner> listByInstancePoolAsync(String resourceGroupName, String instancePoolName) Gets a list of all managed instances in an instance pool.- 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.instancePoolName- The instance pool name.- Returns:
- a list of all managed instances in an instance pool 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.
-
listByInstancePool
com.azure.core.http.rest.PagedIterable<ManagedInstanceInner> listByInstancePool(String resourceGroupName, String instancePoolName) Gets a list of all managed instances in an instance pool.- 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.instancePoolName- The instance pool name.- Returns:
- a list of all managed instances in an instance pool 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.
-
listByInstancePool
com.azure.core.http.rest.PagedIterable<ManagedInstanceInner> listByInstancePool(String resourceGroupName, String instancePoolName, String expand, com.azure.core.util.Context context) Gets a list of all managed instances in an instance pool.- 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.instancePoolName- The instance pool name.expand- The child resources to include in the response.context- The context to associate with this operation.- Returns:
- a list of all managed instances in an instance pool 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.
-
listByResourceGroupAsync
com.azure.core.http.rest.PagedFlux<ManagedInstanceInner> listByResourceGroupAsync(String resourceGroupName, String expand) Gets a list of managed instances in a resource 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.expand- The child resources to include in the response.- Returns:
- a list of managed instances in a resource group 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.
-
listByResourceGroupAsync
com.azure.core.http.rest.PagedFlux<ManagedInstanceInner> listByResourceGroupAsync(String resourceGroupName) Gets a list of managed instances in a resource group.- Specified by:
listByResourceGroupAsyncin interfaceInnerSupportsListing<ManagedInstanceInner>- 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.- Returns:
- a list of managed instances in a resource group 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.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<ManagedInstanceInner> listByResourceGroup(String resourceGroupName) Gets a list of managed instances in a resource group.- Specified by:
listByResourceGroupin interfaceInnerSupportsListing<ManagedInstanceInner>- 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.- Returns:
- a list of managed instances in a resource group 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.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<ManagedInstanceInner> listByResourceGroup(String resourceGroupName, String expand, com.azure.core.util.Context context) Gets a list of managed instances in a resource 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.expand- The child resources to include in the response.context- The context to associate with this operation.- Returns:
- a list of managed instances in a resource group 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.
-
getByResourceGroupWithResponseAsync
Mono<com.azure.core.http.rest.Response<ManagedInstanceInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String managedInstanceName, String expand) Gets a 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.expand- The child resources to include in the response.- Returns:
- a managed instance 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.
-
getByResourceGroupAsync
Mono<ManagedInstanceInner> getByResourceGroupAsync(String resourceGroupName, String managedInstanceName) Gets a managed instance.- Specified by:
getByResourceGroupAsyncin interfaceInnerSupportsGet<ManagedInstanceInner>- 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 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.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<ManagedInstanceInner> getByResourceGroupWithResponse(String resourceGroupName, String managedInstanceName, String expand, com.azure.core.util.Context context) Gets a 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.expand- The child resources to include in the response.context- The context to associate with this operation.- Returns:
- a managed instance 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.
-
getByResourceGroup
Gets a managed instance.- Specified by:
getByResourceGroupin interfaceInnerSupportsGet<ManagedInstanceInner>- 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 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.
-
createOrUpdateWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String managedInstanceName, ManagedInstanceInner parameters) Creates or updates a 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.parameters- The requested managed instance resource state.- Returns:
- an Azure SQL managed instance 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<ManagedInstanceInner>,ManagedInstanceInner> beginCreateOrUpdateAsync(String resourceGroupName, String managedInstanceName, ManagedInstanceInner parameters) Creates or updates a 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.parameters- The requested managed instance resource state.- Returns:
- the
PollerFluxfor polling of an Azure 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<ManagedInstanceInner>,ManagedInstanceInner> beginCreateOrUpdate(String resourceGroupName, String managedInstanceName, ManagedInstanceInner parameters) Creates or updates a 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.parameters- The requested managed instance resource state.- Returns:
- the
SyncPollerfor polling of an Azure 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<ManagedInstanceInner>,ManagedInstanceInner> beginCreateOrUpdate(String resourceGroupName, String managedInstanceName, ManagedInstanceInner parameters, com.azure.core.util.Context context) Creates or updates a 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.parameters- The requested managed instance resource state.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of an Azure 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<ManagedInstanceInner> createOrUpdateAsync(String resourceGroupName, String managedInstanceName, ManagedInstanceInner parameters) Creates or updates a 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.parameters- The requested managed instance resource state.- Returns:
- an Azure 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
ManagedInstanceInner createOrUpdate(String resourceGroupName, String managedInstanceName, ManagedInstanceInner parameters) Creates or updates a 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.parameters- The requested managed instance resource state.- Returns:
- an Azure 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
ManagedInstanceInner createOrUpdate(String resourceGroupName, String managedInstanceName, ManagedInstanceInner parameters, com.azure.core.util.Context context) Creates or updates a 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.parameters- The requested managed instance resource state.context- The context to associate with this operation.- Returns:
- an Azure 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) Deletes a 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.- 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 managedInstanceName) Deletes a 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.- 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 managedInstanceName) Deletes a 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.- 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 managedInstanceName, com.azure.core.util.Context context) Deletes a 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.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 managed instance.- Specified by:
deleteAsyncin interfaceInnerSupportsDelete<Void>- 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
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 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.- 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, com.azure.core.util.Context context) Deletes a 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.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, ManagedInstanceUpdate parameters) Updates a 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.parameters- The requested managed instance resource state.- Returns:
- an Azure SQL managed instance 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<ManagedInstanceInner>,ManagedInstanceInner> beginUpdateAsync(String resourceGroupName, String managedInstanceName, ManagedInstanceUpdate parameters) Updates a 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.parameters- The requested managed instance resource state.- Returns:
- the
PollerFluxfor polling of an Azure 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<ManagedInstanceInner>,ManagedInstanceInner> beginUpdate(String resourceGroupName, String managedInstanceName, ManagedInstanceUpdate parameters) Updates a 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.parameters- The requested managed instance resource state.- Returns:
- the
SyncPollerfor polling of an Azure 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<ManagedInstanceInner>,ManagedInstanceInner> beginUpdate(String resourceGroupName, String managedInstanceName, ManagedInstanceUpdate parameters, com.azure.core.util.Context context) Updates a 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.parameters- The requested managed instance resource state.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of an Azure 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<ManagedInstanceInner> updateAsync(String resourceGroupName, String managedInstanceName, ManagedInstanceUpdate parameters) Updates a 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.parameters- The requested managed instance resource state.- Returns:
- an Azure 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
ManagedInstanceInner update(String resourceGroupName, String managedInstanceName, ManagedInstanceUpdate parameters) Updates a 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.parameters- The requested managed instance resource state.- Returns:
- an Azure 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
ManagedInstanceInner update(String resourceGroupName, String managedInstanceName, ManagedInstanceUpdate parameters, com.azure.core.util.Context context) Updates a 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.parameters- The requested managed instance resource state.context- The context to associate with this operation.- Returns:
- an Azure 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.
-
failoverWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> failoverWithResponseAsync(String resourceGroupName, String managedInstanceName, ReplicaType replicaType) Failovers a 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 to failover.replicaType- The type of replica to be failed over.- 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.
-
beginFailoverAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginFailoverAsync(String resourceGroupName, String managedInstanceName, ReplicaType replicaType) Failovers a 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 to failover.replicaType- The type of replica to be failed over.- 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.
-
beginFailoverAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginFailoverAsync(String resourceGroupName, String managedInstanceName) Failovers a 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 to failover.- 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.
-
beginFailover
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginFailover(String resourceGroupName, String managedInstanceName) Failovers a 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 to failover.- 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.
-
beginFailover
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginFailover(String resourceGroupName, String managedInstanceName, ReplicaType replicaType, com.azure.core.util.Context context) Failovers a 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 to failover.replicaType- The type of replica to be failed over.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.
-
failoverAsync
Mono<Void> failoverAsync(String resourceGroupName, String managedInstanceName, ReplicaType replicaType) Failovers a 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 to failover.replicaType- The type of replica to be failed over.- 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.
-
failoverAsync
Failovers a 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 to failover.- 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.
-
failover
Failovers a 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 to failover.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
failover
void failover(String resourceGroupName, String managedInstanceName, ReplicaType replicaType, com.azure.core.util.Context context) Failovers a 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 to failover.replicaType- The type of replica to be failed over.context- The context to associate with this operation.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listOutboundNetworkDependenciesByManagedInstanceAsync
com.azure.core.http.rest.PagedFlux<OutboundEnvironmentEndpointInner> listOutboundNetworkDependenciesByManagedInstanceAsync(String resourceGroupName, String managedInstanceName) Gets the collection of outbound network dependencies for the given 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.- Returns:
- the collection of outbound network dependencies for the given managed 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.
-
listOutboundNetworkDependenciesByManagedInstance
com.azure.core.http.rest.PagedIterable<OutboundEnvironmentEndpointInner> listOutboundNetworkDependenciesByManagedInstance(String resourceGroupName, String managedInstanceName) Gets the collection of outbound network dependencies for the given 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.- Returns:
- the collection of outbound network dependencies for the given managed 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.
-
listOutboundNetworkDependenciesByManagedInstance
com.azure.core.http.rest.PagedIterable<OutboundEnvironmentEndpointInner> listOutboundNetworkDependenciesByManagedInstance(String resourceGroupName, String managedInstanceName, com.azure.core.util.Context context) Gets the collection of outbound network dependencies for the given 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.context- The context to associate with this operation.- Returns:
- the collection of outbound network dependencies for the given managed 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.
-
listByManagedInstanceAsync
com.azure.core.http.rest.PagedFlux<TopQueriesInner> listByManagedInstanceAsync(String resourceGroupName, String managedInstanceName, Integer numberOfQueries, String databases, String startTime, String endTime, QueryTimeGrainType interval, AggregationFunctionType aggregationFunction, MetricType observationMetric) Get top resource consuming queries of a 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.numberOfQueries- How many 'top queries' to return. Default is 5.databases- Comma separated list of databases to be included into search. All DB's are included if this parameter is not specified.startTime- Start time for observed period.endTime- End time for observed period.interval- The time step to be used to summarize the metric values. Default value is PT1H.aggregationFunction- Aggregation function to be used, default value is 'sum'.observationMetric- Metric to be used for ranking top queries. Default is 'cpu'.- Returns:
- top resource consuming queries of a managed 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.
-
listByManagedInstanceAsync
com.azure.core.http.rest.PagedFlux<TopQueriesInner> listByManagedInstanceAsync(String resourceGroupName, String managedInstanceName) Get top resource consuming queries of a 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.- Returns:
- top resource consuming queries of a managed 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.
-
listByManagedInstance
com.azure.core.http.rest.PagedIterable<TopQueriesInner> listByManagedInstance(String resourceGroupName, String managedInstanceName) Get top resource consuming queries of a 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.- Returns:
- top resource consuming queries of a managed 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.
-
listByManagedInstance
com.azure.core.http.rest.PagedIterable<TopQueriesInner> listByManagedInstance(String resourceGroupName, String managedInstanceName, Integer numberOfQueries, String databases, String startTime, String endTime, QueryTimeGrainType interval, AggregationFunctionType aggregationFunction, MetricType observationMetric, com.azure.core.util.Context context) Get top resource consuming queries of a 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.numberOfQueries- How many 'top queries' to return. Default is 5.databases- Comma separated list of databases to be included into search. All DB's are included if this parameter is not specified.startTime- Start time for observed period.endTime- End time for observed period.interval- The time step to be used to summarize the metric values. Default value is PT1H.aggregationFunction- Aggregation function to be used, default value is 'sum'.observationMetric- Metric to be used for ranking top queries. Default is 'cpu'.context- The context to associate with this operation.- Returns:
- top resource consuming queries of a managed 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.
-