Interface QueryPacks


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

    • list

      com.azure.core.http.rest.PagedIterable<LogAnalyticsQueryPack> list()
      Gets a list of all Log Analytics QueryPacks within a subscription.
      Returns:
      a list of all Log Analytics QueryPacks within 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<LogAnalyticsQueryPack> list(com.azure.core.util.Context context)
      Gets a list of all Log Analytics QueryPacks within a subscription.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      a list of all Log Analytics QueryPacks within 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.
    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<LogAnalyticsQueryPack> listByResourceGroup(String resourceGroupName)
      Gets a list of Log Analytics QueryPacks within a resource group.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      Returns:
      a list of Log Analytics QueryPacks within 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<LogAnalyticsQueryPack> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
      Gets a list of Log Analytics QueryPacks within 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:
      a list of Log Analytics QueryPacks within 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.
    • deleteByResourceGroup

      void deleteByResourceGroup(String resourceGroupName, String queryPackName)
      Deletes a Log Analytics QueryPack.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      queryPackName - The name of the Log Analytics QueryPack 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.
    • deleteWithResponse

      com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String queryPackName, com.azure.core.util.Context context)
      Deletes a Log Analytics QueryPack.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      queryPackName - The name of the Log Analytics QueryPack resource.
      context - The context to associate with this operation.
      Returns:
      the 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

      LogAnalyticsQueryPack getByResourceGroup(String resourceGroupName, String queryPackName)
      Returns a Log Analytics QueryPack.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      queryPackName - The name of the Log Analytics QueryPack resource.
      Returns:
      an Log Analytics QueryPack definition.
      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<LogAnalyticsQueryPack> getByResourceGroupWithResponse(String resourceGroupName, String queryPackName, com.azure.core.util.Context context)
      Returns a Log Analytics QueryPack.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      queryPackName - The name of the Log Analytics QueryPack resource.
      context - The context to associate with this operation.
      Returns:
      an Log Analytics QueryPack definition 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

      Returns a Log Analytics QueryPack.
      Parameters:
      id - the resource ID.
      Returns:
      an Log Analytics QueryPack definition 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<LogAnalyticsQueryPack> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Returns a Log Analytics QueryPack.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      an Log Analytics QueryPack definition 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 Log Analytics QueryPack.
      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

      com.azure.core.http.rest.Response<Void> deleteByIdWithResponse(String id, com.azure.core.util.Context context)
      Deletes a Log Analytics QueryPack.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      the 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.
    • define

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