|
41 | 41 | import org.apache.cloudstack.api.response.SecurityGroupResponse; |
42 | 42 | import org.apache.cloudstack.api.response.ServiceOfferingResponse; |
43 | 43 | import org.apache.cloudstack.api.response.TemplateResponse; |
| 44 | +import org.apache.cloudstack.api.response.UserDataResponse; |
44 | 45 | import org.apache.cloudstack.api.response.UserResponse; |
45 | 46 | import org.apache.cloudstack.api.response.UserVmResponse; |
46 | 47 | import org.apache.cloudstack.api.response.VpcResponse; |
@@ -151,6 +152,9 @@ public class ListVMsCmd extends BaseListRetrieveOnlyResourceCountCmd implements |
151 | 152 | @Parameter(name = ApiConstants.USER_DATA, type = CommandType.BOOLEAN, description = "Whether to return the VMs' user data or not. By default, user data will not be returned.", since = "4.18.0.0") |
152 | 153 | private Boolean showUserData; |
153 | 154 |
|
| 155 | + @Parameter(name = ApiConstants.USER_DATA_ID, type = CommandType.UUID, entityType = UserDataResponse.class, required = false, description = "the instances by userdata", since = "4.20.1") |
| 156 | + private Long userdataId; |
| 157 | + |
154 | 158 | ///////////////////////////////////////////////////// |
155 | 159 | /////////////////// Accessors /////////////////////// |
156 | 160 | ///////////////////////////////////////////////////// |
@@ -245,6 +249,10 @@ protected boolean isViewDetailsEmpty() { |
245 | 249 | return CollectionUtils.isEmpty(viewDetails); |
246 | 250 | } |
247 | 251 |
|
| 252 | + public Long getUserdataId() { |
| 253 | + return userdataId; |
| 254 | + } |
| 255 | + |
248 | 256 | public EnumSet<VMDetails> getDetails() throws InvalidParameterValueException { |
249 | 257 | if (isViewDetailsEmpty()) { |
250 | 258 | if (_queryService.ReturnVmStatsOnVmList.value()) { |
|
0 commit comments