|
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; |
@@ -149,6 +150,9 @@ public class ListVMsCmd extends BaseListRetrieveOnlyResourceCountCmd implements |
149 | 150 | @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") |
150 | 151 | private Boolean showUserData; |
151 | 152 |
|
| 153 | + @Parameter(name = ApiConstants.USER_DATA_ID, type = CommandType.UUID, entityType = UserDataResponse.class, required = false, description = "the instances by userdata", since = "4.20.1") |
| 154 | + private Long userdataId; |
| 155 | + |
152 | 156 | ///////////////////////////////////////////////////// |
153 | 157 | /////////////////// Accessors /////////////////////// |
154 | 158 | ///////////////////////////////////////////////////// |
@@ -243,6 +247,10 @@ protected boolean isViewDetailsEmpty() { |
243 | 247 | return CollectionUtils.isEmpty(viewDetails); |
244 | 248 | } |
245 | 249 |
|
| 250 | + public Long getUserdataId() { |
| 251 | + return userdataId; |
| 252 | + } |
| 253 | + |
246 | 254 | public EnumSet<VMDetails> getDetails() throws InvalidParameterValueException { |
247 | 255 | if (isViewDetailsEmpty()) { |
248 | 256 | if (_queryService.ReturnVmStatsOnVmList.value()) { |
|
0 commit comments