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

  1. Create a CSV file in your local machine.

    circle-info

    Refer to the CSV File for Bulk Device section for details on the format of the CSV file.

  2. 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

  1. 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..

  2. Execute the Devices - Install API to install multiple device configurations in a Fabric-enabled LogPoint.

Sample API Requests and Responses for Adding Bulk Devices

  1. Create a CSV file in your local machine.

    Sample CSV File:

  2. Execute the Devices - UploadPublic API with the required parameters.

circle-info
  • Mention the file_name and Content-Type in the header of the request. The value of the Content-Type parameter must be application/octet-stream.

  • Browse the CSV file from your local storage to the API.

This step successfully uploads the CSV file in the Fabric Storage.

  1. Execute the Devices - ListPublicUploads API with the required parameters.

This step successfully lists the CSV file from the Fabric Storage.

  1. 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

circle-info

To edit previously configured devices, the CSV file must have id, device_name, device_ips, device_groups, log_collection_policies, distributed_collector, confidentiality, integrity, availability, and timezone in its header row.

Adding Devices with Syslog Collector

Uses Proxy

Use as Proxy

Last updated

Was this helpful?