Add Bulk Devices using Director Console API
The Director Console API uses CSV files to install multiple device configurations at once in a Fabric-enabled LogPoint.
Follow the steps mentioned below to add bulk devices using the Director Console API:
Create and Upload the CSV file in the Fabric Storage
Create a CSV file in your local machine.
Option A: Upload the CSV file and make it accessible to all users across all pools:
Execute the Devices - UploadPublic API with the required parameters.
Option B: Upload the CSV file and make it accessible to the users within a specific pool:
Execute the Devices - Upload API with the required parameters.
Install the Device Configurations in a Fabric-enabled LogPoint
List the CSV files.
Option A: List the CSV files uploaded in the private storage.
Execute the Devices - ListPrivateUploads API to list the CSV files from the private storage. Use the name of the required CSV file the file_name parameter of the Devices - Install API.
Option B: List the CSV files uploaded in the public storage.
Execute the Devices - ListPublicUploads API to list the CSV files from the public storage. Use the name of the required CSV file the file_name parameter of the Devices - Install API..
Execute the Devices - Install API to install multiple device configurations in a Fabric-enabled LogPoint.
Sample API Requests and Responses for Adding Bulk Devices
Create a CSV file in your local machine.
Sample CSV File:
Execute the Devices - UploadPublic API with the required parameters.
This step successfully uploads the CSV file in the Fabric Storage.
Execute the Devices - ListPublicUploads API with the required parameters.
This step successfully lists the CSV file from the Fabric Storage.
Execute the Devices - Install API to install multiple device configurations in a Fabric-enabled LogPoint.
This step successfully installs the devices in the Fabric-enabled LogPoint.
CSV File for Bulk Device
The CSV file consists of comma-separated values that define the configuration parameters and their respective values.
Consider the following points while creating a CSV file:
The first line of the CSV file must be a header row and the header names must be device_name, device_ips, device_groups, log_collection_policies, distributed_collector, confidentiality, integrity, availability, and timezone.
Note
While importing the devices via CSV, you can also configure their Syslog collectors.
To configure a device to use a proxy, you must add the uses_proxy, proxy_ip, hostname, and processpolicy fields in the header row and the value of uses_proxy for the corresponding device must be TRUE.
To configure a device to be used as a proxy, you must add the use_as_proxy, charset, and parser fields in the header row and the value of use_as_proxy for the corresponding device must be TRUE.
Refer to the Director Console API Documentation for details on the parameters.
If a parameter has multiple entries, separate the entries with a semi-colon (;).
You can obtain the value of the required parameters using their respective API.
Refer to the Importing Devices via a CSV file for more details.
Sample CSV files
Adding Bulk Devices
Adding Devices with Syslog Collector
Uses Proxy
Use as Proxy
Last updated
Was this helpful?