ustcweizhou commented on a change in pull request #3331: api/server: Add option 
'details' to listProjects and listAccounts
URL: https://github.com/apache/cloudstack/pull/3331#discussion_r287857448
 
 

 ##########
 File path: 
api/src/main/java/org/apache/cloudstack/api/command/user/account/ListAccountsCmd.java
 ##########
 @@ -55,6 +61,12 @@
     @Parameter(name = ApiConstants.STATE, type = CommandType.STRING, 
description = "list accounts by state. Valid states are enabled, disabled, and 
locked.")
     private String state;
 
+    @Parameter(name = ApiConstants.DETAILS,
+               type = CommandType.LIST,
+               collectionType = CommandType.STRING,
+               description = "comma separated list of account details 
requested, value can be a list of [ all, resource, min]")
+    private List<String> viewDetails;
 
 Review comment:
   @rhtyd @DaanHoogland 
   this is same as viewDetails in ListVMsCmd and ListHostsCmd.java
   In some other API, details are in key/value pairs.
   
   I agree 'view' or 'listdetails' make more sense.
   I am afraid of backward compatibility.
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to