File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed
api/src/main/java/org/apache/cloudstack/api
server/src/main/java/com/cloud/api/query Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -384,6 +384,7 @@ public class ApiConstants {
384384 public static final String SENT = "sent" ;
385385 public static final String SENT_BYTES = "sentbytes" ;
386386 public static final String SERIAL = "serial" ;
387+ public static final String SERVICE_IP = "serviceip" ;
387388 public static final String SERVICE_OFFERING_ID = "serviceofferingid" ;
388389 public static final String SESSIONKEY = "sessionkey" ;
389390 public static final String SHOW_CAPACITIES = "showcapacities" ;
Original file line number Diff line number Diff line change @@ -72,6 +72,10 @@ public class ManagementServerResponse extends BaseResponse {
7272 @ Param (description = "the running OS kernel version for this Management Server" )
7373 private String kernelVersion ;
7474
75+ @ SerializedName (ApiConstants .SERVICE_IP )
76+ @ Param (description = "the IP Address for this Management Server" )
77+ private String serviceIp ;
78+
7579 public String getId () {
7680 return this .id ;
7781 }
@@ -112,6 +116,10 @@ public Date getLastBoot() {
112116 return lastBoot ;
113117 }
114118
119+ public String getServiceIp () {
120+ return serviceIp ;
121+ }
122+
115123 public void setId (String id ) {
116124 this .id = id ;
117125 }
@@ -155,4 +163,8 @@ public void setLastBoot(Date lastBoot) {
155163 public void setKernelVersion (String kernelVersion ) {
156164 this .kernelVersion = kernelVersion ;
157165 }
166+
167+ public void setServiceIp (String serviceIp ) {
168+ this .serviceIp = serviceIp ;
169+ }
158170}
Original file line number Diff line number Diff line change @@ -4444,6 +4444,7 @@ protected ManagementServerResponse createManagementServerResponse(ManagementServ
44444444 mgmtResponse .setLastServerStart (mgmt .getLastJvmStart ());
44454445 mgmtResponse .setLastServerStop (mgmt .getLastJvmStop ());
44464446 mgmtResponse .setLastBoot (mgmt .getLastSystemBoot ());
4447+ mgmtResponse .setServiceIp (mgmt .getServiceIP ());
44474448 mgmtResponse .setObjectName ("managementserver" );
44484449 return mgmtResponse ;
44494450 }
You can’t perform that action at this time.
0 commit comments