Interface ServerTrustCertificatesClient


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

    • listByInstanceAsync

      com.azure.core.http.rest.PagedFlux<ServerTrustCertificateInner> listByInstanceAsync(String resourceGroupName, String managedInstanceName)
      Gets a list of server trust certificates that were uploaded from box to the given Sql Managed Instance.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      managedInstanceName - The name of the managed instance.
      Returns:
      a list of server trust certificates that were uploaded from box to the given Sql 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.
    • listByInstance

      com.azure.core.http.rest.PagedIterable<ServerTrustCertificateInner> listByInstance(String resourceGroupName, String managedInstanceName)
      Gets a list of server trust certificates that were uploaded from box to the given Sql Managed Instance.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      managedInstanceName - The name of the managed instance.
      Returns:
      a list of server trust certificates that were uploaded from box to the given Sql 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.
    • listByInstance

      com.azure.core.http.rest.PagedIterable<ServerTrustCertificateInner> listByInstance(String resourceGroupName, String managedInstanceName, com.azure.core.util.Context context)
      Gets a list of server trust certificates that were uploaded from box to the given Sql Managed Instance.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      managedInstanceName - The name of the managed instance.
      context - The context to associate with this operation.
      Returns:
      a list of server trust certificates that were uploaded from box to the given Sql 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.
    • getWithResponseAsync

      Mono<com.azure.core.http.rest.Response<ServerTrustCertificateInner>> getWithResponseAsync(String resourceGroupName, String managedInstanceName, String certificateName)
      Gets a server trust certificate that was uploaded from box to Sql Managed Instance.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      managedInstanceName - The name of the managed instance.
      certificateName - Name of of the certificate to get.
      Returns:
      a server trust certificate that was uploaded from box to Sql Managed Instance along with Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getAsync

      Mono<ServerTrustCertificateInner> getAsync(String resourceGroupName, String managedInstanceName, String certificateName)
      Gets a server trust certificate that was uploaded from box to Sql Managed Instance.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      managedInstanceName - The name of the managed instance.
      certificateName - Name of of the certificate to get.
      Returns:
      a server trust certificate that was uploaded from box to 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.
    • getWithResponse

      com.azure.core.http.rest.Response<ServerTrustCertificateInner> getWithResponse(String resourceGroupName, String managedInstanceName, String certificateName, com.azure.core.util.Context context)
      Gets a server trust certificate that was uploaded from box to Sql Managed Instance.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      managedInstanceName - The name of the managed instance.
      certificateName - Name of of the certificate to get.
      context - The context to associate with this operation.
      Returns:
      a server trust certificate that was uploaded from box to Sql 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.
    • get

      ServerTrustCertificateInner get(String resourceGroupName, String managedInstanceName, String certificateName)
      Gets a server trust certificate that was uploaded from box to Sql Managed Instance.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      managedInstanceName - The name of the managed instance.
      certificateName - Name of of the certificate to get.
      Returns:
      a server trust certificate that was uploaded from box to 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.
    • createOrUpdateWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String managedInstanceName, String certificateName, ServerTrustCertificateInner parameters)
      Uploads a server trust certificate from box to Sql Managed Instance.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      managedInstanceName - The name of the managed instance.
      certificateName - Name of of the certificate to upload.
      parameters - The server trust certificate info.
      Returns:
      server trust certificate imported from box to enable connection between box and Sql Managed Instance along with Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginCreateOrUpdateAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<ServerTrustCertificateInner>,ServerTrustCertificateInner> beginCreateOrUpdateAsync(String resourceGroupName, String managedInstanceName, String certificateName, ServerTrustCertificateInner parameters)
      Uploads a server trust certificate from box to Sql Managed Instance.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      managedInstanceName - The name of the managed instance.
      certificateName - Name of of the certificate to upload.
      parameters - The server trust certificate info.
      Returns:
      the PollerFlux for polling of server trust certificate imported from box to enable connection between box and Sql Managed Instance.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ServerTrustCertificateInner>,ServerTrustCertificateInner> beginCreateOrUpdate(String resourceGroupName, String managedInstanceName, String certificateName, ServerTrustCertificateInner parameters)
      Uploads a server trust certificate from box to Sql Managed Instance.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      managedInstanceName - The name of the managed instance.
      certificateName - Name of of the certificate to upload.
      parameters - The server trust certificate info.
      Returns:
      the SyncPoller for polling of server trust certificate imported from box to enable connection between box and Sql Managed Instance.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ServerTrustCertificateInner>,ServerTrustCertificateInner> beginCreateOrUpdate(String resourceGroupName, String managedInstanceName, String certificateName, ServerTrustCertificateInner parameters, com.azure.core.util.Context context)
      Uploads a server trust certificate from box to Sql Managed Instance.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      managedInstanceName - The name of the managed instance.
      certificateName - Name of of the certificate to upload.
      parameters - The server trust certificate info.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of server trust certificate imported from box to enable connection between box and Sql Managed Instance.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createOrUpdateAsync

      Mono<ServerTrustCertificateInner> createOrUpdateAsync(String resourceGroupName, String managedInstanceName, String certificateName, ServerTrustCertificateInner parameters)
      Uploads a server trust certificate from box to Sql Managed Instance.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      managedInstanceName - The name of the managed instance.
      certificateName - Name of of the certificate to upload.
      parameters - The server trust certificate info.
      Returns:
      server trust certificate imported from box to enable connection between box and Sql Managed Instance on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createOrUpdate

      ServerTrustCertificateInner createOrUpdate(String resourceGroupName, String managedInstanceName, String certificateName, ServerTrustCertificateInner parameters)
      Uploads a server trust certificate from box to Sql Managed Instance.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      managedInstanceName - The name of the managed instance.
      certificateName - Name of of the certificate to upload.
      parameters - The server trust certificate info.
      Returns:
      server trust certificate imported from box to enable connection between box and Sql Managed Instance.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createOrUpdate

      ServerTrustCertificateInner createOrUpdate(String resourceGroupName, String managedInstanceName, String certificateName, ServerTrustCertificateInner parameters, com.azure.core.util.Context context)
      Uploads a server trust certificate from box to Sql Managed Instance.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      managedInstanceName - The name of the managed instance.
      certificateName - Name of of the certificate to upload.
      parameters - The server trust certificate info.
      context - The context to associate with this operation.
      Returns:
      server trust certificate imported from box to enable connection between box and Sql Managed Instance.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String managedInstanceName, String certificateName)
      Deletes a server trust certificate that was uploaded from box to Sql Managed Instance.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      managedInstanceName - The name of the managed instance.
      certificateName - Name of of the certificate to delete.
      Returns:
      the Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginDeleteAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginDeleteAsync(String resourceGroupName, String managedInstanceName, String certificateName)
      Deletes a server trust certificate that was uploaded from box to Sql Managed Instance.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      managedInstanceName - The name of the managed instance.
      certificateName - Name of of the certificate to delete.
      Returns:
      the PollerFlux for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String managedInstanceName, String certificateName)
      Deletes a server trust certificate that was uploaded from box to Sql Managed Instance.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      managedInstanceName - The name of the managed instance.
      certificateName - Name of of the certificate to delete.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String managedInstanceName, String certificateName, com.azure.core.util.Context context)
      Deletes a server trust certificate that was uploaded from box to Sql Managed Instance.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      managedInstanceName - The name of the managed instance.
      certificateName - Name of of the certificate to delete.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteAsync

      Mono<Void> deleteAsync(String resourceGroupName, String managedInstanceName, String certificateName)
      Deletes a server trust certificate that was uploaded from box to Sql Managed Instance.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      managedInstanceName - The name of the managed instance.
      certificateName - Name of of the certificate to delete.
      Returns:
      A Mono that completes when a successful response is received.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • delete

      void delete(String resourceGroupName, String managedInstanceName, String certificateName)
      Deletes a server trust certificate that was uploaded from box to Sql Managed Instance.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      managedInstanceName - The name of the managed instance.
      certificateName - Name of of the certificate to delete.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • delete

      void delete(String resourceGroupName, String managedInstanceName, String certificateName, com.azure.core.util.Context context)
      Deletes a server trust certificate that was uploaded from box to Sql Managed Instance.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      managedInstanceName - The name of the managed instance.
      certificateName - Name of of the certificate to delete.
      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.