Hi Mike,
I do the same thing, using the IdentityNow private APIs. Note that these APIs are not supported, use at your own risk! I do not believe there is currently a publically supported API to do the same thing.
trigger aggregation:
https://{{orgname}}.api.identitynow.com/cc/api/source/loadEntitlements/{{sourceId}}
retrieve taskId from response:
$.task.id
get task status:
https://{{orgname}}.api.identitynow.com/cc/api/taskResult/get/{{taskId}}
get status from:
$.completionStatus = “Success” or “Warning”
Note from my experience as well, if you’re using search to find these entitlements after they’re loaded, they can take a while to appear in the search index.
Hope this helps!