コンテンツにスキップ

リファレンス / packet-filter

コマンド一覧

list

Usage
Usage:
  list [flags]

Aliases:
  list, ls, find, select

Flags:

  === Filter options ===

      --names strings   

  === Limit/Offset options ===

      --count int   (aliases: --max, --limit)
      --from int    (aliases: --offset)

  === Zone options ===

      --zone string   (*required) 

  === Input options ===

      --generate-skeleton   Output skeleton of parameters with JSON format (aliases: --skeleton)
      --parameters string   Input parameters in JSON format

  === Output options ===

      --format string         Output format in Go templates (aliases: --fmt)
  -o, --output-type string    Output format options: [table/json/yaml] (aliases: --out)
      --query string          Query for JSON output
      --query-driver string   Name of the driver that handles queries to JSON output options: [jmespath/jq]
  -q, --quiet                 Output IDs only

  === Parameter example ===

      --example   Output example parameters with JSON format

create

Usage
Usage:
  create [flags]

Flags:

  === Common options ===

      --name string          (*required) 
      --description string   

  === Packet-Filter-specific options ===

      --expressions string   (aliases: --rules)

  === Zone options ===

      --zone string   (*required) 

  === Input options ===

  -y, --assumeyes           Assume that the answer to any question which would be asked is yes
      --generate-skeleton   Output skeleton of parameters with JSON format (aliases: --skeleton)
      --parameters string   Input parameters in JSON format

  === Output options ===

      --format string         Output format in Go templates (aliases: --fmt)
  -o, --output-type string    Output format options: [table/json/yaml] (aliases: --out)
      --query string          Query for JSON output
      --query-driver string   Name of the driver that handles queries to JSON output options: [jmespath/jq]
  -q, --quiet                 Output IDs only

  === Parameter example ===

      --example   Output example parameters with JSON format
Parameter Examples
{
    "Zone": "tk1a | tk1b | is1a | is1b | tk1v",
    "Name": "example",
    "Description": "example",
    "Expressions": [
        {
            "Protocol": "http | https | tcp | udp | icmp | fragment | ip",
            "SourceNetwork": "192.0.2.1 | 192.0.2.0/24",
            "SourcePort": "1024 | 1024-2048",
            "DestinationPort": "1024 | 1024-2048",
            "Action": "allow | deny",
            "Description": "description"
        },
        {
            "Protocol": "tcp",
            "SourceNetwork": "",
            "SourcePort": "",
            "DestinationPort": "22",
            "Action": "allow",
            "Description": "allow ssh"
        },
        {
            "Protocol": "icmp",
            "SourceNetwork": "",
            "SourcePort": "",
            "DestinationPort": "",
            "Action": "allow",
            "Description": ""
        },
        {
            "Protocol": "tcp",
            "SourceNetwork": "",
            "SourcePort": "",
            "DestinationPort": "32768-61000",
            "Action": "allow",
            "Description": ""
        },
        {
            "Protocol": "udp",
            "SourceNetwork": "",
            "SourcePort": "",
            "DestinationPort": "32768-61000",
            "Action": "allow",
            "Description": ""
        },
        {
            "Protocol": "fragment",
            "SourceNetwork": "",
            "SourcePort": "",
            "DestinationPort": "",
            "Action": "allow",
            "Description": ""
        },
        {
            "Protocol": "ip",
            "SourceNetwork": "",
            "SourcePort": "",
            "DestinationPort": "",
            "Action": "deny",
            "Description": ""
        }
    ]
}

read

Usage
Usage:
  read { ID | NAME | TAG } [flags]

Aliases:
  read, show

