Interface ClustersClient


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

    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<ClusterInner> 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<ClusterInner> 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<ClusterInner> 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<ClusterInner> 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.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ClusterInner>,ClusterInner> beginCreateOrUpdate(String resourceGroupName, String clusterName, ClusterInner parameters)
      Create or update a Log Analytics cluster.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      clusterName - The name of the Log Analytics cluster.
      parameters - The parameters required to create or update a Log Analytics cluster.
      Returns:
      the SyncPoller for polling of the top level Log Analytics cluster resource container.
      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<ClusterInner>,ClusterInner> beginCreateOrUpdate(String resourceGroupName, String clusterName, ClusterInner parameters, com.azure.core.util.Context context)
      Create or update a Log Analytics cluster.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      clusterName - The name of the Log Analytics cluster.
      parameters - The parameters required to create or update a Log Analytics cluster.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of the top level Log Analytics cluster resource container.
      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

      ClusterInner createOrUpdate(String resourceGroupName, String clusterName, ClusterInner parameters)
      Create or update a Log Analytics cluster.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      clusterName - The name of the Log Analytics cluster.
      parameters - The parameters required to create or update a Log Analytics cluster.
      Returns:
      the top level Log Analytics cluster resource container.
      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

      ClusterInner createOrUpdate(String resourceGroupName, String clusterName, ClusterInner parameters, com.azure.core.util.Context context)
      Create or update a Log Analytics cluster.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      clusterName - The name of the Log Analytics cluster.
      parameters - The parameters required to create or update a Log Analytics cluster.
      context - The context to associate with this operation.
      Returns:
      the top level Log Analytics cluster resource container.
      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 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.
      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 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.
      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 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

      ClusterInner 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<ClusterInner> 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.
    • beginUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ClusterInner>,ClusterInner> beginUpdate(String resourceGroupName, String clusterName, ClusterPatch parameters)
      Updates a Log Analytics cluster.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      clusterName - Name of the Log Analytics Cluster.
      parameters - The parameters required to patch a Log Analytics cluster.
      Returns:
      the SyncPoller for polling of the top level Log Analytics cluster resource container.
      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.
    • beginUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ClusterInner>,ClusterInner> beginUpdate(String resourceGroupName, String clusterName, ClusterPatch parameters, com.azure.core.util.Context context)
      Updates a Log Analytics cluster.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      clusterName - Name of the Log Analytics Cluster.
      parameters - The parameters required to patch a Log Analytics cluster.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of the top level Log Analytics cluster resource container.
      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.
    • update

      ClusterInner update(String resourceGroupName, String clusterName, ClusterPatch parameters)
      Updates a Log Analytics cluster.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      clusterName - Name of the Log Analytics Cluster.
      parameters - The parameters required to patch a Log Analytics cluster.
      Returns:
      the top level Log Analytics cluster resource container.
      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.
    • update

      ClusterInner update(String resourceGroupName, String clusterName, ClusterPatch parameters, com.azure.core.util.Context context)
      Updates a Log Analytics cluster.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      clusterName - Name of the Log Analytics Cluster.
      parameters - The parameters required to patch a Log Analytics cluster.
      context - The context to associate with this operation.
      Returns:
      the top level Log Analytics cluster resource container.
      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.