[Dev] [DS] Get number of dashboards created

2015-12-29 Thread Udara Rathnayake
Hi All,

Do we have a better way to $subject, other than following?

<%
var carbon = require('carbon');
var url = 'https://localhost:9443/admin/services/';
var server = new carbon.server.Server(url);
var options = {username: 'admin',  domain: 'carbon.super' , tenantId:
-1234};
var registry = new carbon.registry.Registry(server, options);

var resource = registry.get('/_system/config/ues/dashboards');
print(resource.content.length);
%>

-- 
Regards,
UdaraR
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DS] Get number of dashboards created

2015-12-29 Thread Manuranga Perera
No, currently this is the only way. We don't have a comprehensive api yet.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev