How to use the API to get Site listing with list of devices that are assigned to the site.
Release : 3.6, 3.7, DX Netops 20.2
Component : IM Reporting / Admin / Configuration
For this you can use the CAPC/Portal Group rest service:
https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/performance-management/3-7/apis/performance-center-rest-web-services/groups-web-service.html
The documentation outlines how to get the id of the group, and then once you have that you can get the items as in the following example:
http://:8181/pc/center/webservice/groups/groupItemId/ITEMIDHERE/items
You may need to adjust the protocol and port if you are using https for example.