Interface ManagedInstanceAdministratorsClient


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

    • listByInstanceAsync

      com.azure.core.http.rest.PagedFlux<ManagedInstanceAdministratorInner> listByInstanceAsync(String resourceGroupName, String managedInstanceName)
      Gets a list of managed instance administrators.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      managedInstanceName - The name of the managed instance.
      Returns:
      a list of managed instance administrators as paginated response with PagedFlux.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listByInstance

      com.azure.core.http.rest.PagedIterable<ManagedInstanceAdministratorInner> listByInstance(String resourceGroupName, String managedInstanceName)
      Gets a list of managed instance administrators.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      managedInstanceName - The name of the managed instance.
      Returns:
      a list of managed instance administrators as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listByInstance

      com.azure.core.http.rest.PagedIterable<ManagedInstanceAdministratorInner> listByInstance(String resourceGroupName, String managedInstanceName, com.azure.core.util.Context context)
      Gets a list of managed instance administrators.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      managedInstanceName - The name of the managed instance.
      context - The context to associate with this operation.
      Returns:
      a list of managed instance administrators 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<ManagedInstanceAdministratorInner>> getWithResponseAsync(String resourceGroupName, String managedInstanceName, AdministratorName administratorName)
      Gets a managed instance administrator.
      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.
      administratorName - The administratorName parameter.
      Returns:
      a managed instance administrator along with Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getAsync

      Mono<ManagedInstanceAdministratorInner> getAsync(String resourceGroupName, String managedInstanceName, AdministratorName administratorName)
      Gets a managed instance administrator.
      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.
      administratorName - The administratorName parameter.
      Returns:
      a managed instance administrator 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<ManagedInstanceAdministratorInner> getWithResponse(String resourceGroupName, String managedInstanceName, AdministratorName administratorName, com.azure.core.util.Context context)
      Gets a managed instance administrator.
      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.
      administratorName - The administratorName parameter.
      context - The context to associate with this operation.
      Returns:
      a managed instance administrator 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

      ManagedInstanceAdministratorInner get(String resourceGroupName, String managedInstanceName, AdministratorName administratorName)
      Gets a managed instance administrator.
      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.
      administratorName - The administratorName parameter.
      Returns:
      a managed instance administrator.
      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, AdministratorName administratorName, ManagedInstanceAdministratorInner parameters)
      Creates or updates a managed instance administrator.
      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.
      administratorName - The administratorName parameter.
      parameters - The requested administrator parameters.
      Returns:
      an Azure SQL managed instance administrator along with Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginCreateOrUpdateAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<ManagedInstanceAdministratorInner>, ManagedInstanceAdministratorInner> beginCreateOrUpdateAsync(String resourceGroupName, String managedInstanceName, AdministratorName administratorName, ManagedInstanceAdministratorInner parameters)
      Creates or updates a managed instance administrator.
      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.
      administratorName - The administratorName parameter.
      parameters - The requested administrator parameters.
      Returns:
      the PollerFlux for polling of an Azure SQL managed instance administrator.
      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<ManagedInstanceAdministratorInner>, ManagedInstanceAdministratorInner> beginCreateOrUpdate(String resourceGroupName, String managedInstanceName, AdministratorName administratorName, ManagedInstanceAdministratorInner parameters)
      Creates or updates a managed instance administrator.
      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.
      administratorName - The administratorName parameter.
      parameters - The requested administrator parameters.
      Returns:
      the SyncPoller for polling of an Azure SQL managed instance administrator.
      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<ManagedInstanceAdministratorInner>, ManagedInstanceAdministratorInner> beginCreateOrUpdate(String resourceGroupName, String managedInstanceName, AdministratorName administratorName, ManagedInstanceAdministratorInner parameters, com.azure.core.util.Context context)
      Creates or updates a managed instance administrator.
      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.
      administratorName - The administratorName parameter.
      parameters - The requested administrator parameters.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of an Azure SQL managed instance administrator.
      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<ManagedInstanceAdministratorInner> createOrUpdateAsync(String resourceGroupName, String managedInstanceName, AdministratorName administratorName, ManagedInstanceAdministratorInner parameters)
      Creates or updates a managed instance administrator.
      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.
      administratorName - The administratorName parameter.
      parameters - The requested administrator parameters.
      Returns:
      an Azure SQL managed instance administrator 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

      ManagedInstanceAdministratorInner createOrUpdate(String resourceGroupName, String managedInstanceName, AdministratorName administratorName, ManagedInstanceAdministratorInner parameters)
      Creates or updates a managed instance administrator.
      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.
      administratorName - The administratorName parameter.
      parameters - The requested administrator parameters.
      Returns:
      an Azure SQL managed instance administrator.
      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

      ManagedInstanceAdministratorInner createOrUpdate(String resourceGroupName, String managedInstanceName, AdministratorName administratorName, ManagedInstanceAdministratorInner parameters, com.azure.core.util.Context context)
      Creates or updates a managed instance administrator.
      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.
      administratorName - The administratorName parameter.
      parameters - The requested administrator parameters.
      context - The context to associate with this operation.
      Returns:
      an Azure SQL managed instance administrator.
      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, AdministratorName administratorName)
      Deletes a managed instance administrator.
      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.
      administratorName - The administratorName parameter.
      Returns:
      the Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginDeleteAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>, Void> beginDeleteAsync(String resourceGroupName, String managedInstanceName, AdministratorName administratorName)
      Deletes a managed instance administrator.
      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.
      administratorName - The administratorName parameter.
      Returns:
      the PollerFlux for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginDelete(String resourceGroupName, String managedInstanceName, AdministratorName administratorName)
      Deletes a managed instance administrator.
      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.
      administratorName - The administratorName parameter.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginDelete(String resourceGroupName, String managedInstanceName, AdministratorName administratorName, com.azure.core.util.Context context)
      Deletes a managed instance administrator.
      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.
      administratorName - The administratorName parameter.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteAsync

      Mono<Void> deleteAsync(String resourceGroupName, String managedInstanceName, AdministratorName administratorName)
      Deletes a managed instance administrator.
      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.
      administratorName - The administratorName parameter.
      Returns:
      A Mono that completes when a successful response is received.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • delete

      void delete(String resourceGroupName, String managedInstanceName, AdministratorName administratorName)
      Deletes a managed instance administrator.
      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.
      administratorName - The administratorName parameter.
      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, AdministratorName administratorName, com.azure.core.util.Context context)
      Deletes a managed instance administrator.
      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.
      administratorName - The administratorName parameter.
      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.