Create a Post
Showing results for 
Search instead for 
Did you mean: 

add protocols to add-service-tcp

I'm looking for a way to add a service with the API with the standard protocols.  For example, add-service-tcp for port 8000 that uses the http protocol.  Instead of creating a generic tcp 8000 object, we'd like to create an http object that runs on 8000.

0 Kudos
1 Reply

This is possible in API version 1.1 which is a part of R80.10!

You have to call add-service-tcp command with the next payload:


  "match-by-protocol-signature": "true",

  "name": "http_on_8000",

  "port": "8000",

  "protocol": "http"


CLI example:

mgmt_cli -r true add service-tcp name http_on_8000 protocol http port 8000 match-by-protocol-signature true

Documentation reference:

0 Kudos