You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(If this were done for Device, then any interfaces which had been pre-created from the Device Type would be updated rather than created)
This sort of import could be done via the API. However as far as I can tell, the API doesn't support transactions, so the importer application would have to explicitly track changes and roll them back on error.
The text was updated successfully, but these errors were encountered:
jeremystretch
changed the title
Feature: structured import of VMs/Devices e.g. with JSON
Structured import of VMs/Devices e.g. with JSON
Sep 18, 2017
The CSV-formatted bulk import functions work with only one type of object at a time and are provided for convenience. Any bulk operations requiring more complex logic will need to be performed via the REST API (or directly via the CLI shell). As with most APIs, you'll need to handle errors on the client side accordingly.
Issue type
[X] Feature request
[ ] Bug report
[ ] Documentation
Environment
Description
Use case: I want to import VMs. I have an existing table of VMs with their IPv4 and IPv6 addresses.
Using CSV import, this would be a three-step affair:
Importing Devices requires steps 1 and 3, if the Device Type has been properly configured to create the interfaces.
So I am suggesting some sort of structured import which can create the related items at once, e.g.
(If this were done for Device, then any interfaces which had been pre-created from the Device Type would be updated rather than created)
This sort of import could be done via the API. However as far as I can tell, the API doesn't support transactions, so the importer application would have to explicitly track changes and roll them back on error.
The text was updated successfully, but these errors were encountered: