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

WAF as a Service
Results will update as you type.
  • What's New in the Barracuda WAF-as-a-Service
  • Understanding the Global Infrastructure
  • Application Security Insights
  • Getting Started
  • Configuring WAF-as-a-Service
  • Managing Your Account
  • Components
  • Tips and Troubleshooting
  • Reports
  • Barracuda WAF-as-a-Service and CloudGen Access
  • Critical Vulnerabilities
  • WaaS API Version 4
    • WaaS API Version 2
  • Traffic Evaluation in Passive Mode
  • Barracuda WAF-as-a-Service Vulnerability Database
  • LLM Security

    You‘re viewing this with anonymous access, so some content might be blocked.
    /
    WaaS API Version 4
    Published Dec 20, 2024

    WaaS API Version 4

    Subscribe

    Accessing the API

    This section describes how to invoke a REST API call on the Barracuda WAF-as-a-Service.

    The REST API supports HTTPS URI requests. The documentation for the API is available at:
    Barracuda API Documentation

    API Endpoint

    The base URL for accessing the Barracuda WAF-As-A-Service is:

    'https://api.waas.barracudanetworks.com/v4/waasapi/'

    Combine the base URL with the required API resource to make a call. Example: /api_login or /applications/.

    Login Access Token

    To use the Barracuda WAF-as-a-Service REST API, a login access token is required for authentication. Login credentials with admin privileges or a role-based administrator with restricted permissions can be used.

    The login request must include the username and password to generate the token. HTTPS request examples are provided below for reference:

    Once the token is fetched, include the token as a value to the ‘auth-api’ header in subsequent API calls.

    Example:
    To complete the login to WAAS use the /api_login resource:

    'https://api.waas.barracudanetworks.com/v4/waasapi/api_login'

    Curl Example:

    curl -X 'POST' \
      'https://api.waas.barracudanetworks.com/v4/waasapi/api_login' \
      -H 'accept: application/json' \
      -H 'Content-Type: application/x-www-form-urlencoded' \
      -d 'email=<account email address>&password=<account password>'

    The API response to such a request with the right credentials would be as follows:

    {"key": "abcdxxxxxxxxxrfT4OMb1KxEdUIOxxXRtcl9hCV232GH4xxxxxxxxxxWE5KlurJxs5QRP9.24p57d35a7bba98546r834tyy35dba9098765a355783aefb", "expiry": 1722238954}

    To initiate API calls to WAF-as-a-Service, subsequent requests should include the value of the JSON key called “key” in the API request header “auth-api”

    Example:

    curl -X 'POST' \
    'https://api.waas.barracudanetworks.com/v2/waasapi/applications/' \
    -H 'accept: application/json' \
    -H 'Content-Type: application/json' \
    -H 'auth-api: abcdxxxxxxxxxrfT4OMb1KxEdUIOxxXRtcl9hCV232GH4xxxxxxxxxxWE5KlurJxs5QRP9.24p57d35a7bba98546r834tyy35dba9098765a355783aefb ' \
    -d '{
    "applicationName": "new app",
    "backendPort": 443,
    "useHttp": true,
    }'

     


    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": 9, "requestCorrelationId": "61fe4f9168b840958a0dec66d372da07"}