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

    • getWithResponse

      com.azure.core.http.rest.Response<CurrentQuotaLimitBase> getWithResponse(String subscriptionId, String providerId, String location, String resourceName, com.azure.core.util.Context context)
      Get the current quota (service limit) and usage of a resource. You can use the response from the GET operation to submit quota update request.
      Parameters:
      subscriptionId - Azure subscription ID.
      providerId - Azure resource provider ID.
      location - Azure region.
      resourceName - The resource name for a resource provider, such as SKU name for Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices.
      context - The context to associate with this operation.
      Returns:
      the current quota (service limit) and usage of a 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.
    • get

      CurrentQuotaLimitBase get(String subscriptionId, String providerId, String location, String resourceName)
      Get the current quota (service limit) and usage of a resource. You can use the response from the GET operation to submit quota update request.
      Parameters:
      subscriptionId - Azure subscription ID.
      providerId - Azure resource provider ID.
      location - Azure region.
      resourceName - The resource name for a resource provider, such as SKU name for Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices.
      Returns:
      the current quota (service limit) and usage of a 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.
    • list

      com.azure.core.http.rest.PagedIterable<CurrentQuotaLimitBase> list(String subscriptionId, String providerId, String location)
      Gets a list of current quotas (service limits) and usage for all resources. The response from the list quota operation can be leveraged to request quota updates.
      Parameters:
      subscriptionId - Azure subscription ID.
      providerId - Azure resource provider ID.
      location - Azure region.
      Returns:
      a list of current quotas (service limits) and usage for all resources 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<CurrentQuotaLimitBase> list(String subscriptionId, String providerId, String location, com.azure.core.util.Context context)
      Gets a list of current quotas (service limits) and usage for all resources. The response from the list quota operation can be leveraged to request quota updates.
      Parameters:
      subscriptionId - Azure subscription ID.
      providerId - Azure resource provider ID.
      location - Azure region.
      context - The context to associate with this operation.
      Returns:
      a list of current quotas (service limits) and usage for all resources 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.
    • getById

      Get the current quota (service limit) and usage of a resource. You can use the response from the GET operation to submit quota update request.
      Parameters:
      id - the resource ID.
      Returns:
      the current quota (service limit) and usage of a 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.
    • getByIdWithResponse

      com.azure.core.http.rest.Response<CurrentQuotaLimitBase> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Get the current quota (service limit) and usage of a resource. You can use the response from the GET operation to submit quota update request.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      the current quota (service limit) and usage of a 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.
    • define

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