Interface AvailabilityGroupListenersClient
public interface AvailabilityGroupListenersClient
An instance of this class provides access to all the operations defined in AvailabilityGroupListenersClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AvailabilityGroupListenerInner>,
AvailabilityGroupListenerInner> beginCreateOrUpdate
(String resourceGroupName, String sqlVirtualMachineGroupName, String availabilityGroupListenerName, AvailabilityGroupListenerInner parameters) Creates or updates an availability group listener.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AvailabilityGroupListenerInner>,
AvailabilityGroupListenerInner> beginCreateOrUpdate
(String resourceGroupName, String sqlVirtualMachineGroupName, String availabilityGroupListenerName, AvailabilityGroupListenerInner parameters, com.azure.core.util.Context context) Creates or updates an availability group listener.beginDelete
(String resourceGroupName, String sqlVirtualMachineGroupName, String availabilityGroupListenerName) Deletes an availability group listener.beginDelete
(String resourceGroupName, String sqlVirtualMachineGroupName, String availabilityGroupListenerName, com.azure.core.util.Context context) Deletes an availability group listener.createOrUpdate
(String resourceGroupName, String sqlVirtualMachineGroupName, String availabilityGroupListenerName, AvailabilityGroupListenerInner parameters) Creates or updates an availability group listener.createOrUpdate
(String resourceGroupName, String sqlVirtualMachineGroupName, String availabilityGroupListenerName, AvailabilityGroupListenerInner parameters, com.azure.core.util.Context context) Creates or updates an availability group listener.void
delete
(String resourceGroupName, String sqlVirtualMachineGroupName, String availabilityGroupListenerName) Deletes an availability group listener.void
delete
(String resourceGroupName, String sqlVirtualMachineGroupName, String availabilityGroupListenerName, com.azure.core.util.Context context) Deletes an availability group listener.get
(String resourceGroupName, String sqlVirtualMachineGroupName, String availabilityGroupListenerName) Gets an availability group listener.com.azure.core.http.rest.Response<AvailabilityGroupListenerInner>
getWithResponse
(String resourceGroupName, String sqlVirtualMachineGroupName, String availabilityGroupListenerName, String expand, com.azure.core.util.Context context) Gets an availability group listener.com.azure.core.http.rest.PagedIterable<AvailabilityGroupListenerInner>
listByGroup
(String resourceGroupName, String sqlVirtualMachineGroupName) Lists all availability group listeners in a SQL virtual machine group.com.azure.core.http.rest.PagedIterable<AvailabilityGroupListenerInner>
listByGroup
(String resourceGroupName, String sqlVirtualMachineGroupName, com.azure.core.util.Context context) Lists all availability group listeners in a SQL virtual machine group.
-
Method Details
-
get
AvailabilityGroupListenerInner 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<AvailabilityGroupListenerInner> 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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AvailabilityGroupListenerInner>,AvailabilityGroupListenerInner> beginCreateOrUpdate(String resourceGroupName, String sqlVirtualMachineGroupName, String availabilityGroupListenerName, AvailabilityGroupListenerInner parameters) Creates or updates 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.parameters
- The availability group listener.- Returns:
- the
SyncPoller
for polling of a SQL Server 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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AvailabilityGroupListenerInner>,AvailabilityGroupListenerInner> beginCreateOrUpdate(String resourceGroupName, String sqlVirtualMachineGroupName, String availabilityGroupListenerName, AvailabilityGroupListenerInner parameters, com.azure.core.util.Context context) Creates or updates 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.parameters
- The availability group listener.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of a SQL Server 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.
-
createOrUpdate
AvailabilityGroupListenerInner createOrUpdate(String resourceGroupName, String sqlVirtualMachineGroupName, String availabilityGroupListenerName, AvailabilityGroupListenerInner parameters) Creates or updates 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.parameters
- The availability group listener.- Returns:
- a SQL Server 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.
-
createOrUpdate
AvailabilityGroupListenerInner createOrUpdate(String resourceGroupName, String sqlVirtualMachineGroupName, String availabilityGroupListenerName, AvailabilityGroupListenerInner parameters, com.azure.core.util.Context context) Creates or updates 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.parameters
- The availability group listener.context
- The context to associate with this operation.- Returns:
- a SQL Server 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(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.- 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 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.- 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.
-
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<AvailabilityGroupListenerInner> 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<AvailabilityGroupListenerInner> 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.
-