Given a
self deployed enterprise portal
For example: https://gis1.victorvilleca.gov/portal/home/
gis1.victorvilleca.gov is your-government-domain
portal is your portal-web-adaptor
https://gis1.victorvilleca.gov/portal/home/
By knowing self hosted enterprise portal, how to find out their ESRI hosted arcgis online? and Esri hosted arcgis feature service?
Option 1
self deployed enterprise portal meta json is always:
https://<your-organization-domain>/portal/sharing/rest/portals/self?f=json
portal is your portal web adaptor name, default is portal
if your portal web adaptor use different name, you should use yours.
https://gis1.victorvilleca.gov/portal/sharing/rest/portals/self?f=json
esri hosted arcgis online is right there in
allowedRedirectUris field,
Option 2
Portal directory is always
https://<your-organization-domain>/portal/sharing/rest/portals/self
portal
is your enterprise portal web adaptor, by default is portal.
So in this case, it is https://gis1.victorvilleca.gov/portal/sharing/rest/portals/self
You just found this self hosted portal's counter part hosted on ESRI. which is called arcgis online or AGOL.
Beside that, you also can found this portal's admin's email address, if you have question want to ask, just email this contact. This email is active enforced by ESRI. It is good to use.
https://developers.arcgis.com/rest/users-groups-and-items/portal/
https://developers.arcgis.com/rest/users-groups-and-items/root/