Get the dashboard basic information

<< Click to Display Table of Contents >>

Current:  System Integration > WebAPI 

Get the dashboard basic information

Previous pageReturn to chapter overviewNext page

Request address

http://ip:port/bi/api?action=getDBInfo&token=xxxx

Request message

Request parameter

required parameter:xmlData (required)

<?xml version="1.0" encoding="UTF-8"?>

<info>

  <dbpath>dianxinggongnengyanshi/table</dbpath>

</info>

parametric description

Parameter is node information :

1) dbpath(required):The path of the dashboard

Sample

function getDBInfo() {

        var xml = getXml();

        $.post("http://" + ip + ":" + port + "/" + project + "/api?action=getDBInfo&token=xxxx",

           {xmlData : xml},

           function(result) {

           writeXml(result);

        });

     }

Response message

Response result

 

1) Successful operation

<?xml version="1.0" encoding="UTF-8"?>

<dbinfo>

  <name>table</name>

  <path>dianxinggongnengyanshi/table</path>

  <lastModified>2017-09-26 18:22:35</lastModified>

  <url>http://192.168.10.248:8085/bi/Viewer?proc=1&amp;action=viewer&amp;db=!5178!!578b!!529f!!80fd!!6f14!!793a!!2f!!8868!!683c!</url>

</dbinfo>

Result description

The response result information is xml. direct parse.

1) name : The name of the dashboard

2) Path: the path to the dashboard

3)Last modified: last revision time for the dashboard

4)Url: the server request address for the dashboard. To access the dashboard through this url, you need to open a new browser and access it.