Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device.
Atlassian cookies and tracking notice, (opens new window)
Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
🔍 Discover Our Product Documentation

Barracuda CloudGen Access
Results will update as you type.
  • Getting Started
  • Deployment
  • CloudGen Access Console
  • CloudGen Access Application
  • CloudGen Access User Directory Connector
  • CloudGen Access Proxy
  • CloudGen Access CLI Client
    • How to Set the CloudGen Access Console Endpoint
    • How to Use the Admin API
    • Batch Mode Operations
      • Add and Edit Users in Batch Mode
      • Add and Edit Groups in Batch Mode
      • Add and Edit Resources in Batch Mode
      • Add and Edit Proxies in Batch Mode
      • Add and Edit Policies in Batch Mode
      • Add Domains in Batch Mode
    • Using access-cli
    • Configuration File
    • Credentials File
  • FAQ
  • Best Practices
  • Maintenance
  • Troubleshooting
  • Release Notes
  • Glossary
  • Security Advisories

    You‘re viewing this with anonymous access, so some content might be blocked.
    /
    Add Domains in Batch Mode
    Published Jan 07

    Add Domains in Batch Mode

    Jan 07, 2026
    Subscribe

    access-cli supports adding domains in batch mode, importing data from JSON or CSV files. This operation uses the common batch mode flags.

    • JSON files should contain an array of objects, each containing the fields for each domain you wish to add.

    • CSV files should be comma-separated. They must contain a header, specifying the fields and their order, followed by the records (one per line).

    Fields

    The expected fields for each format are as follows:

    JSON Field Name

    JSON Type

    CSV Field Name

    Example

    Description

    Mandatory

    name

    string

    Name

    example.com

    Domain name

    Yes

    asset_source_id

    string

    AssetSourceID

    d1662335-f4a7-4325-932a-0d0dfc7951f0

    Asset Source ID

    Yes

    category

    string

    Category

    domain

    Must be domain

    Yes

    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 Domains
    JSON
    [ { "name": "one.example.com", "category": "domain", "asset_source_id": "f0968915-e227-404b-8ddb-9ac76b8b8be3" }, { "name": "another.example.com", "category": "domain", "asset_source_id": "94173764-605f-4cd0-b34f-387439667569" } ]

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

    CSV
    Name,AssetSourceID,Category one.example.com,f0968915-e227-404b-8ddb-9ac76b8b8be3,domain another.example.com,94173764-605f-4cd0-b34f-387439667569,domain

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


    We value your feedback.
    If you have questions, suggestions, or feedback on our documentation, contact the Campus Product Documentation team.
    For general product inquiries or technical support, please contact the global Barracuda Support team.

    {"serverDuration": 11, "requestCorrelationId": "c5159cb2711b419693f05f4b22f3723a"}