Flags:

  === Zone options ===

      --zone string   (*required) 

  === Input options ===

      --generate-skeleton   Output skeleton of parameters with JSON format (aliases: --skeleton)
      --parameters string   Input parameters in JSON format

  === Output options ===

      --format string         Output format in Go templates (aliases: --fmt)
  -o, --output-type string    Output format options: [table/json/yaml] (aliases: --out)
      --query string          Query for JSON output
      --query-driver string   Name of the driver that handles queries to JSON output options: [jmespath/jq]
  -q, --quiet                 Output IDs only

  === Parameter example ===

      --example   Output example parameters with JSON format

update

Usage
Usage:
  update { ID | NAME | TAG }... [flags]

Flags:

  === Common options ===

      --name string          
      --description string   

  === Packet-Filter-specific options ===

      --expressions string   (aliases: --rules)

  === Zone options ===

      --zone string   (*required) 

  === Input options ===

  -y, --assumeyes           Assume that the answer to any question which would be asked is yes
      --generate-skeleton   Output skeleton of parameters with JSON format (aliases: --skeleton)
      --parameters string   Input parameters in JSON format

  === Output options ===

      --format string         Output format in Go templates (aliases: --fmt)
  -o, --output-type string    Output format options: [table/json/yaml] (aliases: --out)
      --query string          Query for JSON output
      --query-driver string   Name of the driver that handles queries to JSON output options: [jmespath/jq]
  -q, --quiet                 Output IDs only

  === Parameter example ===

      --example   Output example parameters with JSON format
Parameter Examples
{
    "Zone": "tk1a | tk1b | is1a | is1b | tk1v",
    "Name": "example",
    "Description": "example",
    "Expressions": [
        {
            "Protocol": "http | https | tcp | udp | icmp | fragment | ip",
            "SourceNetwork": "192.0.2.1 | 192.0.2.0/24",
            "SourcePort": "1024 | 1024-2048",
            "DestinationPort": "1024 | 1024-2048",
            "Action": "allow | deny",
            "Description": "description"
        },
        {
            "Protocol": "tcp",
            "SourceNetwork": "",
            "SourcePort": "",
            "DestinationPort": "22",
            "Action": "allow",
            "Description": "allow ssh"
        },
        {
            "Protocol": "icmp",
            "SourceNetwork": "",
            "SourcePort": "",
            "DestinationPort": "",
            "Action": "allow",
            "Description": ""
        },
        {
            "Protocol": "tcp",
            "SourceNetwork": "",
            "SourcePort": "",
            "DestinationPort": "32768-61000",
            "Action": "allow",
            "Description": ""
        },
        {
            "Protocol": "udp",
            "SourceNetwork": "",
            "SourcePort": "",
            "DestinationPort": "32768-61000",
            "Action": "allow",
            "Description": ""
        },
        {
            "Protocol": "fragment",
            "SourceNetwork": "",
            "SourcePort": "",
            "DestinationPort": "",
            "Action": "allow",
            "Description": ""
        },
        {
            "Protocol": "ip",
            "SourceNetwork": "",
            "SourcePort": "",
            "DestinationPort": "",
            "Action": "deny",
            "Description": ""
        }
    ]
}

delete

Usage
Usage:
  delete { ID | NAME | TAG }... [flags]

Aliases:
  delete, rm

Flags:

  === Zone options ===

      --zone string   (*required) 

  === Error handling options ===

      --fail-if-not-found   

  === Wait options ===

      --wait-for-release               
      --wait-for-release-timeout int   
      --wait-for-release-tick int      

  === Input options ===

  -y, --assumeyes           Assume that the answer to any question which would be asked is yes
      --generate-skeleton   Output skeleton of parameters with JSON format (aliases: --skeleton)
      --parameters string   Input parameters in JSON format

  === Output options ===

      --format string         Output format in Go templates (aliases: --fmt)
  -o, --output-type string    Output format options: [table/json/yaml] (aliases: --out)
      --query string          Query for JSON output
      --query-driver string   Name of the driver that handles queries to JSON output options: [jmespath/jq]
  -q, --quiet                 Output IDs only

  === Parameter example ===

      --example   Output example parameters with JSON format