org.jclouds.openstack.nova.v2_0.extensions
Interface QuotaApi


@Beta
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
 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(value="quota:get")
@Nullable
Quota getByTenant(String tenantId)
Returns:
the quota settings for the tenant

updateQuotaOfTenant

@Named(value="quota:update")
boolean updateQuotaOfTenant(Quota quota,
                                  String tenantId)
Update the quotas for a given tenant

Returns:
true if successful

getDefaultsForTenant

@Named(value="quota:get")
@Nullable
Quota getDefaultsForTenant(String tenantId)
Returns:
the set of default quotas for the tenant


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.