netgate-host-acl API (24.02)

This YANG module provides a data model for host ACL data.

Copyright 2019-2020 Rubicon Communications, LLC.

host-config

returns netgate.host.acl.HostConfig

get /data/netgate-host-acl:host-config

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config

Host configuration parameters.

Responses

200

netgate.host.acl.HostConfig

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-host-acl:host-config-wrapper":
    {
    }
}

creates netgate.host.acl.HostConfig

post /data/netgate-host-acl:host-config

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config

Host configuration parameters.

Request Body schema: application/yang-data+json

netgate.host.acl.HostConfig to be added to list

netgate-host-acl:host-config
object (netgate.host.acl.HostConfig)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-host-acl:host-config":
    {
    }
}

creates or updates netgate.host.acl.HostConfig

put /data/netgate-host-acl:host-config

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config

Host configuration parameters.

Request Body schema: application/yang-data+json

netgate.host.acl.HostConfig to be added or updated

netgate-host-acl:host-config-wrapper
object (netgate.host.acl.HostConfigWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-host-acl:host-config-wrapper":
    {
    }
}

removes netgate.host.acl.HostConfig

delete /data/netgate-host-acl:host-config

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config

Host configuration parameters.

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

returns netgate.host.acl.hostconfig.Security

get /data/netgate-host-acl:host-config/security

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security

Host security configuration parameters.

Responses

200

netgate.host.acl.hostconfig.Security

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-host-acl:security-wrapper":
    {
    }
}

creates netgate.host.acl.hostconfig.Security

post /data/netgate-host-acl:host-config/security

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security

Host security configuration parameters.

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.Security to be added to list

security
object (netgate.host.acl.hostconfig.Security)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "security":
    {
    }
}

creates or updates netgate.host.acl.hostconfig.Security

put /data/netgate-host-acl:host-config/security

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security

Host security configuration parameters.

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.Security to be added or updated

netgate-host-acl:security-wrapper
object (netgate.host.acl.hostconfig.SecurityWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-host-acl:security-wrapper":
    {
    }
}

removes netgate.host.acl.hostconfig.Security

delete /data/netgate-host-acl:host-config/security

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security

Host security configuration parameters.

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

returns netgate.host.acl.hostconfig.security.HostAcls

get /data/netgate-host-acl:host-config/security/host-acls

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls

Host access lists (ACLs).

Responses

200

netgate.host.acl.hostconfig.security.HostAcls

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-host-acl:host-acls-wrapper":
    {
    }
}

creates netgate.host.acl.hostconfig.security.HostAcls

post /data/netgate-host-acl:host-config/security/host-acls

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls

Host access lists (ACLs).

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.HostAcls to be added to list

host-acls
object (netgate.host.acl.hostconfig.security.HostAcls)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "host-acls":
    {
    }
}

creates or updates netgate.host.acl.hostconfig.security.HostAcls

put /data/netgate-host-acl:host-config/security/host-acls

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls

Host access lists (ACLs).

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.HostAcls to be added or updated

netgate-host-acl:host-acls-wrapper
object (netgate.host.acl.hostconfig.security.HostAclsWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-host-acl:host-acls-wrapper":
    {
    }
}

removes netgate.host.acl.hostconfig.security.HostAcls

delete /data/netgate-host-acl:host-config/security/host-acls

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls

Host access lists (ACLs).

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

creates netgate.host.acl.hostconfig.security.hostacls.HostAcl

post /data/netgate-host-acl:host-config/security/host-acls/host-acl

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl

The list of configured host ACLs.

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.HostAcl to be added to list

host-acl
object (netgate.host.acl.hostconfig.security.hostacls.HostAcl)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "host-acl":
    {
    }
}

returns netgate.host.acl.hostconfig.security.hostacls.HostAcl

get /data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}

The list of configured host ACLs.

path Parameters
acl-name
required
string

Id of host-acl

Responses

200

netgate.host.acl.hostconfig.security.hostacls.HostAcl

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-host-acl:host-acl-wrapper":
    {
    }
}

creates or updates netgate.host.acl.hostconfig.security.hostacls.HostAcl

put /data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}

The list of configured host ACLs.

path Parameters
acl-name
required
string

Id of host-acl

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.HostAcl to be added or updated

netgate-host-acl:host-acl-wrapper
object (netgate.host.acl.hostconfig.security.hostacls.HostAclWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-host-acl:host-acl-wrapper":
    {
    }
}

removes netgate.host.acl.hostconfig.security.hostacls.HostAcl

delete /data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}

The list of configured host ACLs.

