Export Dashboard from the tenant using REST call
search cancel

Export Dashboard from the tenant using REST call

book

Article ID: 404674

calendar_today

Updated On:

Products

Network Observability

Issue/Introduction

When logged in as a tenant user and attempt to export a dashboard from the tenant using the REST call

pc/center/webservice/dashboards/{page number}
At this point, I encounter the XML parsing error mentioned above.
 
 

Received below  error :

<div class="alert alert-error">Unexpected character (&) at position 0</div>

<pre>

            <span class="parse-error">&amp;</span>lt;error&amp;gt;

              The requested page cannot be exported - page does not belong to tenant Default Tenant&amp;lt;/error&amp;gt;

</pre>

 

How can I bypass the tenant issue ?

Environment

24.3.x

Cause

Global Tenant user will not be able to export a tenant dashboard
Only a tenant admin user defined within the tenant can export the dashboards.

Resolution

1. In rest calls we cannot use proxy 

2. only local or LDAP with an administrator role accounts can access Portal REST

only way is to create a local admin account in each tenant, and use that for rest creds.