Skip to content

Commit 121335d

Browse files
nvazquezLocharla, Sandeep
authored andcommitted
Add ability to filter by version for listHosts and listMgmtServers APIs (apache#12472)
* Add ability to filter by version for listHosts and listMgmtServers APIs * Address review comment * Fix listMgmtServers API
1 parent 55b70de commit 121335d

File tree

1 file changed

+8
-0
lines changed
  • api/src/main/java/org/apache/cloudstack/api/command/admin/management

1 file changed

+8
-0
lines changed

api/src/main/java/org/apache/cloudstack/api/command/admin/management/ListMgmtsCmd.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ public class ListMgmtsCmd extends BaseListCmd {
4545
since = "4.20.1.0")
4646
private Boolean peers;
4747

48+
@Parameter(name = ApiConstants.VERSION, type = CommandType.STRING,
49+
description = "the version of the management server", since = "4.20.3")
50+
private String version;
51+
4852
/////////////////////////////////////////////////////
4953
/////////////////// Accessors ///////////////////////
5054
/////////////////////////////////////////////////////
@@ -61,6 +65,10 @@ public Boolean getPeers() {
6165
return BooleanUtils.toBooleanDefaultIfNull(peers, false);
6266
}
6367

68+
public String getVersion() {
69+
return version;
70+
}
71+
6472
/////////////////////////////////////////////////////
6573
/////////////// API Implementation///////////////////
6674
/////////////////////////////////////////////////////

0 commit comments

Comments
 (0)