<< Click to Display Table of Contents >> Get a list of all the dashboard and dashboard folders in the product |
![]() ![]() ![]() |
Request address |
http://ip:port/bi/api?action=updateDbTree&token=xxxx |
|
Request message |
Request parameter |
required parameter:xmlData(required) <?xml version="1.0" encoding="UTF-8"?> <info> <user>admin</user> </info> |
parametric description |
user(optional) For the target user you want to view. |
|
Sample |
function updateDbTree () { var xml = getXml(); $.post("http://" + ip + ":" + port + "/" + project + "/api?action= updateDbTree&token=xxxx ", {xmlData :xml}, function(result) { writeXml(result); }); } |
|
Response message |
Response result
|
1)Successful operation <?xml version="1.0" encoding="utf-8"?> <results> <assetref> <name>TopN</name> <path>dianxinggongnengyanshi/TopN</path> <lastModified>2016-01-28 07:32:58</lastModified> <type>db</type> <url>http://localhost:8080/testapi/Viewer?proc=1&action=viewer&db=!5178!!578b!!529f!!80fd!!6f14!!793a!%2fTopN.db</url> </assetref> <assetref> <name>gexinghuaTooltip_neirong</name> <path>dianxinggongnengyanshi/baobiaojiantiaozhuan/gexinghuaTooltip_neirong</path> <lastModified>2016-01-28 07:32:58</lastModified> <type>db</type> <url>Url is too long, omitted</url> </assetref> <assetref> <name>dianxinggongnengyanshi</name> <path>dianxinggongnengyanshi</path> <lastModified>1970-01-01 08:00:00</lastModified> <type>dbfolder</type> <url>…</url> </assetref> </results> 2)Operation failure <?xml version="1.0" encoding="UTF-8"?> <results> <result> <level>6</level><message>Incorrect login name or password.</message> </result> </results> or <?xml version="1.0" encoding="UTF-8"?> <results> <result><level>6</level> <message>You have no access to other's data.</message> </result> </results> |
Result description |
The response result information is xml. direct parse. 1) the name type path, lastModified, and url. respectively for each dashboard or dashboard folder are listed below assetref. 2) level return type, different values represent different return status, see Appendix. 3) If a non-administrator user wants to view the data information of another user, the operation fails②. |