path Parameters
acl-name
required
string

Id of host-acl

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

creates netgate.host.acl.hostconfig.security.hostacls.hostacl.AclRule

post /data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule

The list of the host ACL rules.

path Parameters
acl-name
required
string

Id of host-acl

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.hostacl.AclRule to be added to list

acl-rule
object (netgate.host.acl.hostconfig.security.hostacls.hostacl.AclRule)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "acl-rule":
    {
    }
}

returns netgate.host.acl.hostconfig.security.hostacls.hostacl.AclRule

get /data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}

The list of the host ACL rules.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

200

netgate.host.acl.hostconfig.security.hostacls.hostacl.AclRule

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-host-acl:acl-rule-wrapper":
    {
    }
}

creates or updates netgate.host.acl.hostconfig.security.hostacls.hostacl.AclRule

put /data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}

The list of the host ACL rules.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.hostacl.AclRule to be added or updated

netgate-host-acl:acl-rule-wrapper
object (netgate.host.acl.hostconfig.security.hostacls.hostacl.AclRuleWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-host-acl:acl-rule-wrapper":
    {
    }
}

removes netgate.host.acl.hostconfig.security.hostacls.hostacl.AclRule

delete /data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}

The list of the host ACL rules.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

returns netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.PacketMatch

get /data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match

The matching packets of the rule.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

200

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.PacketMatch

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-host-acl:packet-match-wrapper":
    {
    }
}

creates netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.PacketMatch

post /data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match

The matching packets of the rule.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.PacketMatch to be added to list

packet-match
object (netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.PacketMatch)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "packet-match":
    {
    }
}

creates or updates netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.PacketMatch

put /data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match

The matching packets of the rule.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.PacketMatch to be added or updated

netgate-host-acl:packet-match-wrapper
object (netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.PacketMatchWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-host-acl:packet-match-wrapper":
    {
    }
}

removes netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.PacketMatch

delete /data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match

The matching packets of the rule.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

returns netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.Ip

get /data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip

IP traffic match.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

200

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.Ip

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/ip"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-host-acl:ip-wrapper":
    {
    }
}

creates netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.Ip

post /data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip

IP traffic match.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.Ip to be added to list

ip
object (netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.Ip)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "ip":
    {
    }
}

creates or updates netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.Ip

put /data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip

IP traffic match.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.Ip to be added or updated

netgate-host-acl:ip-wrapper
object (netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.IpWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-host-acl:ip-wrapper":
    {
    }
}

removes netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.Ip

delete /data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip

IP traffic match.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/ip"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

returns netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.Transport

get /data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport

Transport options.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

200

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.Transport

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/ip/transport"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-host-acl:transport-wrapper":
    {
    }
}

creates netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.Transport

post /data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport

Transport options.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.Transport to be added to list

transport
object (netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.Transport)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "transport":
    {
    }
}

creates or updates netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.Transport

put /data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport

Transport options.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.Transport to be added or updated

netgate-host-acl:transport-wrapper
object (netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.TransportWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-host-acl:transport-wrapper":
    {
    }
}

removes netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.Transport

delete /data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport

Transport options.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/ip/transport"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

returns netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.DestinationPort

get /data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/destination-port

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/destination-port

The destination port range.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

200

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.DestinationPort

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/ip/transport/destination-port"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-host-acl:destination-port-wrapper":
    {
    }
}

creates netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.DestinationPort

post /data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/destination-port

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/destination-port

The destination port range.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.DestinationPort to be added to list

destination-port
object (netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.DestinationPort)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "destination-port":
    {
    }
}

creates or updates netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.DestinationPort

put /data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/destination-port

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/destination-port

The destination port range.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.DestinationPort to be added or updated

netgate-host-acl:destination-port-wrapper
object (netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.DestinationPortWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-host-acl:destination-port-wrapper":
    {
    }
}

removes netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.DestinationPort

delete /data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/destination-port

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/destination-port

The destination port range.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/ip/transport/destination-port"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

returns netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Icmp

get /data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/icmp

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/icmp

ICMP options.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

200

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Icmp

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/ip/transport/icmp"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-host-acl:icmp-wrapper":
    {
    }
}

creates netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Icmp

post /data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/icmp

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/icmp

ICMP options.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Icmp to be added to list

icmp
object (netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Icmp)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "icmp":
    {
    }
}

creates or updates netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Icmp

put /data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/icmp

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/icmp

ICMP options.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Icmp to be added or updated

netgate-host-acl:icmp-wrapper
object (netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.IcmpWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-host-acl:icmp-wrapper":
    {
    }
}

