mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
CLOUDSTACK-3720: fixed API doc for listResourceLimits API
This commit is contained in:
parent
02236576c0
commit
6c22c7b614
@ -28,6 +28,7 @@ import org.apache.cloudstack.api.response.ResourceLimitResponse;
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
import com.cloud.configuration.ResourceLimit;
|
||||
import com.cloud.configuration.Resource.ResourceOwnerType;
|
||||
|
||||
@APICommand(name = "listResourceLimits", description="Lists resource limits.", responseObject=ResourceLimitResponse.class)
|
||||
public class ListResourceLimitsCmd extends BaseListProjectAndAccountResourcesCmd {
|
||||
@ -42,11 +43,19 @@ public class ListResourceLimitsCmd extends BaseListProjectAndAccountResourcesCmd
|
||||
@Parameter(name=ApiConstants.ID, type=CommandType.LONG, description="Lists resource limits by ID.")
|
||||
private Long id;
|
||||
|
||||
@Parameter(name=ApiConstants.RESOURCE_TYPE, type=CommandType.INTEGER, description="Type of resource to update. Values are 0, 1, 2, 3, and 4. 0 - Instance. Number of instances a user can create. " +
|
||||
"1 - IP. Number of public IP addresses a user can own. " +
|
||||
"2 - Volume. Number of disk volumes a user can create." +
|
||||
"3 - Snapshot. Number of snapshots a user can create." +
|
||||
"4 - Template. Number of templates that a user can register/create.")
|
||||
@Parameter(name=ApiConstants.RESOURCE_TYPE, type=CommandType.INTEGER, description="Type of resource to update. Values are 0, 1, 2, 3, and 4." +
|
||||
"0 - Instance. Number of instances a user can create. " +
|
||||
"1 - IP. Number of public IP addresses an account can own. " +
|
||||
"2 - Volume. Number of disk volumes an account can own." +
|
||||
"3 - Snapshot. Number of snapshots an account can own." +
|
||||
"4 - Template. Number of templates an account can register/create." +
|
||||
"5 - Project. Number of projects an account can own." +
|
||||
"6 - Network. Number of networks an account can own." +
|
||||
"7 - VPC. Number of VPC an account can own." +
|
||||
"8 - CPU. Number of CPU an account can allocate for his resources." +
|
||||
"9 - Memory. Amount of RAM an account can allocate for his resources." +
|
||||
"10 - Primary Storage. Amount of Primary storage an account can allocate for his resoruces." +
|
||||
"11 - Secondary Storage. Amount of Secondary storage an account can allocate for his resources.")
|
||||
private Integer resourceType;
|
||||
|
||||
/////////////////////////////////////////////////////
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user