It seems like your browser didn't download the required fonts. Please revise your security settings and try again.
Barracuda CloudGen Access

Add and Edit Proxies in Batch Mode

  • Last updated on

access-cli supports adding and editing proxies in batch mode, importing data from JSON or CSV files. Batch operations on proxies use the common batch mode flags.

  • JSON files should contain an array of objects, each containing the fields for each proxy you wish to add or edit.
  • CSV files should be comma-separated. They must contain a header, specifying the fields and their order, followed by the records (one per line).

When editing proxies, unspecified non-mandatory fields remain unchanged.

Fields

The expected fields for each format are as follows:

JSON Field NameJSON TypeCSV Field NameExampleDescriptionMandatory
idstringID74bf962e-2082-4f89-ac07-49fb792e09ffID of the proxy to edit.
Used only when editing
When editing
namestringNameGCN ProxyName of the proxyWhen adding
locationstringLocationUS-EastLocation of the proxyNo
hoststringHostmyproxy.example.comHost of the proxyWhen adding
portstring (adding) / integer (editing)Port9000Port of the proxyWhen adding

File Examples

Field order can be different from what is shown in the examples, and non-mandatory fields can be omitted. When using CSV, make sure to specify the correct field order in the header, and to maintain the order and number of fields consistent throughout each line.

Adding Proxies
JSON
[
{
"name": "One Proxy", "location": "US-East",
"host": "phost1.example.com", "port": "8080"
},
{
"name": "Another Proxy", "location": "EU-Central",
"host": "phost2.example.com", "port": "9001"
}
]

$ access-cli proxies add --from-file=example.json

CSV
Name,Location,Host,Port
One Proxy,US-East,phost1.example.com,8080
Another Proxy,EU-Central,phost2.example.com,9001

$ access-cli proxies add --from-file=example.csv --file-format=csv

Editing Proxies
JSON
[
{
"id": "1a012898-64a4-49bd-81cf-f240811bc5a7",
"name": "One Proxy", "location": "US-East",
"host": "phost1.example.com", "port": 9000
},
{
"id": "bd7b5ec9-30ba-4e18-9513-a58f7d156096",
"name": "Different Proxy", "location": "EU-Central",
"host": "newproxy.example.com", "port": 10100
}
]

$ access-cli proxies edit --from-file=example.json

CSV
ID,Name,Location,Host,Port
1a012898-64a4-49bd-81cf-f240811bc5a7,One Proxy,US-East,phost1.example.com,9000
bd7b5ec9-30ba-4e18-9513-a58f7d156096,Different Proxy,EU-Central,newproxy.example.com,10100

$ access-cli proxies edit --from-file=example.csv --file-format=csv