removes netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Icmp

delete /data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/icmp

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/icmp

ICMP options.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/ip/transport/icmp"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

returns netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.SourcePort

get /data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/source-port

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/source-port

The source port range.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

200

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.SourcePort

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/ip/transport/source-port"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-host-acl:source-port-wrapper":
    {
    }
}

creates netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.SourcePort

post /data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/source-port

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/source-port

The source port range.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.SourcePort to be added to list

source-port
object (netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.SourcePort)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "source-port":
    {
    }
}

creates or updates netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.SourcePort

put /data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/source-port

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/source-port

The source port range.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.SourcePort to be added or updated

netgate-host-acl:source-port-wrapper
object (netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.SourcePortWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-host-acl:source-port-wrapper":
    {
    }
}

removes netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.SourcePort

delete /data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/source-port

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/source-port

The source port range.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/ip/transport/source-port"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

returns netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Tcp

get /data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/tcp

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/tcp

TCP options.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

200

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Tcp

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/ip/transport/tcp"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-host-acl:tcp-wrapper":
    {
    }
}

creates netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Tcp

post /data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/tcp

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/tcp

TCP options.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Tcp to be added to list

tcp
object (netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Tcp)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "tcp":
    {
    }
}

creates or updates netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Tcp

put /data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/tcp

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/tcp

TCP options.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Tcp to be added or updated

netgate-host-acl:tcp-wrapper
object (netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.TcpWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-host-acl:tcp-wrapper":
    {
    }
}

removes netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Tcp

delete /data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/tcp

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/tcp

TCP options.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/ip/transport/tcp"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

returns netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.tcp.Flags

get /data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/tcp/flags

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/tcp/flags

TCP flags.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

200

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.tcp.Flags

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/ip/transport/tcp/flags"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-host-acl:flags-wrapper":
    {
    }
}

creates netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.tcp.Flags

post /data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/tcp/flags

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/tcp/flags

TCP flags.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.tcp.Flags to be added to list

flags
object (netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.tcp.Flags)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "flags":
    {
    }
}

creates or updates netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.tcp.Flags

put /data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/tcp/flags

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/tcp/flags

TCP flags.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.tcp.Flags to be added or updated

netgate-host-acl:flags-wrapper
object (netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.tcp.FlagsWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-host-acl:flags-wrapper":
    {
    }
}

removes netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.tcp.Flags

delete /data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/tcp/flags

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/tcp/flags

TCP flags.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/ip/transport/tcp/flags"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

returns netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.Link

get /data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/link

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/link

Ethernet traffic match.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

200

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.Link

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/link"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-host-acl:link-wrapper":
    {
    }
}

creates netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.Link

post /data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/link

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/link

Ethernet traffic match.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.Link to be added to list

link
object (netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.Link)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "link":
    {
    }
}

creates or updates netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.Link

put /data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/link

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/link

Ethernet traffic match.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.Link to be added or updated

netgate-host-acl:link-wrapper
object (netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.LinkWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-host-acl:link-wrapper":
    {
    }
}

removes netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.Link

delete /data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/link

Example URL

https://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/link

Ethernet traffic match.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/link"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

host-state

returns netgate.host.acl.HostState

get /data/netgate-host-acl:host-state

Example URL

https://hostname/restconf/data/netgate-host-acl:host-state

Host state parameters.

Responses

200

netgate.host.acl.HostState

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-state"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-host-acl:host-state-wrapper":
    {
    }
}

returns netgate.host.acl.hoststate.Security

get /data/netgate-host-acl:host-state/security

Example URL

https://hostname/restconf/data/netgate-host-acl:host-state/security

Host security state parameters.

Responses

200

netgate.host.acl.hoststate.Security

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-state/security"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-host-acl:security-wrapper":
    {
    }
}

returns netgate.host.acl.hoststate.security.HostAcls

get /data/netgate-host-acl:host-state/security/host-acls

Example URL

https://hostname/restconf/data/netgate-host-acl:host-state/security/host-acls

Host access lists (ACLs).

Responses

200

netgate.host.acl.hoststate.security.HostAcls

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-state/security/host-acls"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-host-acl:host-acls-wrapper":
    {
    }
}

returns netgate.host.acl.hoststate.security.hostacls.HostAcl

get /data/netgate-host-acl:host-state/security/host-acls/host-acl={acl-name}

Example URL

https://hostname/restconf/data/netgate-host-acl:host-state/security/host-acls/host-acl={acl-name}

The list of configured host ACLs.

path Parameters
acl-name
required
string

