Interface Usages


public interface Usages
Resource collection API of Usages.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.azure.core.http.rest.PagedIterable<Usage>
    Lists the current usages and limits in this location for the provided subscription.
    com.azure.core.http.rest.PagedIterable<Usage>
    listByLocation(String location, com.azure.core.util.Context context)
    Lists the current usages and limits in this location for the provided subscription.
  • Method Details

    • listByLocation

      com.azure.core.http.rest.PagedIterable<Usage> listByLocation(String location)
      Lists the current usages and limits in this location for the provided subscription.
      Parameters:
      location - The Azure region.
      Returns:
      list of Core Usages 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.
    • listByLocation

      com.azure.core.http.rest.PagedIterable<Usage> listByLocation(String location, com.azure.core.util.Context context)
      Lists the current usages and limits in this location for the provided subscription.
      Parameters:
      location - The Azure region.
      context - The context to associate with this operation.
      Returns:
      list of Core Usages 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.