This post is intended to explain how to create a new snapshot using the API. You may want to create the new snapshot with the existing settings, or with a different set of settings, if you wanted to have a reduced scope for example.
Create a new snapshot with different settings than the default ones
What if you wanted a snapshot for a smaller scope of your network. For this, you can use the API to start a new discovery, with some specific settings used for a specific discovery.
Here is an example of a body to use to perform a discovery with a new scope (“networks”), new seed devices (“seedList”) and not taking into account the Vendor API (Checkpoint, Meraki, AWS…) that you may have configured in your settings. All fields are optional, if not specified, the value from your settings will be used:
What settings can I use when creating a new snapshot?
There is a long list of what you can use in the request body to change the settings for this new discovery. The example above is probably enough for some use cases. If you wanted to change different settings, you can collect the settings of your IP Fabric’s instance via a GET on the endpoint https://host.domain/api/v1/settings
The response will look like this (this is just an extract of the JSON):