Id of host-acl

Responses

200

netgate.host.acl.hoststate.security.hostacls.HostAcl

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-state/security/host-acls/host-acl=%7Bacl-name%7D"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-host-acl:host-acl-wrapper":
    {
    }
}

returns netgate.host.acl.hoststate.security.hostacls.hostacl.AclRule

get /data/netgate-host-acl:host-state/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}

Example URL

https://hostname/restconf/data/netgate-host-acl:host-state/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}

The list of the host ACL rules.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

200

netgate.host.acl.hoststate.security.hostacls.hostacl.AclRule

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-state/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-host-acl:acl-rule-wrapper":
    {
    }
}

returns netgate.host.acl.hoststate.security.hostacls.hostacl.aclrule.PacketMatch

get /data/netgate-host-acl:host-state/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match

Example URL

https://hostname/restconf/data/netgate-host-acl:host-state/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match

The matching packets of the rule.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

200

netgate.host.acl.hoststate.security.hostacls.hostacl.aclrule.PacketMatch

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-state/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-host-acl:packet-match-wrapper":
    {
    }
}

returns netgate.host.acl.hoststate.security.hostacls.hostacl.aclrule.packetmatch.Ip

get /data/netgate-host-acl:host-state/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip

Example URL

https://hostname/restconf/data/netgate-host-acl:host-state/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip

IP traffic match.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

200

netgate.host.acl.hoststate.security.hostacls.hostacl.aclrule.packetmatch.Ip

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-state/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/ip"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-host-acl:ip-wrapper":
    {
    }
}

returns netgate.host.acl.hoststate.security.hostacls.hostacl.aclrule.packetmatch.ip.Transport

get /data/netgate-host-acl:host-state/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport

Example URL

https://hostname/restconf/data/netgate-host-acl:host-state/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport

Transport options.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

200

netgate.host.acl.hoststate.security.hostacls.hostacl.aclrule.packetmatch.ip.Transport

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-state/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/ip/transport"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-host-acl:transport-wrapper":
    {
    }
}

returns netgate.host.acl.hoststate.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.DestinationPort

get /data/netgate-host-acl:host-state/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/destination-port

Example URL

https://hostname/restconf/data/netgate-host-acl:host-state/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/destination-port

The destination port range.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

200

netgate.host.acl.hoststate.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.DestinationPort

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-state/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/ip/transport/destination-port"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-host-acl:destination-port-wrapper":
    {
    }
}

returns netgate.host.acl.hoststate.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Icmp

get /data/netgate-host-acl:host-state/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/icmp

Example URL

https://hostname/restconf/data/netgate-host-acl:host-state/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/icmp

ICMP options.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

200

netgate.host.acl.hoststate.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Icmp

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-state/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/ip/transport/icmp"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-host-acl:icmp-wrapper":
    {
    }
}

returns netgate.host.acl.hoststate.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.SourcePort

get /data/netgate-host-acl:host-state/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/source-port

Example URL

https://hostname/restconf/data/netgate-host-acl:host-state/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/source-port

The source port range.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

200

netgate.host.acl.hoststate.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.SourcePort

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-state/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/ip/transport/source-port"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-host-acl:source-port-wrapper":
    {
    }
}

returns netgate.host.acl.hoststate.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Tcp

get /data/netgate-host-acl:host-state/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/tcp

Example URL

https://hostname/restconf/data/netgate-host-acl:host-state/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/tcp

TCP options.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

200

netgate.host.acl.hoststate.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Tcp

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-state/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/ip/transport/tcp"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-host-acl:tcp-wrapper":
    {
    }
}

returns netgate.host.acl.hoststate.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.tcp.Flags

get /data/netgate-host-acl:host-state/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/tcp/flags

Example URL

https://hostname/restconf/data/netgate-host-acl:host-state/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/ip/transport/tcp/flags

TCP flags.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

200

netgate.host.acl.hoststate.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.tcp.Flags

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-state/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/ip/transport/tcp/flags"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-host-acl:flags-wrapper":
    {
    }
}

returns netgate.host.acl.hoststate.security.hostacls.hostacl.aclrule.packetmatch.Link

get /data/netgate-host-acl:host-state/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/link

Example URL

https://hostname/restconf/data/netgate-host-acl:host-state/security/host-acls/host-acl={acl-name}/acl-rule={rule-seq}/packet-match/link

Ethernet traffic match.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

200

netgate.host.acl.hoststate.security.hostacls.hostacl.aclrule.packetmatch.Link

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-state/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/link"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-host-acl:link-wrapper":
    {
    }
}