get Attribute Value form configuration element vRO

var configurationElementPath = "<Folder>/"+tenant;
var configurationElementName = "element";
var attributeName = "RepoRestHost";
var category = Server.getConfigurationElementCategoryWithPath(configurationElementPath);
var elements = category.configurationElements;
for each ( var element in elements) {
    if (element.name == configurationElementName) {
       var configurationElement = element;
    }
}
AttributeValue = configurationElement.getAttributeWithKey(attributeName).value;
Post a Comment (0)
Previous Post Next Post