Structure of the file importing custom web services (CSV format)
For each custom web service that can be imported or exported, this section defines the structure of a row that makes up the CSV file.
Importing/exporting custom web services
These services can be imported/exported in Objects > WEB SERVICES:
- Import custom services tab to import,
- List of web services tab to export (Export custom database menu).
Import CSV file: structure and limitations
-
Each line of the file is made up of several fields, all separated by commas,
-
Empty optional fields will be included between two commas,
-
The file must contain a blank line after the last entry.
#name,#ip/fqdn,#date,#revision,#comment
| Field | Description |
| Service name (mandatory) |
Text string meeting the following criteria:
|
| IP address or FQDN (mandatory) |
Public IPv4/IPv6 address or FQDN. An FQDN can contain only one wildcard * at the beginning or middle of its name. If a web service relies on several IP addresses or several FQDNs, the line that describes it must be duplicated as many times as the number of addresses IP or FQDNs that the service web contains. Only the optional information from the first line will be kept. |
| Date of revision (optional) |
Date and time of revision in YYYY/MM/DD or YYYY/MM/DD hh:mm format (e.g., 2022/10/15 10:30). |
| Revision number (optional) |
Revision number that may contain up to 3 digits: major.minor.patch (e.g., 10.2). |
| Comments (optional) | Free-form text string that can be placed between quotes if it contains commas. |
name1,1.1.1.1,2021/09/21 11:00,1.1.1,Simple case
name2,2.2.2.2,2021/12/31,2,"Comment, with comma"
name2,domain.tld,2022/01/01,3,"Date, revision and comment are discarded"
name3,*.newdomain.tld,,,No date and revision
There are limits as to the number of lines allowed in the import file:
|
Physical SNS firewalls |
Elastic Virtual Appliances (EVA) |
|||||||||||||||
|
|
There is a limit to the possible number of lines containing an FQDN with a wildcard * in the middle: 10% of the number of lines allowed in the import file.