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 Web Application Firewall
Results will update as you type.
  • How to Update Your Notification Email Addresses
  • What's New in the Barracuda Web Application Firewall
  • 30-Day Evaluation Guide - Barracuda Web Application Firewall
  • Getting Started
  • Deployment
  • Services
  • Securing HTTP/HTTPS Traffic
  • Advanced Bot Protection
  • Client-Side Protection
  • API Security
  • Advanced Security
  • IP Reputation-Based Filters
  • Tuning Security Rules
  • Barracuda Active Threat Intelligence
  • Access Control
  • Traffic Management
  • Configuring User-Defined Patterns
  • Logging, Reporting and Monitoring
  • High Availability
  • Networking
  • System Administration and Maintenance
  • Certificate Management
  • Centralized Management of the Barracuda Web Application Firewall
  • Attacks Description - Action Policy
  • REST API
    • REST API Version 1 (v1)
      • Advanced Security and Clickjacking Protection
      • Allow/Deny Rules
      • Certificates
      • Clustering
      • Content Rule
      • Custom Parameter Class and Custom Attack Types
      • Logs
      • Rule Group Server
      • Security Policy
      • Server
      • Service Group
      • Status Codes and Error Responses
      • Trusted Hosts
      • Virtual Service
      • Vsites
      • Website Profiles
    • REST API Version 3 (v3)
    • How to Generate API Calls
    • File-Based Configuration Management for Barracuda Web Application Firewall
    • Using Postman for Barracuda Web Application Firewall APIs
    • How to Enable Dual-Factor Authentication for the Barracuda Web Application Firewall Web Interface Access
    • REST API to Manage Multi-IP on Azure and AWS Cloud Deployments
  • Common Web Application Attacks
  • How to Set Up Barracuda Cloud Control
  • End of Support and End of Life Information
  • Critical Vulnerabilities in Web Application
  • Barracuda Advanced Bot Protection Cloud Infrastructure Upgrade Information
  • Barracuda WAF 12.2 Firmware Hardened to Augment Security of Product Features

    You‘re viewing this with anonymous access, so some content might be blocked.
    /
    Service Group
    Published Jul 05, 2021

    Service Group

    Jul 05, 2021
    Subscribe

    A service group is a container with multiple services. You can use service groups for grouping services. For example, all HTTP services can be within a service group. 

    Creating a Service Group

    URL: /v1/vsites/{vsite_id}/service_groups

    Method: POST

    Description: Creates a service group with the given name under the specified Vsite.

    Parameter Name

    Data Type

    Mandatory

    Description

    Input Parameters:

     

     

     

    name

    Alphanumeric

    Yes

    A name for the service group that needs to be created.

    Example:

    Request :

    curl http://192.168.0.1:8000/restapi/v1/vsites/default/service_groups -u 'eyJldCI6IjEzODXNlciI6ImFkbWluIn0=\n:' -X POST -H Content-Type:application/json -d '{"name":"demo_service_gp"}'

    Response:

    {"id":"demo_service_gp","token":"eyJldCI6IjEzODM1YmE4IiwidXNlciI6ImFkbWluIn0=\n"}

    Retrieving Service Groups

    URL:  /v1/vsites/{vsite_id}/service_groups

              /v1/vsites/{vsite_id}/service_groups/{service_group_id}

    Method: GET

    Description: Lists all service groups if “service_group_id” is not specified.

    Parameter Name

    Data Type

    Mandatory

    Description

    Input Parameters:

     

     

     

    parameters

    Alphanumeric

    Optional

    Any specific parameter name that needs to be retrieved. See Example 2.

    Example1:

     Request:

    curl http://192.168.0.1:8000/restapi/v1/vsites/default/service_groups/demo_service_gp -u 'eyJldCI6IjEzM2I1NTAxIlciI6ImFkbWluIn0=\n:' -X GET

    Response:

    {"name":"demo_service_gp","id":"demo_service_gp","token":"eyJldCkbWluIn0=\n","virtual_services":[]}

    Example 2:

    Request:

    curl http://192.168.0.1:8000/restapi/v1/vsites/default/service_groups/demo_service_gp -u 'eyJldCI6IjE1ZGZlZTIwIiNlciI6ImFkbWluIn0=\n:' -X GET -G -d parameters=name

    Response:

    {"name":"demo_service_gp","id":"demo_service_gp","token":"eyJldCI6IjE1MDQzMjFkbWluIn0=\n"}

    Updating a Service Group

    URL: /v1/vsites/{vsite_id}/service_groups/{service_group_id}

    Method: PUT

    Description: Updates the given service group with the given value.

    Parameter Name

    Data Type

    Mandatory

    Description

    Input Parameters:

     

     

     

    new_name

    Alphanumeric

    Yes

    A new name for the service group.

    Example:

    Request:

    curl http://192.168.0.1:8000/restapi/v1/vsites/default/service_groups/demo_service_gp -u 'eyJldCIM2I1NTAxIiwidXNlciI6ImFkbWluIn0=\n:' -X PUT -H Content-Type:application/json -d '{"new_name":"new_service_gp"}'

    Response:

    {"id":"demo_service_gp","token":"eyJldCI6IjNTk1N2VmIiwidXNlciI6ImFkbWluIn0=\n"}

    Deleting a Service Group

    URL: /v1/vsites/{vsite_id}/service_groups/{service_group_id}

    Method: DELETE

    Description: Deletes the given service group.

    Example:

    Request:

    curl http://192.168.0.1:8000/restapi/v1/vsites/default/service_groups/new_service_gp -u  'eyJldCIM2I1NTAxIiwidXNlciI6ImFkbWluIn0=\n:' -X DELETE

    Response:

    {"msg":"Successfully deleted","token":"eyJldYzNiNDk0IiwidXNlciI6ImFkbWluIn0=\n"}


    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": 12, "requestCorrelationId": "df54e8cd89854aafb50f2e8b159ec4f8"}