Skip to content

Commit 4e59c4d

Browse files
author
Alena Prokharchyk
committed
CLOUDSTACK-3720: fixed API doc for listResourceLimits API
1 parent 3f405be commit 4e59c4d

1 file changed

Lines changed: 14 additions & 5 deletions

File tree

‎api/src/org/apache/cloudstack/api/command/user/resource/ListResourceLimitsCmd.java‎

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import org.apache.log4j.Logger;
2929

3030
import com.cloud.configuration.ResourceLimit;
31+
import com.cloud.configuration.Resource.ResourceOwnerType;
3132

3233
@APICommand(name = "listResourceLimits", description="Lists resource limits.", responseObject=ResourceLimitResponse.class)
3334
public class ListResourceLimitsCmd extends BaseListProjectAndAccountResourcesCmd {
@@ -42,11 +43,19 @@ public class ListResourceLimitsCmd extends BaseListProjectAndAccountResourcesCmd
4243
@Parameter(name=ApiConstants.ID, type=CommandType.LONG, description="Lists resource limits by ID.")
4344
private Long id;
4445

45-
@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. " +
46-
"1 - IP. Number of public IP addresses a user can own. " +
47-
"2 - Volume. Number of disk volumes a user can create." +
48-
"3 - Snapshot. Number of snapshots a user can create." +
49-
"4 - Template. Number of templates that a user can register/create.")
46+
@Parameter(name=ApiConstants.RESOURCE_TYPE, type=CommandType.INTEGER, description="Type of resource to update. Values are 0, 1, 2, 3, and 4." +
47+
"0 - Instance. Number of instances a user can create. " +
48+
"1 - IP. Number of public IP addresses an account can own. " +
49+
"2 - Volume. Number of disk volumes an account can own." +
50+
"3 - Snapshot. Number of snapshots an account can own." +
51+
"4 - Template. Number of templates an account can register/create." +
52+
"5 - Project. Number of projects an account can own." +
53+
"6 - Network. Number of networks an account can own." +
54+
"7 - VPC. Number of VPC an account can own." +
55+
"8 - CPU. Number of CPU an account can allocate for his resources." +
56+
"9 - Memory. Amount of RAM an account can allocate for his resources." +
57+
"10 - Primary Storage. Amount of Primary storage an account can allocate for his resoruces." +
58+
"11 - Secondary Storage. Amount of Secondary storage an account can allocate for his resources.")
5059
private Integer resourceType;
5160

5261
/////////////////////////////////////////////////////

0 commit comments

Comments
 (0)