While using pc webservice to get list of devices it just return data aggrigator device.

Document ID : KB000115340
Last Modified Date : 19/09/2018
Show Technical Document Details
Issue:
While using pc webservice to get list of devices it just return data aggrigator device .
Resolution:
When you call <CAPC>8181/pc/center/webservice/devices as the admin user it searches the default tenant since the admin users assigned tenant is the "Default Tenant" So if you have multiple tenants you will need to list by tenant. 

To get a list devices for a specific tenant either:
1. Use a user from the tenant you want to list in authorization header of the web services request
2. go to http://:8181/pc/center/webservice/tenants and get the tenantID of the tenant you want to view devices for. Then place that tenantID in the following URL it will give you the devices on that tenant.
http://<CAPC>:8181/pc/center/webservice/devices/tenant/tenantItemId/