W3cubDocs

/Terraform

panos_service_object

This resource allows you to add/update/delete service objects.

Example Usage

resource "panos_service_object" "example" {
    name = "my_service"
    vsys = "vsys1"
    protocol = "tcp"
    description = "My service object"
    source_port = "2000-2049,2051-2099"
    destination_port = "32123"
    tags = ["internal", "dmz"]
}

Argument Reference

The following arguments are supported:

  • name - (Required) The service object's name.
  • vsys - (Optional) The vsys to put the service object into (default: vsys1).
  • description - (Optional) The service object's description.
  • protocol - (Required) The service's protocol. This should be tcp or udp.
  • source_port - (Optional) The source port. This can be a single port number, range (1-65535), or comma separated (80,8080,443).
  • destination_port - (Required) The destination port. This can be a single port number, range (1-65535), or comma separated (80,8080,443).
  • tags - (Optional) List of administrative tags.

© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/panos/r/service_object.html