How to: Configure Instance Specific Network Settings using CM APIsΒΆ

You can configure Network Settings for specific instances to which you want to deploy the inspection service. This will override the network settings specified in the template while creating the inspection service.

To configure instance specific network setting such as VLANs and L1 Networks using CM APIs:

  1. Send a POST request to the /v1/inspection-services endpoint:

    /api/v1/spaces/default/security/inspection-services/{inspection-service-id}/instances-config
    
  2. For the API body, use the following example, substituting appropriate values for the configuration you want to create.
    Following is the example to create new a VLAN on an instance:

    {
         "instances"   : [
             {
                 "instanceId"   :  "<uuid>",
                 "vlan" :  "vlan01" ,
                 "endpoints" : [
                     {
                         "endpointType" :  "L4BasicEndpoint" ,
                         "address" :  "10.20.30.40:0"
                     }
                 ]
             }
         ]
    }
    

    Following is the example to create new To VLAN and From VLAN on an instance.

    {
        "instances"   : [
            {
                "instanceId"   :  "<uuid>"
                "toVlan" :  "vlan01" ,
                "fromVlan" :  "vlan02" ,
                "endpoints" : [
                    {
                        "endpointType" :  "L4BasicEndpoint" ,
                        "address" :  "10.20.30.40:0"
                    }
                ]
            }
        ]
    }