Documentation

panos_service - create a service object

New in version 2.3.

Synopsis

  • Create a service object. Service objects are fundamental representation of the applications given src/dst ports and protocol

Options

parameter required default choices comments
commit
no True
commit if changed
ip_address
yes
IP address (or hostname) of PAN-OS device
password
yes
password for authentication
port
yes
destination port
protocol
yes
protocol for the service, should be tcp or udp
service_name
yes
name of the service
source_port
no None
source port
username
no admin
username for authentication

Examples

# Creates service for port 22
  - name: create SSH service
    panos_service:
      ip_address: "192.168.1.1"
      password: "admin"
      service_name: "service-tcp-22"
      protocol: "tcp"
      port: "22"

Status

This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.

Support

This module is community maintained without core committer oversight.

For more information on what this means please read Module Support

For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Helping Testing PRs and Developing Modules.