Interface QuotaApi
-
@Beta @Consumes("application/json") @Path("/os-quota-sets") public interface QuotaApi
Provide access to OpenStack Compute (Nova) Quota Extension API. The quotas extension enables limiters placed on the resources used per tenant (project) for virtual instances. It is used with the OpenStack Compute API 1.1 for administrators who need to control the amount of volumes, memory, floating IP addresses, instances, or cores allowed within a defined tenant or project. To use this extension, you need to have administrative rights to the tenants upon which you are placing quotas.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Quota
getByTenant(String tenantId)
Quota
getDefaultsForTenant(String tenantId)
boolean
updateQuotaOfTenant(Quota quota, String tenantId)
Update the quotas for a given tenant
-
-
-
Method Detail
-
getByTenant
@Named("quota:get") @GET @Path("/{id}") @Nullable Quota getByTenant(@PathParam("id") String tenantId)
- Returns:
- the quota settings for the tenant
-
updateQuotaOfTenant
@Named("quota:update") @PUT @Path("/{id}") @Produces("application/json") boolean updateQuotaOfTenant(Quota quota, @PathParam("id") String tenantId)
Update the quotas for a given tenant- Returns:
- true if successful
-
-