Use the REST API to get the Devices from EM
We have Archer 6.1 and would like to get all the devices in the Archer EM through the REST API. I was able to get all the applications and identify the module id and report id as well. I was trying to use simplesearch through powershell and it is failing,
If anyone of you have sample code in powershell to perform the above task that would be great.
Unfortunately, the REST API does not have the ability to search or get all records for a given module, but the Web Services API does using the ExecuteSearch method. Check out the following KBs and links:
- 000032489 - How to search for records using the RSA Archer Web Services API method called ExecuteSearch
- How to use the Archer REST API and Web Services API with Windows PowerShell
- 000032481 - How to use the RSA Archer REST API with Windows PowerShell
- 000032488 - How to use the RSA Archer Web Services API with Windows PowerShell
- Archer Search tool
Thank you very much for the reply. It did help me resolve the issue. I was under the impression that we could get all the records through the REST API. With SOAP I was able to retrieve all the devices. Once again thanks for your help and clarification.
Just wanted to confirm that REST API (at the moment) does not support retrieving records that match a particular filter or search criteria, and the only way to specific records (e.g. Status = Active) is still to use the SOAP API?
WOqQnb8GPwApeAmB7Rtzj0cHbuMBcEMfvCQ3yTGCkD4= - Yes, that is correct. The REST API does not have search capability, but the Web Services API does using the https://community.rsa.com/docs/DOC-44200?sr=search&searchId=8aa65c0f-8540-45b7-8146-e95e17c26a35&searchIndex=0 or https://community.rsa.com/docs/DOC-43912?sr=search&searchId=d44a9a72-be9d-47b0-9a00-1102bf5834fd&searchIndex=4 methods.