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

    Modifier and Type
    Method
    Description
    com.azure.core.http.rest.PagedIterable<Usage>
    Gets the list of usages.
    com.azure.core.http.rest.PagedIterable<Usage>
    listByLocation(String location, String filter, com.azure.core.util.Context context)
    Gets the list of usages.
  • Method Details

    • listByLocation

      com.azure.core.http.rest.PagedIterable<Usage> listByLocation(String location)
      Gets the list of usages.

      Returns list of usage per SKU family for the specified subscription in the specified region.

      Parameters:
      location - The location name.
      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, String filter, com.azure.core.util.Context context)
      Gets the list of usages.

      Returns list of usage per SKU family for the specified subscription in the specified region.

      Parameters:
      location - The location name.
      filter - The filter to apply to the operation.
      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.