Interface Clusters


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

    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<Cluster> listByResourceGroup(String resourceGroupName)
      Gets Log Analytics clusters in a resource group.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      Returns:
      log Analytics clusters in a resource group 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<Cluster> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
      Gets Log Analytics clusters in a resource group.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      context - The context to associate with this operation.
      Returns:
      log Analytics clusters in a resource group 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.
    • list

      com.azure.core.http.rest.PagedIterable<Cluster> list()
      Gets the Log Analytics clusters in a subscription.
      Returns:
      the Log Analytics clusters in a subscription 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<Cluster> list(com.azure.core.util.Context context)
      Gets the Log Analytics clusters in a subscription.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      the Log Analytics clusters in a subscription 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.
    • deleteByResourceGroup

      void deleteByResourceGroup(String resourceGroupName, String clusterName)
      Deletes a cluster instance.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      clusterName - Name of the Log Analytics Cluster.
      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 clusterName, com.azure.core.util.Context context)
      Deletes a cluster instance.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      clusterName - Name of the Log Analytics Cluster.
      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.
    • getByResourceGroup

      Cluster getByResourceGroup(String resourceGroupName, String clusterName)
      Gets a Log Analytics cluster instance.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      clusterName - Name of the Log Analytics Cluster.
      Returns:
      a Log Analytics cluster 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.
    • getByResourceGroupWithResponse

      com.azure.core.http.rest.Response<Cluster> getByResourceGroupWithResponse(String resourceGroupName, String clusterName, com.azure.core.util.Context context)
      Gets a Log Analytics cluster instance.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      clusterName - Name of the Log Analytics Cluster.
      context - The context to associate with this operation.
      Returns:
      a Log Analytics cluster 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.
    • getById

      Cluster getById(String id)
      Gets a Log Analytics cluster instance.
      Parameters:
      id - the resource ID.
      Returns:
      a Log Analytics cluster 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.
    • getByIdWithResponse

      com.azure.core.http.rest.Response<Cluster> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Gets a Log Analytics cluster instance.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      a Log Analytics cluster 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.
    • deleteById

      void deleteById(String id)
      Deletes a cluster instance.
      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 cluster instance.
      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 Cluster resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new Cluster definition.