Interface NetworkConnections


public interface NetworkConnections
Resource collection API of NetworkConnections.
  • Method Details

    • list

      com.azure.core.http.rest.PagedIterable<NetworkConnection> list()
      Lists network connections in a subscription.
      Returns:
      result of the network connection list operation 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<NetworkConnection> list(Integer top, com.azure.core.util.Context context)
      Lists network connections in a subscription.
      Parameters:
      top - The maximum number of resources to return from the operation. Example: '$top=10'.
      context - The context to associate with this operation.
      Returns:
      result of the network connection list operation 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<NetworkConnection> listByResourceGroup(String resourceGroupName)
      Lists network connections in a resource group.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      Returns:
      result of the network connection list operation 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<NetworkConnection> listByResourceGroup(String resourceGroupName, Integer top, com.azure.core.util.Context context)
      Lists network connections in a resource group.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      top - The maximum number of resources to return from the operation. Example: '$top=10'.
      context - The context to associate with this operation.
      Returns:
      result of the network connection list operation 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.
    • getByResourceGroupWithResponse

      com.azure.core.http.rest.Response<NetworkConnection> getByResourceGroupWithResponse(String resourceGroupName, String networkConnectionName, com.azure.core.util.Context context)
      Gets a network connection resource.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      networkConnectionName - Name of the Network Connection that can be applied to a Pool.
      context - The context to associate with this operation.
      Returns:
      a network connection resource 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

      NetworkConnection getByResourceGroup(String resourceGroupName, String networkConnectionName)
      Gets a network connection resource.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      networkConnectionName - Name of the Network Connection that can be applied to a Pool.
      Returns:
      a network connection resource.
      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.
    • deleteByResourceGroup

      void deleteByResourceGroup(String resourceGroupName, String networkConnectionName)
      Deletes a Network Connections resource.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      networkConnectionName - Name of the Network Connection that can be applied to a Pool.
      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 networkConnectionName, com.azure.core.util.Context context)
      Deletes a Network Connections resource.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      networkConnectionName - Name of the Network Connection that can be applied to a Pool.
      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.
    • listHealthDetails

      com.azure.core.http.rest.PagedIterable<HealthCheckStatusDetails> listHealthDetails(String resourceGroupName, String networkConnectionName)
      Lists health check status details.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      networkConnectionName - Name of the Network Connection that can be applied to a Pool.
      Returns:
      result of the network health check list operation 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.
    • listHealthDetails

      com.azure.core.http.rest.PagedIterable<HealthCheckStatusDetails> listHealthDetails(String resourceGroupName, String networkConnectionName, Integer top, com.azure.core.util.Context context)
      Lists health check status details.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      networkConnectionName - Name of the Network Connection that can be applied to a Pool.
      top - The maximum number of resources to return from the operation. Example: '$top=10'.
      context - The context to associate with this operation.
      Returns:
      result of the network health check list operation 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.
    • getHealthDetailsWithResponse

      com.azure.core.http.rest.Response<HealthCheckStatusDetails> getHealthDetailsWithResponse(String resourceGroupName, String networkConnectionName, com.azure.core.util.Context context)
      Gets health check status details.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      networkConnectionName - Name of the Network Connection that can be applied to a Pool.
      context - The context to associate with this operation.
      Returns:
      health check status details 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.
    • getHealthDetails

      HealthCheckStatusDetails getHealthDetails(String resourceGroupName, String networkConnectionName)
      Gets health check status details.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      networkConnectionName - Name of the Network Connection that can be applied to a Pool.
      Returns:
      health check status details.
      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.
    • runHealthChecks

      void runHealthChecks(String resourceGroupName, String networkConnectionName)
      Triggers a new health check run. The execution and health check result can be tracked via the network Connection health check details.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      networkConnectionName - Name of the Network Connection that can be applied to a Pool.
      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.
    • runHealthChecks

      void runHealthChecks(String resourceGroupName, String networkConnectionName, com.azure.core.util.Context context)
      Triggers a new health check run. The execution and health check result can be tracked via the network Connection health check details.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      networkConnectionName - Name of the Network Connection that can be applied to a Pool.
      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.
    • getById

      Gets a network connection resource.
      Parameters:
      id - the resource ID.
      Returns:
      a network connection resource 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<NetworkConnection> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Gets a network connection resource.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      a network connection resource 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 a Network Connections resource.
      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 a Network Connections resource.
      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.
    • define

      Begins definition for a new NetworkConnection resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new NetworkConnection definition.