I would like to be able to query the Sandbox configuration data. For example, if you go to the "Sandboxes" link in the setup of your production org, I want to be able to query that info (Name, Type, Location, Current Org Id, etc) via soql or via an API call.
Does anyone know if there's a way this can be done? Tooling API, metadata API, native soql, etc?
Best Answer
Maybe not directly what you are looking for, but I stumbled across the Sandbox EventLogFile.
Description from the docs:
Of particular interest were some of the fields that it captures:
The catch here is that Event Logs are a paid feature. Still, it may be useful if you can get it. When available, you can access it with both the REST and SOAP apis.