mirror of https://github.com/apache/cloudstack.git
Add service ip to listManagementServers API response (#7374)
This commit is contained in:
parent
cfee78e07c
commit
17b8631615
|
|
@ -384,6 +384,7 @@ public class ApiConstants {
|
|||
public static final String SENT = "sent";
|
||||
public static final String SENT_BYTES = "sentbytes";
|
||||
public static final String SERIAL = "serial";
|
||||
public static final String SERVICE_IP = "serviceip";
|
||||
public static final String SERVICE_OFFERING_ID = "serviceofferingid";
|
||||
public static final String SESSIONKEY = "sessionkey";
|
||||
public static final String SHOW_CAPACITIES = "showcapacities";
|
||||
|
|
|
|||
|
|
@ -72,6 +72,10 @@ public class ManagementServerResponse extends BaseResponse {
|
|||
@Param(description = "the running OS kernel version for this Management Server")
|
||||
private String kernelVersion;
|
||||
|
||||
@SerializedName(ApiConstants.SERVICE_IP)
|
||||
@Param(description = "the IP Address for this Management Server")
|
||||
private String serviceIp;
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
|
@ -112,6 +116,10 @@ public class ManagementServerResponse extends BaseResponse {
|
|||
return lastBoot;
|
||||
}
|
||||
|
||||
public String getServiceIp() {
|
||||
return serviceIp;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
|
@ -155,4 +163,8 @@ public class ManagementServerResponse extends BaseResponse {
|
|||
public void setKernelVersion(String kernelVersion) {
|
||||
this.kernelVersion = kernelVersion;
|
||||
}
|
||||
|
||||
public void setServiceIp(String serviceIp) {
|
||||
this.serviceIp = serviceIp;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4444,6 +4444,7 @@ public class QueryManagerImpl extends MutualExclusiveIdsManagerBase implements Q
|
|||
mgmtResponse.setLastServerStart(mgmt.getLastJvmStart());
|
||||
mgmtResponse.setLastServerStop(mgmt.getLastJvmStop());
|
||||
mgmtResponse.setLastBoot(mgmt.getLastSystemBoot());
|
||||
mgmtResponse.setServiceIp(mgmt.getServiceIP());
|
||||
mgmtResponse.setObjectName("managementserver");
|
||||
return mgmtResponse;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue