Reading a Simulation's History
Simulation History Feature
The Simulation History feature is designed to automatically log events each time a simulation (api.endpoints.Simulation) is created and during key operations on the simulation such as adding a ZTP script or the enabling/disabling of automatic OOB.
Accessing Simulation History
To retrieve the history associated with a specific simulation, use the get_history method available on the Simulation object; this returns an Iterator[api.endpoints.History]. The following are optional filtering parameters that may be passed to the get_history method:
categoryactorsearchorderinglimitoffset
Immutability of History Instances
History instances are immutable and cannot be instantiated directly by clients. This ensures the integrity and consistency of the historical data. As a result, History instances may not be refreshed or deleted by clients.
Creating and listing History
Now that a simulation has been created and operations have been performed on the simulation, the history of the simulation may be retrieved and viewed.