Interface AvailabilityGroupListeners


  • public interface AvailabilityGroupListeners
    Resource collection API of AvailabilityGroupListeners.
    • Method Detail

      • get

        AvailabilityGroupListener get​(String resourceGroupName,
                                      String sqlVirtualMachineGroupName,
                                      String availabilityGroupListenerName)
        Gets an availability group listener.
        Parameters:
        resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        sqlVirtualMachineGroupName - Name of the SQL virtual machine group.
        availabilityGroupListenerName - Name of the availability group listener.
        Returns:
        an availability group listener.
        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<AvailabilityGroupListener> getWithResponse​(String resourceGroupName,
                                                                                     String sqlVirtualMachineGroupName,
                                                                                     String availabilityGroupListenerName,
                                                                                     String expand,
                                                                                     com.azure.core.util.Context context)
        Gets an availability group listener.
        Parameters:
        resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        sqlVirtualMachineGroupName - Name of the SQL virtual machine group.
        availabilityGroupListenerName - Name of the availability group listener.
        expand - The child resources to include in the response.
        context - The context to associate with this operation.
        Returns:
        an availability group listener 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.
      • delete

        void delete​(String resourceGroupName,
                    String sqlVirtualMachineGroupName,
                    String availabilityGroupListenerName)
        Deletes an availability group listener.
        Parameters:
        resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        sqlVirtualMachineGroupName - Name of the SQL virtual machine group.
        availabilityGroupListenerName - Name of the availability group listener.
        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 sqlVirtualMachineGroupName,
                    String availabilityGroupListenerName,
                    com.azure.core.util.Context context)
        Deletes an availability group listener.
        Parameters:
        resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        sqlVirtualMachineGroupName - Name of the SQL virtual machine group.
        availabilityGroupListenerName - Name of the availability group listener.
        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.
      • listByGroup

        com.azure.core.http.rest.PagedIterable<AvailabilityGroupListener> listByGroup​(String resourceGroupName,
                                                                                      String sqlVirtualMachineGroupName)
        Lists all availability group listeners in a SQL virtual machine group.
        Parameters:
        resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        sqlVirtualMachineGroupName - Name of the SQL virtual machine group.
        Returns:
        a list of availability group listeners 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.
      • listByGroup

        com.azure.core.http.rest.PagedIterable<AvailabilityGroupListener> listByGroup​(String resourceGroupName,
                                                                                      String sqlVirtualMachineGroupName,
                                                                                      com.azure.core.util.Context context)
        Lists all availability group listeners in a SQL virtual machine group.
        Parameters:
        resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        sqlVirtualMachineGroupName - Name of the SQL virtual machine group.
        context - The context to associate with this operation.
        Returns:
        a list of availability group listeners 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.
      • getById

        AvailabilityGroupListener getById​(String id)
        Gets an availability group listener.
        Parameters:
        id - the resource ID.
        Returns:
        an availability group listener 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.
      • getByIdWithResponse

        com.azure.core.http.rest.Response<AvailabilityGroupListener> getByIdWithResponse​(String id,
                                                                                         String expand,
                                                                                         com.azure.core.util.Context context)
        Gets an availability group listener.
        Parameters:
        id - the resource ID.
        expand - The child resources to include in the response.
        context - The context to associate with this operation.
        Returns:
        an availability group listener 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.
      • deleteById

        void deleteById​(String id)
        Deletes an availability group listener.
        Parameters:
        id - the resource ID.
        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.
      • deleteByIdWithResponse

        void deleteByIdWithResponse​(String id,
                                    com.azure.core.util.Context context)
        Deletes an availability group listener.
        Parameters:
        id - the resource ID.
        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.