diff --git a/api/src/com/cloud/api/response/DomainResponse.java b/api/src/com/cloud/api/response/DomainResponse.java index 5fcfff3f912..87a3e87f485 100644 --- a/api/src/com/cloud/api/response/DomainResponse.java +++ b/api/src/com/cloud/api/response/DomainResponse.java @@ -44,6 +44,9 @@ public class DomainResponse extends BaseResponse { @SerializedName(ApiConstants.NETWORK_DOMAIN) @Param(description="the network domain") private String networkDomain; + @SerializedName(ApiConstants.PATH) @Param(description="the path of the domain") + private String path; + public Long getId() { return id.getValue(); } @@ -95,5 +98,13 @@ public class DomainResponse extends BaseResponse { public void setNetworkDomain(String networkDomain) { this.networkDomain = networkDomain; } + + public String getPath() { + return path; + } + + public void setPath(String path) { + this.path = path; + } } diff --git a/server/src/com/cloud/api/ApiResponseHelper.java b/server/src/com/cloud/api/ApiResponseHelper.java index 68fd15a3f5f..425340f5f00 100755 --- a/server/src/com/cloud/api/ApiResponseHelper.java +++ b/server/src/com/cloud/api/ApiResponseHelper.java @@ -386,6 +386,7 @@ public class ApiResponseHelper implements ResponseGenerator { domainResponse.setLevel(domain.getLevel()); domainResponse.setNetworkDomain(domain.getNetworkDomain()); domainResponse.setParentDomainId(domain.getParent()); + domainResponse.setPath(domain.getPath()); if (domain.getParent() != null) { domainResponse.setParentDomainName(ApiDBUtils.findDomainById(domain.getParent()).getName()); }