netgate-interface API (24.02)

This YANG module provides a data model for network interfaces.

Copyright 2017-2023 Rubicon Communications, LLC.

interfaces-config

returns netgate.interface.InterfacesConfig

get /data/netgate-interface:interfaces-config

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config

Interface configuration parameters.

Responses

200

netgate.interface.InterfacesConfig

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-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-interface:interfaces-config-wrapper":
    {
    }
}

creates netgate.interface.InterfacesConfig

post /data/netgate-interface:interfaces-config

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config

Interface configuration parameters.

Request Body schema: application/yang-data+json

netgate.interface.InterfacesConfig to be added to list

netgate-interface:interfaces-config
object (netgate.interface.InterfacesConfig)

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-interface:interfaces-config":
    {
    }
}

creates or updates netgate.interface.InterfacesConfig

put /data/netgate-interface:interfaces-config

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config

Interface configuration parameters.

Request Body schema: application/yang-data+json

netgate.interface.InterfacesConfig to be added or updated

netgate-interface:interfaces-config-wrapper
object (netgate.interface.InterfacesConfigWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.interface.InterfacesConfig

delete /data/netgate-interface:interfaces-config

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config

Interface 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-interface:interfaces-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.interface.interfacesconfig.BondTable

get /data/netgate-interface:interfaces-config/bond-table

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/bond-table

Bond interface configuration table.

Responses

200

netgate.interface.interfacesconfig.BondTable

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-config/bond-table"

	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-interface:bond-table-wrapper":
    {
    }
}

creates netgate.interface.interfacesconfig.BondTable

post /data/netgate-interface:interfaces-config/bond-table

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/bond-table

Bond interface configuration table.

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.BondTable to be added to list

bond-table
object (netgate.interface.interfacesconfig.BondTable)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.interface.interfacesconfig.BondTable

put /data/netgate-interface:interfaces-config/bond-table

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/bond-table

Bond interface configuration table.

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.BondTable to be added or updated

netgate-interface:bond-table-wrapper
object (netgate.interface.interfacesconfig.BondTableWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.interface.interfacesconfig.BondTable

delete /data/netgate-interface:interfaces-config/bond-table

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/bond-table

Bond interface configuration table.

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-interface:interfaces-config/bond-table"

	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.interface.interfacesconfig.bondtable.Bond

post /data/netgate-interface:interfaces-config/bond-table/bond

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/bond-table/bond

Bond interface.

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.bondtable.Bond to be added to list

bond
object (netgate.interface.interfacesconfig.bondtable.Bond)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

returns netgate.interface.interfacesconfig.bondtable.Bond

get /data/netgate-interface:interfaces-config/bond-table/bond={instance}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/bond-table/bond={instance}

Bond interface.

path Parameters
instance
required
integer <int64>

Id of bond

Responses

200

netgate.interface.interfacesconfig.bondtable.Bond

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-config/bond-table/bond=%7Binstance%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-interface:bond-wrapper":
    {
    }
}

creates or updates netgate.interface.interfacesconfig.bondtable.Bond

put /data/netgate-interface:interfaces-config/bond-table/bond={instance}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/bond-table/bond={instance}

Bond interface.

path Parameters
instance
required
integer <int64>

Id of bond

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.bondtable.Bond to be added or updated

netgate-interface:bond-wrapper
object (netgate.interface.interfacesconfig.bondtable.BondWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.interface.interfacesconfig.bondtable.Bond

delete /data/netgate-interface:interfaces-config/bond-table/bond={instance}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/bond-table/bond={instance}

Bond interface.

path Parameters
instance
required
integer <int64>

Id of bond

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-interface:interfaces-config/bond-table/bond=%7Binstance%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.interface.interfacesconfig.BridgeTable

get /data/netgate-interface:interfaces-config/bridge-table

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/bridge-table

Bridge mapping table.

Responses

200

netgate.interface.interfacesconfig.BridgeTable

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-config/bridge-table"

	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-interface:bridge-table-wrapper":
    {
    }
}

creates netgate.interface.interfacesconfig.BridgeTable

post /data/netgate-interface:interfaces-config/bridge-table

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/bridge-table

Bridge mapping table.

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.BridgeTable to be added to list

bridge-table
object (netgate.interface.interfacesconfig.BridgeTable)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.interface.interfacesconfig.BridgeTable

put /data/netgate-interface:interfaces-config/bridge-table

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/bridge-table

Bridge mapping table.

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.BridgeTable to be added or updated

netgate-interface:bridge-table-wrapper
object (netgate.interface.interfacesconfig.BridgeTableWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.interface.interfacesconfig.BridgeTable

delete /data/netgate-interface:interfaces-config/bridge-table

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/bridge-table

Bridge mapping table.

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-interface:interfaces-config/bridge-table"

	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.interface.interfacesconfig.bridgetable.BridgeEntry

post /data/netgate-interface:interfaces-config/bridge-table/bridge-entry

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/bridge-table/bridge-entry

Bridge Domain Id.

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.bridgetable.BridgeEntry to be added to list

bridge-entry
object (netgate.interface.interfacesconfig.bridgetable.BridgeEntry)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

returns netgate.interface.interfacesconfig.bridgetable.BridgeEntry

get /data/netgate-interface:interfaces-config/bridge-table/bridge-entry={bdi}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/bridge-table/bridge-entry={bdi}

Bridge Domain Id.

path Parameters
bdi
required
integer <int64>

Id of bridge-entry

Responses

200

netgate.interface.interfacesconfig.bridgetable.BridgeEntry

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-config/bridge-table/bridge-entry=%7Bbdi%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-interface:bridge-entry-wrapper":
    {
    }
}

creates or updates netgate.interface.interfacesconfig.bridgetable.BridgeEntry

put /data/netgate-interface:interfaces-config/bridge-table/bridge-entry={bdi}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/bridge-table/bridge-entry={bdi}

Bridge Domain Id.

path Parameters
bdi
required
integer <int64>

Id of bridge-entry

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.bridgetable.BridgeEntry to be added or updated

netgate-interface:bridge-entry-wrapper
object (netgate.interface.interfacesconfig.bridgetable.BridgeEntryWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.interface.interfacesconfig.bridgetable.BridgeEntry

delete /data/netgate-interface:interfaces-config/bridge-table/bridge-entry={bdi}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/bridge-table/bridge-entry={bdi}

Bridge Domain Id.

path Parameters
bdi
required
integer <int64>

Id of bridge-entry

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-interface:interfaces-config/bridge-table/bridge-entry=%7Bbdi%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.interface.interfacesconfig.bridgetable.bridgeentry.BridgeArpTable

get /data/netgate-interface:interfaces-config/bridge-table/bridge-entry={bdi}/bridge-arp-table

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/bridge-table/bridge-entry={bdi}/bridge-arp-table

Bridge ARP Entry Table.

path Parameters
bdi
required
integer <int64>

Id of bridge-entry

Responses

200

netgate.interface.interfacesconfig.bridgetable.bridgeentry.BridgeArpTable

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-config/bridge-table/bridge-entry=%7Bbdi%7D/bridge-arp-table"

	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-interface:bridge-arp-table-wrapper":
    {
    }
}

creates netgate.interface.interfacesconfig.bridgetable.bridgeentry.BridgeArpTable

post /data/netgate-interface:interfaces-config/bridge-table/bridge-entry={bdi}/bridge-arp-table

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/bridge-table/bridge-entry={bdi}/bridge-arp-table

Bridge ARP Entry Table.

path Parameters
bdi
required
integer <int64>

Id of bridge-entry

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.bridgetable.bridgeentry.BridgeArpTable to be added to list

bridge-arp-table
object (netgate.interface.interfacesconfig.bridgetable.bridgeentry.BridgeArpTable)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.interface.interfacesconfig.bridgetable.bridgeentry.BridgeArpTable

put /data/netgate-interface:interfaces-config/bridge-table/bridge-entry={bdi}/bridge-arp-table

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/bridge-table/bridge-entry={bdi}/bridge-arp-table

Bridge ARP Entry Table.

path Parameters
bdi
required
integer <int64>

Id of bridge-entry

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.bridgetable.bridgeentry.BridgeArpTable to be added or updated

netgate-interface:bridge-arp-table-wrapper
object (netgate.interface.interfacesconfig.bridgetable.bridgeentry.BridgeArpTableWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-interface:bridge-arp-table-wrapper":
    {
    }
}

removes netgate.interface.interfacesconfig.bridgetable.bridgeentry.BridgeArpTable

delete /data/netgate-interface:interfaces-config/bridge-table/bridge-entry={bdi}/bridge-arp-table

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/bridge-table/bridge-entry={bdi}/bridge-arp-table

Bridge ARP Entry Table.

path Parameters
bdi
required
integer <int64>

Id of bridge-entry

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-interface:interfaces-config/bridge-table/bridge-entry=%7Bbdi%7D/bridge-arp-table"

	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.interface.interfacesconfig.bridgetable.bridgeentry.bridgearptable.BridgeArpEntry

post /data/netgate-interface:interfaces-config/bridge-table/bridge-entry={bdi}/bridge-arp-table/bridge-arp-entry

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/bridge-table/bridge-entry={bdi}/bridge-arp-table/bridge-arp-entry

Bridge ARP entry table.

path Parameters
bdi
required
integer <int64>

Id of bridge-entry

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.bridgetable.bridgeentry.bridgearptable.BridgeArpEntry to be added to list

bridge-arp-entry
object (netgate.interface.interfacesconfig.bridgetable.bridgeentry.bridgearptable.BridgeArpEntry)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

returns netgate.interface.interfacesconfig.bridgetable.bridgeentry.bridgearptable.BridgeArpEntry

get /data/netgate-interface:interfaces-config/bridge-table/bridge-entry={bdi}/bridge-arp-table/bridge-arp-entry={ip-address}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/bridge-table/bridge-entry={bdi}/bridge-arp-table/bridge-arp-entry={ip-address}

Bridge ARP entry table.

path Parameters
bdi
required
integer <int64>

Id of bridge-entry

ip-address
required
string

Id of bridge-arp-entry

Responses

200

netgate.interface.interfacesconfig.bridgetable.bridgeentry.bridgearptable.BridgeArpEntry

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-config/bridge-table/bridge-entry=%7Bbdi%7D/bridge-arp-table/bridge-arp-entry=%7Bip-address%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-interface:bridge-arp-entry-wrapper":
    {
    }
}

creates or updates netgate.interface.interfacesconfig.bridgetable.bridgeentry.bridgearptable.BridgeArpEntry

put /data/netgate-interface:interfaces-config/bridge-table/bridge-entry={bdi}/bridge-arp-table/bridge-arp-entry={ip-address}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/bridge-table/bridge-entry={bdi}/bridge-arp-table/bridge-arp-entry={ip-address}

Bridge ARP entry table.

path Parameters
bdi
required
integer <int64>

Id of bridge-entry

ip-address
required
string

Id of bridge-arp-entry

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.bridgetable.bridgeentry.bridgearptable.BridgeArpEntry to be added or updated

netgate-interface:bridge-arp-entry-wrapper
object (netgate.interface.interfacesconfig.bridgetable.bridgeentry.bridgearptable.BridgeArpEntryWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-interface:bridge-arp-entry-wrapper":
    {
    }
}

removes netgate.interface.interfacesconfig.bridgetable.bridgeentry.bridgearptable.BridgeArpEntry

delete /data/netgate-interface:interfaces-config/bridge-table/bridge-entry={bdi}/bridge-arp-table/bridge-arp-entry={ip-address}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/bridge-table/bridge-entry={bdi}/bridge-arp-table/bridge-arp-entry={ip-address}

Bridge ARP entry table.

path Parameters
bdi
required
integer <int64>

Id of bridge-entry

ip-address
required
string

Id of bridge-arp-entry

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-interface:interfaces-config/bridge-table/bridge-entry=%7Bbdi%7D/bridge-arp-table/bridge-arp-entry=%7Bip-address%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.interface.interfacesconfig.Interface

post /data/netgate-interface:interfaces-config/interface

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface

The list of configured interfaces on the device.

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.Interface to be added to list

interface
object (netgate.interface.interfacesconfig.Interface)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

returns netgate.interface.interfacesconfig.Interface

get /data/netgate-interface:interfaces-config/interface={name}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}

The list of configured interfaces on the device.

path Parameters
name
required
string

Id of interface

Responses

200

netgate.interface.interfacesconfig.Interface

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%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-interface:interface-wrapper":
    {
    }
}

creates or updates netgate.interface.interfacesconfig.Interface

put /data/netgate-interface:interfaces-config/interface={name}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}

The list of configured interfaces on the device.

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.Interface to be added or updated

netgate-interface:interface-wrapper
object (netgate.interface.interfacesconfig.InterfaceWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.interface.interfacesconfig.Interface

delete /data/netgate-interface:interfaces-config/interface={name}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}

The list of configured interfaces on the device.

path Parameters
name
required
string

Id of interface

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-interface:interfaces-config/interface=%7Bname%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.interface.interfacesconfig.interface.AccessList

get /data/netgate-interface:interfaces-config/interface={name}/access-list

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/access-list

If the interface has any Access Control Lists, they are listed here in two groups: those that apply to packet ingress and those that apply to egresss. The two sets of ACLs are sorted independenty and applied in ascending sequence-number order.

path Parameters
name
required
string

Id of interface

Responses

200

netgate.interface.interfacesconfig.interface.AccessList

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/access-list"

	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-interface:access-list-wrapper":
    {
    }
}

creates netgate.interface.interfacesconfig.interface.AccessList

post /data/netgate-interface:interfaces-config/interface={name}/access-list

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/access-list

If the interface has any Access Control Lists, they are listed here in two groups: those that apply to packet ingress and those that apply to egresss. The two sets of ACLs are sorted independenty and applied in ascending sequence-number order.

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.AccessList to be added to list

access-list
object (netgate.interface.interfacesconfig.interface.AccessList)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.interface.interfacesconfig.interface.AccessList

put /data/netgate-interface:interfaces-config/interface={name}/access-list

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/access-list

If the interface has any Access Control Lists, they are listed here in two groups: those that apply to packet ingress and those that apply to egresss. The two sets of ACLs are sorted independenty and applied in ascending sequence-number order.

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.AccessList to be added or updated

netgate-interface:access-list-wrapper
object (netgate.interface.interfacesconfig.interface.AccessListWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.interface.interfacesconfig.interface.AccessList

delete /data/netgate-interface:interfaces-config/interface={name}/access-list

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/access-list

If the interface has any Access Control Lists, they are listed here in two groups: those that apply to packet ingress and those that apply to egresss. The two sets of ACLs are sorted independenty and applied in ascending sequence-number order.

path Parameters
name
required
string

Id of interface

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-interface:interfaces-config/interface=%7Bname%7D/access-list"

	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.interface.interfacesconfig.interface.accesslist.Input

get /data/netgate-interface:interfaces-config/interface={name}/access-list/input

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/access-list/input

These are the ACL rule-sets that apply to ingress packets.

path Parameters
name
required
string

Id of interface

Responses

200

netgate.interface.interfacesconfig.interface.accesslist.Input

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/access-list/input"

	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-interface:input-wrapper":
    {
    }
}

creates netgate.interface.interfacesconfig.interface.accesslist.Input

post /data/netgate-interface:interfaces-config/interface={name}/access-list/input

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/access-list/input

These are the ACL rule-sets that apply to ingress packets.

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.accesslist.Input to be added to list

input
object (netgate.interface.interfacesconfig.interface.accesslist.Input)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.interface.interfacesconfig.interface.accesslist.Input

put /data/netgate-interface:interfaces-config/interface={name}/access-list/input

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/access-list/input

These are the ACL rule-sets that apply to ingress packets.

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.accesslist.Input to be added or updated

netgate-interface:input-wrapper
object (netgate.interface.interfacesconfig.interface.accesslist.InputWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.interface.interfacesconfig.interface.accesslist.Input

delete /data/netgate-interface:interfaces-config/interface={name}/access-list/input

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/access-list/input

These are the ACL rule-sets that apply to ingress packets.

path Parameters
name
required
string

Id of interface

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-interface:interfaces-config/interface=%7Bname%7D/access-list/input"

	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.interface.interfacesconfig.interface.accesslist.input.AclList

post /data/netgate-interface:interfaces-config/interface={name}/access-list/input/acl-list

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/access-list/input/acl-list

Each ACL rule-set can appear at most once within the input list.

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.accesslist.input.AclList to be added to list

acl-list
object (netgate.interface.interfacesconfig.interface.accesslist.input.AclList)

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-list":
    {
    }
}

returns netgate.interface.interfacesconfig.interface.accesslist.input.AclList

get /data/netgate-interface:interfaces-config/interface={name}/access-list/input/acl-list={acl-name}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/access-list/input/acl-list={acl-name}

Each ACL rule-set can appear at most once within the input list.

path Parameters
name
required
string

Id of interface

acl-name
required
string

Id of acl-list

Responses

200

netgate.interface.interfacesconfig.interface.accesslist.input.AclList

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/access-list/input/acl-list=%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-interface:acl-list-wrapper":
    {
    }
}

creates or updates netgate.interface.interfacesconfig.interface.accesslist.input.AclList

put /data/netgate-interface:interfaces-config/interface={name}/access-list/input/acl-list={acl-name}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/access-list/input/acl-list={acl-name}

Each ACL rule-set can appear at most once within the input list.

path Parameters
name
required
string

Id of interface

acl-name
required
string

Id of acl-list

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.accesslist.input.AclList to be added or updated

netgate-interface:acl-list-wrapper
object (netgate.interface.interfacesconfig.interface.accesslist.input.AclListWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.interface.interfacesconfig.interface.accesslist.input.AclList

delete /data/netgate-interface:interfaces-config/interface={name}/access-list/input/acl-list={acl-name}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/access-list/input/acl-list={acl-name}

Each ACL rule-set can appear at most once within the input list.

path Parameters
name
required
string

Id of interface

acl-name
required
string

Id of acl-list

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-interface:interfaces-config/interface=%7Bname%7D/access-list/input/acl-list=%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))

}

returns netgate.interface.interfacesconfig.interface.accesslist.Macip

get /data/netgate-interface:interfaces-config/interface={name}/access-list/macip

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/access-list/macip

An interface may also have at most one ACL based upon a combination of MAC address and IP. If that ACL is present, it is always on the ingress packets.

path Parameters
name
required
string

Id of interface

Responses

200

netgate.interface.interfacesconfig.interface.accesslist.Macip

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/access-list/macip"

	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-interface:macip-wrapper":
    {
    }
}

creates netgate.interface.interfacesconfig.interface.accesslist.Macip

post /data/netgate-interface:interfaces-config/interface={name}/access-list/macip

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/access-list/macip

An interface may also have at most one ACL based upon a combination of MAC address and IP. If that ACL is present, it is always on the ingress packets.

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.accesslist.Macip to be added to list

macip
object (netgate.interface.interfacesconfig.interface.accesslist.Macip)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.interface.interfacesconfig.interface.accesslist.Macip

put /data/netgate-interface:interfaces-config/interface={name}/access-list/macip

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/access-list/macip

An interface may also have at most one ACL based upon a combination of MAC address and IP. If that ACL is present, it is always on the ingress packets.

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.accesslist.Macip to be added or updated

netgate-interface:macip-wrapper
object (netgate.interface.interfacesconfig.interface.accesslist.MacipWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.interface.interfacesconfig.interface.accesslist.Macip

delete /data/netgate-interface:interfaces-config/interface={name}/access-list/macip

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/access-list/macip

An interface may also have at most one ACL based upon a combination of MAC address and IP. If that ACL is present, it is always on the ingress packets.

path Parameters
name
required
string

Id of interface

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-interface:interfaces-config/interface=%7Bname%7D/access-list/macip"

	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.interface.interfacesconfig.interface.accesslist.Output

get /data/netgate-interface:interfaces-config/interface={name}/access-list/output

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/access-list/output

These are the ACL rule-sets that apply to egress packets.

path Parameters
name
required
string

Id of interface

Responses

200

netgate.interface.interfacesconfig.interface.accesslist.Output

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/access-list/output"

	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-interface:output-wrapper":
    {
    }
}

creates netgate.interface.interfacesconfig.interface.accesslist.Output

post /data/netgate-interface:interfaces-config/interface={name}/access-list/output

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/access-list/output

These are the ACL rule-sets that apply to egress packets.

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.accesslist.Output to be added to list

output
object (netgate.interface.interfacesconfig.interface.accesslist.Output)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.interface.interfacesconfig.interface.accesslist.Output

put /data/netgate-interface:interfaces-config/interface={name}/access-list/output

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/access-list/output

These are the ACL rule-sets that apply to egress packets.

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.accesslist.Output to be added or updated

netgate-interface:output-wrapper
object (netgate.interface.interfacesconfig.interface.accesslist.OutputWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.interface.interfacesconfig.interface.accesslist.Output

delete /data/netgate-interface:interfaces-config/interface={name}/access-list/output

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/access-list/output

These are the ACL rule-sets that apply to egress packets.

path Parameters
name
required
string

Id of interface

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-interface:interfaces-config/interface=%7Bname%7D/access-list/output"

	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.interface.interfacesconfig.interface.accesslist.output.AclList

post /data/netgate-interface:interfaces-config/interface={name}/access-list/output/acl-list

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/access-list/output/acl-list

Each ACL rule-set can appear at most once within the output list.

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.accesslist.output.AclList to be added to list

acl-list
object (netgate.interface.interfacesconfig.interface.accesslist.output.AclList)

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-list":
    {
    }
}

returns netgate.interface.interfacesconfig.interface.accesslist.output.AclList

get /data/netgate-interface:interfaces-config/interface={name}/access-list/output/acl-list={acl-name}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/access-list/output/acl-list={acl-name}

Each ACL rule-set can appear at most once within the output list.

path Parameters
name
required
string

Id of interface

acl-name
required
string

Id of acl-list

Responses

200

netgate.interface.interfacesconfig.interface.accesslist.output.AclList

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/access-list/output/acl-list=%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-interface:acl-list-wrapper":
    {
    }
}

creates or updates netgate.interface.interfacesconfig.interface.accesslist.output.AclList

put /data/netgate-interface:interfaces-config/interface={name}/access-list/output/acl-list={acl-name}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/access-list/output/acl-list={acl-name}

Each ACL rule-set can appear at most once within the output list.

path Parameters
name
required
string

Id of interface

acl-name
required
string

Id of acl-list

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.accesslist.output.AclList to be added or updated

netgate-interface:acl-list-wrapper
object (netgate.interface.interfacesconfig.interface.accesslist.output.AclListWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.interface.interfacesconfig.interface.accesslist.output.AclList

delete /data/netgate-interface:interfaces-config/interface={name}/access-list/output/acl-list={acl-name}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/access-list/output/acl-list={acl-name}

Each ACL rule-set can appear at most once within the output list.

path Parameters
name
required
string

Id of interface

acl-name
required
string

Id of acl-list

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-interface:interfaces-config/interface=%7Bname%7D/access-list/output/acl-list=%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))

}

returns netgate.interface.interfacesconfig.interface.Bond

get /data/netgate-interface:interfaces-config/interface={name}/bond

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/bond

If the interface is being used as a slave, this node contains the corresponding bond ID and slave options.

path Parameters
name
required
string

Id of interface

Responses

200

netgate.interface.interfacesconfig.interface.Bond

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/bond"

	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-interface:bond-wrapper":
    {
    }
}

creates netgate.interface.interfacesconfig.interface.Bond

post /data/netgate-interface:interfaces-config/interface={name}/bond

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/bond

If the interface is being used as a slave, this node contains the corresponding bond ID and slave options.

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.Bond to be added to list

bond
object (netgate.interface.interfacesconfig.interface.Bond)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.interface.interfacesconfig.interface.Bond

put /data/netgate-interface:interfaces-config/interface={name}/bond

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/bond

If the interface is being used as a slave, this node contains the corresponding bond ID and slave options.

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.Bond to be added or updated

netgate-interface:bond-wrapper
object (netgate.interface.interfacesconfig.interface.BondWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.interface.interfacesconfig.interface.Bond

delete /data/netgate-interface:interfaces-config/interface={name}/bond

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/bond

If the interface is being used as a slave, this node contains the corresponding bond ID and slave options.

path Parameters
name
required
string

Id of interface

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-interface:interfaces-config/interface=%7Bname%7D/bond"

	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.interface.interfacesconfig.interface.Bridge

get /data/netgate-interface:interfaces-config/interface={name}/bridge

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/bridge

If the interface is being used as a bridge, this node contains the corresponding Bridge Domain Id, Split Horizon, and/or Bridge Virtual Id information.

path Parameters
name
required
string

Id of interface

Responses

200

netgate.interface.interfacesconfig.interface.Bridge

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/bridge"

	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-interface:bridge-wrapper":
    {
    }
}

creates netgate.interface.interfacesconfig.interface.Bridge

post /data/netgate-interface:interfaces-config/interface={name}/bridge

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/bridge

If the interface is being used as a bridge, this node contains the corresponding Bridge Domain Id, Split Horizon, and/or Bridge Virtual Id information.

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.Bridge to be added to list

bridge
object (netgate.interface.interfacesconfig.interface.Bridge)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.interface.interfacesconfig.interface.Bridge

put /data/netgate-interface:interfaces-config/interface={name}/bridge

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/bridge

If the interface is being used as a bridge, this node contains the corresponding Bridge Domain Id, Split Horizon, and/or Bridge Virtual Id information.

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.Bridge to be added or updated

netgate-interface:bridge-wrapper
object (netgate.interface.interfacesconfig.interface.BridgeWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.interface.interfacesconfig.interface.Bridge

delete /data/netgate-interface:interfaces-config/interface={name}/bridge

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/bridge

If the interface is being used as a bridge, this node contains the corresponding Bridge Domain Id, Split Horizon, and/or Bridge Virtual Id information.

path Parameters
name
required
string

Id of interface

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-interface:interfaces-config/interface=%7Bname%7D/bridge"

	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.interface.interfacesconfig.interface.DhcpClient

get /data/netgate-interface:interfaces-config/interface={name}/dhcp-client

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/dhcp-client

If the interface is configured using a DHCP client, that configuration is contained here.

path Parameters
name
required
string

Id of interface

Responses

200

netgate.interface.interfacesconfig.interface.DhcpClient

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/dhcp-client"

	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-interface:dhcp-client-wrapper":
    {
    }
}

creates netgate.interface.interfacesconfig.interface.DhcpClient

post /data/netgate-interface:interfaces-config/interface={name}/dhcp-client

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/dhcp-client

If the interface is configured using a DHCP client, that configuration is contained here.

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.DhcpClient to be added to list

dhcp-client
object (netgate.interface.interfacesconfig.interface.DhcpClient)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.interface.interfacesconfig.interface.DhcpClient

put /data/netgate-interface:interfaces-config/interface={name}/dhcp-client

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/dhcp-client

If the interface is configured using a DHCP client, that configuration is contained here.

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.DhcpClient to be added or updated

netgate-interface:dhcp-client-wrapper
object (netgate.interface.interfacesconfig.interface.DhcpClientWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.interface.interfacesconfig.interface.DhcpClient

delete /data/netgate-interface:interfaces-config/interface={name}/dhcp-client

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/dhcp-client

If the interface is configured using a DHCP client, that configuration is contained here.

path Parameters
name
required
string

Id of interface

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-interface:interfaces-config/interface=%7Bname%7D/dhcp-client"

	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.interface.interfacesconfig.interface.Ipv4

get /data/netgate-interface:interfaces-config/interface={name}/ipv4

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/ipv4

Parameters for the IPv4 address family.

path Parameters
name
required
string

Id of interface

Responses

200

netgate.interface.interfacesconfig.interface.Ipv4

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/ipv4"

	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-interface:ipv4-wrapper":
    {
    }
}

creates netgate.interface.interfacesconfig.interface.Ipv4

post /data/netgate-interface:interfaces-config/interface={name}/ipv4

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/ipv4

Parameters for the IPv4 address family.

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.Ipv4 to be added to list

ipv4
object (netgate.interface.interfacesconfig.interface.Ipv4)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.interface.interfacesconfig.interface.Ipv4

put /data/netgate-interface:interfaces-config/interface={name}/ipv4

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/ipv4

Parameters for the IPv4 address family.

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.Ipv4 to be added or updated

netgate-interface:ipv4-wrapper
object (netgate.interface.interfacesconfig.interface.Ipv4Wrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.interface.interfacesconfig.interface.Ipv4

delete /data/netgate-interface:interfaces-config/interface={name}/ipv4

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/ipv4

Parameters for the IPv4 address family.

path Parameters
name
required
string

Id of interface

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-interface:interfaces-config/interface=%7Bname%7D/ipv4"

	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.interface.interfacesconfig.interface.ipv4.Address

get /data/netgate-interface:interfaces-config/interface={name}/ipv4/address

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/ipv4/address

returns netgate.interface.interfacesconfig.interface.ipv4.Address

path Parameters
name
required
string

Id of interface

Responses

200

netgate.interface.interfacesconfig.interface.ipv4.Address

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/ipv4/address"

	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-interface:address-wrapper":
    {
    }
}

creates netgate.interface.interfacesconfig.interface.ipv4.Address

post /data/netgate-interface:interfaces-config/interface={name}/ipv4/address

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/ipv4/address

creates netgate.interface.interfacesconfig.interface.ipv4.Address

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.ipv4.Address to be added to list

address
object (netgate.interface.interfacesconfig.interface.ipv4.Address)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.interface.interfacesconfig.interface.ipv4.Address

put /data/netgate-interface:interfaces-config/interface={name}/ipv4/address

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/ipv4/address

creates or updates netgate.interface.interfacesconfig.interface.ipv4.Address

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.ipv4.Address to be added or updated

netgate-interface:address-wrapper
object (netgate.interface.interfacesconfig.interface.ipv4.AddressWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.interface.interfacesconfig.interface.ipv4.Address

delete /data/netgate-interface:interfaces-config/interface={name}/ipv4/address

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/ipv4/address

removes netgate.interface.interfacesconfig.interface.ipv4.Address

path Parameters
name
required
string

Id of interface

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-interface:interfaces-config/interface=%7Bname%7D/ipv4/address"

	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.interface.interfacesconfig.interface.ipv4.Reassembly

get /data/netgate-interface:interfaces-config/interface={name}/ipv4/reassembly

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/ipv4/reassembly

ip-reassembly feature control.

path Parameters
name
required
string

Id of interface

Responses

200

netgate.interface.interfacesconfig.interface.ipv4.Reassembly

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/ipv4/reassembly"

	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-interface:reassembly-wrapper":
    {
    }
}

creates netgate.interface.interfacesconfig.interface.ipv4.Reassembly

post /data/netgate-interface:interfaces-config/interface={name}/ipv4/reassembly

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/ipv4/reassembly

ip-reassembly feature control.

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.ipv4.Reassembly to be added to list

reassembly
object (netgate.interface.interfacesconfig.interface.ipv4.Reassembly)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.interface.interfacesconfig.interface.ipv4.Reassembly

put /data/netgate-interface:interfaces-config/interface={name}/ipv4/reassembly

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/ipv4/reassembly

ip-reassembly feature control.

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.ipv4.Reassembly to be added or updated

netgate-interface:reassembly-wrapper
object (netgate.interface.interfacesconfig.interface.ipv4.ReassemblyWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.interface.interfacesconfig.interface.ipv4.Reassembly

delete /data/netgate-interface:interfaces-config/interface={name}/ipv4/reassembly

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/ipv4/reassembly

ip-reassembly feature control.

path Parameters
name
required
string

Id of interface

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-interface:interfaces-config/interface=%7Bname%7D/ipv4/reassembly"

	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.interface.interfacesconfig.interface.ipv4.Tcp

get /data/netgate-interface:interfaces-config/interface={name}/ipv4/tcp

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/ipv4/tcp

IPv4 TCP configuration values.

path Parameters
name
required
string

Id of interface

Responses

200

netgate.interface.interfacesconfig.interface.ipv4.Tcp

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/ipv4/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-interface:tcp-wrapper":
    {
    }
}

creates netgate.interface.interfacesconfig.interface.ipv4.Tcp

post /data/netgate-interface:interfaces-config/interface={name}/ipv4/tcp

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/ipv4/tcp

IPv4 TCP configuration values.

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.ipv4.Tcp to be added to list

tcp
object (netgate.interface.interfacesconfig.interface.ipv4.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.interface.interfacesconfig.interface.ipv4.Tcp

put /data/netgate-interface:interfaces-config/interface={name}/ipv4/tcp

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/ipv4/tcp

IPv4 TCP configuration values.

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.ipv4.Tcp to be added or updated

netgate-interface:tcp-wrapper
object (netgate.interface.interfacesconfig.interface.ipv4.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-interface:tcp-wrapper":
    {
    }
}

removes netgate.interface.interfacesconfig.interface.ipv4.Tcp

delete /data/netgate-interface:interfaces-config/interface={name}/ipv4/tcp

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/ipv4/tcp

IPv4 TCP configuration values.

path Parameters
name
required
string

Id of interface

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-interface:interfaces-config/interface=%7Bname%7D/ipv4/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.interface.interfacesconfig.interface.ipv4.tcp.Mss

get /data/netgate-interface:interfaces-config/interface={name}/ipv4/tcp/mss

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/ipv4/tcp/mss

IPv4 TCP Maximum Segment Size values.

path Parameters
name
required
string

Id of interface

Responses

200

netgate.interface.interfacesconfig.interface.ipv4.tcp.Mss

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/ipv4/tcp/mss"

	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-interface:mss-wrapper":
    {
    }
}

creates netgate.interface.interfacesconfig.interface.ipv4.tcp.Mss

post /data/netgate-interface:interfaces-config/interface={name}/ipv4/tcp/mss

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/ipv4/tcp/mss

IPv4 TCP Maximum Segment Size values.

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.ipv4.tcp.Mss to be added to list

mss
object (netgate.interface.interfacesconfig.interface.ipv4.tcp.Mss)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.interface.interfacesconfig.interface.ipv4.tcp.Mss

put /data/netgate-interface:interfaces-config/interface={name}/ipv4/tcp/mss

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/ipv4/tcp/mss

IPv4 TCP Maximum Segment Size values.

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.ipv4.tcp.Mss to be added or updated

netgate-interface:mss-wrapper
object (netgate.interface.interfacesconfig.interface.ipv4.tcp.MssWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.interface.interfacesconfig.interface.ipv4.tcp.Mss

delete /data/netgate-interface:interfaces-config/interface={name}/ipv4/tcp/mss

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/ipv4/tcp/mss

IPv4 TCP Maximum Segment Size values.

path Parameters
name
required
string

Id of interface

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-interface:interfaces-config/interface=%7Bname%7D/ipv4/tcp/mss"

	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.interface.interfacesconfig.interface.Ipv6

get /data/netgate-interface:interfaces-config/interface={name}/ipv6

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/ipv6

Parameters for the IPv6 address family.

path Parameters
name
required
string

Id of interface

Responses

200

netgate.interface.interfacesconfig.interface.Ipv6

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/ipv6"

	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-interface:ipv6-wrapper":
    {
    }
}

creates netgate.interface.interfacesconfig.interface.Ipv6

post /data/netgate-interface:interfaces-config/interface={name}/ipv6

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/ipv6

Parameters for the IPv6 address family.

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.Ipv6 to be added to list

ipv6
object (netgate.interface.interfacesconfig.interface.Ipv6)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.interface.interfacesconfig.interface.Ipv6

put /data/netgate-interface:interfaces-config/interface={name}/ipv6

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/ipv6

Parameters for the IPv6 address family.

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.Ipv6 to be added or updated

netgate-interface:ipv6-wrapper
object (netgate.interface.interfacesconfig.interface.Ipv6Wrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.interface.interfacesconfig.interface.Ipv6

delete /data/netgate-interface:interfaces-config/interface={name}/ipv6

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/ipv6

Parameters for the IPv6 address family.

path Parameters
name
required
string

Id of interface

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-interface:interfaces-config/interface=%7Bname%7D/ipv6"

	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.interface.interfacesconfig.interface.ipv6.Address

get /data/netgate-interface:interfaces-config/interface={name}/ipv6/address

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/ipv6/address

returns netgate.interface.interfacesconfig.interface.ipv6.Address

path Parameters
name
required
string

Id of interface

Responses

200

netgate.interface.interfacesconfig.interface.ipv6.Address

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/ipv6/address"

	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-interface:address-wrapper":
    {
    }
}

creates netgate.interface.interfacesconfig.interface.ipv6.Address

post /data/netgate-interface:interfaces-config/interface={name}/ipv6/address

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/ipv6/address

creates netgate.interface.interfacesconfig.interface.ipv6.Address

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.ipv6.Address to be added to list

address
object (netgate.interface.interfacesconfig.interface.ipv6.Address)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.interface.interfacesconfig.interface.ipv6.Address

put /data/netgate-interface:interfaces-config/interface={name}/ipv6/address

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/ipv6/address

creates or updates netgate.interface.interfacesconfig.interface.ipv6.Address

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.ipv6.Address to be added or updated

netgate-interface:address-wrapper
object (netgate.interface.interfacesconfig.interface.ipv6.AddressWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.interface.interfacesconfig.interface.ipv6.Address

delete /data/netgate-interface:interfaces-config/interface={name}/ipv6/address

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/ipv6/address

removes netgate.interface.interfacesconfig.interface.ipv6.Address

path Parameters
name
required
string

Id of interface

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-interface:interfaces-config/interface=%7Bname%7D/ipv6/address"

	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.interface.interfacesconfig.interface.ipv6.Reassembly

get /data/netgate-interface:interfaces-config/interface={name}/ipv6/reassembly

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/ipv6/reassembly

ip-reassembly feature control.

path Parameters
name
required
string

Id of interface

Responses

200

netgate.interface.interfacesconfig.interface.ipv6.Reassembly

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/ipv6/reassembly"

	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-interface:reassembly-wrapper":
    {
    }
}

creates netgate.interface.interfacesconfig.interface.ipv6.Reassembly

post /data/netgate-interface:interfaces-config/interface={name}/ipv6/reassembly

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/ipv6/reassembly

ip-reassembly feature control.

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.ipv6.Reassembly to be added to list

reassembly
object (netgate.interface.interfacesconfig.interface.ipv6.Reassembly)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.interface.interfacesconfig.interface.ipv6.Reassembly

put /data/netgate-interface:interfaces-config/interface={name}/ipv6/reassembly

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/ipv6/reassembly

ip-reassembly feature control.

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.ipv6.Reassembly to be added or updated

netgate-interface:reassembly-wrapper
object (netgate.interface.interfacesconfig.interface.ipv6.ReassemblyWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.interface.interfacesconfig.interface.ipv6.Reassembly

delete /data/netgate-interface:interfaces-config/interface={name}/ipv6/reassembly

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/ipv6/reassembly

ip-reassembly feature control.

path Parameters
name
required
string

Id of interface

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-interface:interfaces-config/interface=%7Bname%7D/ipv6/reassembly"

	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.interface.interfacesconfig.interface.ipv6.Tcp

get /data/netgate-interface:interfaces-config/interface={name}/ipv6/tcp

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/ipv6/tcp

IPv6 TCP configuration values.

path Parameters
name
required
string

Id of interface

Responses

200

netgate.interface.interfacesconfig.interface.ipv6.Tcp

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/ipv6/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-interface:tcp-wrapper":
    {
    }
}

creates netgate.interface.interfacesconfig.interface.ipv6.Tcp

post /data/netgate-interface:interfaces-config/interface={name}/ipv6/tcp

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/ipv6/tcp

IPv6 TCP configuration values.

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.ipv6.Tcp to be added to list

tcp
object (netgate.interface.interfacesconfig.interface.ipv6.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.interface.interfacesconfig.interface.ipv6.Tcp

put /data/netgate-interface:interfaces-config/interface={name}/ipv6/tcp

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/ipv6/tcp

IPv6 TCP configuration values.

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.ipv6.Tcp to be added or updated

netgate-interface:tcp-wrapper
object (netgate.interface.interfacesconfig.interface.ipv6.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-interface:tcp-wrapper":
    {
    }
}

removes netgate.interface.interfacesconfig.interface.ipv6.Tcp

delete /data/netgate-interface:interfaces-config/interface={name}/ipv6/tcp

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/ipv6/tcp

IPv6 TCP configuration values.

path Parameters
name
required
string

Id of interface

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-interface:interfaces-config/interface=%7Bname%7D/ipv6/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.interface.interfacesconfig.interface.ipv6.tcp.Mss

get /data/netgate-interface:interfaces-config/interface={name}/ipv6/tcp/mss

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/ipv6/tcp/mss

IPv6 TCP Maximum Segment Size values.

path Parameters
name
required
string

Id of interface

Responses

200

netgate.interface.interfacesconfig.interface.ipv6.tcp.Mss

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/ipv6/tcp/mss"

	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-interface:mss-wrapper":
    {
    }
}

creates netgate.interface.interfacesconfig.interface.ipv6.tcp.Mss

post /data/netgate-interface:interfaces-config/interface={name}/ipv6/tcp/mss

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/ipv6/tcp/mss

IPv6 TCP Maximum Segment Size values.

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.ipv6.tcp.Mss to be added to list

mss
object (netgate.interface.interfacesconfig.interface.ipv6.tcp.Mss)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.interface.interfacesconfig.interface.ipv6.tcp.Mss

put /data/netgate-interface:interfaces-config/interface={name}/ipv6/tcp/mss

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/ipv6/tcp/mss

IPv6 TCP Maximum Segment Size values.

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.ipv6.tcp.Mss to be added or updated

netgate-interface:mss-wrapper
object (netgate.interface.interfacesconfig.interface.ipv6.tcp.MssWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.interface.interfacesconfig.interface.ipv6.tcp.Mss

delete /data/netgate-interface:interfaces-config/interface={name}/ipv6/tcp/mss

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/ipv6/tcp/mss

IPv6 TCP Maximum Segment Size values.

path Parameters
name
required
string

Id of interface

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-interface:interfaces-config/interface=%7Bname%7D/ipv6/tcp/mss"

	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.interface.interfacesconfig.interface.Lldp

get /data/netgate-interface:interfaces-config/interface={name}/lldp

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/lldp

returns netgate.interface.interfacesconfig.interface.Lldp

path Parameters
name
required
string

Id of interface

Responses

200

netgate.interface.interfacesconfig.interface.Lldp

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/lldp"

	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-interface:lldp-wrapper":
    {
    }
}

creates netgate.interface.interfacesconfig.interface.Lldp

post /data/netgate-interface:interfaces-config/interface={name}/lldp

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/lldp

creates netgate.interface.interfacesconfig.interface.Lldp

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.Lldp to be added to list

lldp
object (netgate.interface.interfacesconfig.interface.Lldp)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.interface.interfacesconfig.interface.Lldp

put /data/netgate-interface:interfaces-config/interface={name}/lldp

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/lldp

creates or updates netgate.interface.interfacesconfig.interface.Lldp

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.Lldp to be added or updated

netgate-interface:lldp-wrapper
object (netgate.interface.interfacesconfig.interface.LldpWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.interface.interfacesconfig.interface.Lldp

delete /data/netgate-interface:interfaces-config/interface={name}/lldp

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/lldp

removes netgate.interface.interfacesconfig.interface.Lldp

path Parameters
name
required
string

Id of interface

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-interface:interfaces-config/interface=%7Bname%7D/lldp"

	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.interface.interfacesconfig.interface.lldp.Management

get /data/netgate-interface:interfaces-config/interface={name}/lldp/management

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/lldp/management

returns netgate.interface.interfacesconfig.interface.lldp.Management

path Parameters
name
required
string

Id of interface

Responses

200

netgate.interface.interfacesconfig.interface.lldp.Management

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/lldp/management"

	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-interface:management-wrapper":
    {
    }
}

creates netgate.interface.interfacesconfig.interface.lldp.Management

post /data/netgate-interface:interfaces-config/interface={name}/lldp/management

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/lldp/management

creates netgate.interface.interfacesconfig.interface.lldp.Management

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.lldp.Management to be added to list

management
object (netgate.interface.interfacesconfig.interface.lldp.Management)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.interface.interfacesconfig.interface.lldp.Management

put /data/netgate-interface:interfaces-config/interface={name}/lldp/management

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/lldp/management

creates or updates netgate.interface.interfacesconfig.interface.lldp.Management

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.lldp.Management to be added or updated

netgate-interface:management-wrapper
object (netgate.interface.interfacesconfig.interface.lldp.ManagementWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.interface.interfacesconfig.interface.lldp.Management

delete /data/netgate-interface:interfaces-config/interface={name}/lldp/management

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/lldp/management

removes netgate.interface.interfacesconfig.interface.lldp.Management

path Parameters
name
required
string

Id of interface

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-interface:interfaces-config/interface=%7Bname%7D/lldp/management"

	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.interface.interfacesconfig.interface.Map

get /data/netgate-interface:interfaces-config/interface={name}/map

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/map

Per-interface parameters for MAP-E and MAP-T.

path Parameters
name
required
string

Id of interface

Responses

200

netgate.interface.interfacesconfig.interface.Map

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/map"

	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-interface:map-wrapper":
    {
    }
}

creates netgate.interface.interfacesconfig.interface.Map

post /data/netgate-interface:interfaces-config/interface={name}/map

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/map

Per-interface parameters for MAP-E and MAP-T.

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.Map to be added to list

map
object (netgate.interface.interfacesconfig.interface.Map)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.interface.interfacesconfig.interface.Map

put /data/netgate-interface:interfaces-config/interface={name}/map

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/map

Per-interface parameters for MAP-E and MAP-T.

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.Map to be added or updated

netgate-interface:map-wrapper
object (netgate.interface.interfacesconfig.interface.MapWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.interface.interfacesconfig.interface.Map

delete /data/netgate-interface:interfaces-config/interface={name}/map

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/map

Per-interface parameters for MAP-E and MAP-T.

path Parameters
name
required
string

Id of interface

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-interface:interfaces-config/interface=%7Bname%7D/map"

	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.interface.interfacesconfig.interface.VlanTagRewrite

get /data/netgate-interface:interfaces-config/interface={name}/vlan-tag-rewrite

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/vlan-tag-rewrite

returns netgate.interface.interfacesconfig.interface.VlanTagRewrite

path Parameters
name
required
string

Id of interface

Responses

200

netgate.interface.interfacesconfig.interface.VlanTagRewrite

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/vlan-tag-rewrite"

	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-interface:vlan-tag-rewrite-wrapper":
    {
    }
}

creates netgate.interface.interfacesconfig.interface.VlanTagRewrite

post /data/netgate-interface:interfaces-config/interface={name}/vlan-tag-rewrite

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/vlan-tag-rewrite

creates netgate.interface.interfacesconfig.interface.VlanTagRewrite

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.VlanTagRewrite to be added to list

vlan-tag-rewrite
object (netgate.interface.interfacesconfig.interface.VlanTagRewrite)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.interface.interfacesconfig.interface.VlanTagRewrite

put /data/netgate-interface:interfaces-config/interface={name}/vlan-tag-rewrite

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/vlan-tag-rewrite

creates or updates netgate.interface.interfacesconfig.interface.VlanTagRewrite

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.interface.VlanTagRewrite to be added or updated

netgate-interface:vlan-tag-rewrite-wrapper
object (netgate.interface.interfacesconfig.interface.VlanTagRewriteWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-interface:vlan-tag-rewrite-wrapper":
    {
    }
}

removes netgate.interface.interfacesconfig.interface.VlanTagRewrite

delete /data/netgate-interface:interfaces-config/interface={name}/vlan-tag-rewrite

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/interface={name}/vlan-tag-rewrite

removes netgate.interface.interfacesconfig.interface.VlanTagRewrite

path Parameters
name
required
string

Id of interface

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-interface:interfaces-config/interface=%7Bname%7D/vlan-tag-rewrite"

	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.interface.interfacesconfig.LoopbackTable

get /data/netgate-interface:interfaces-config/loopback-table

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/loopback-table

Loopback name table.

Responses

200

netgate.interface.interfacesconfig.LoopbackTable

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-config/loopback-table"

	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-interface:loopback-table-wrapper":
    {
    }
}

creates netgate.interface.interfacesconfig.LoopbackTable

post /data/netgate-interface:interfaces-config/loopback-table

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/loopback-table

Loopback name table.

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.LoopbackTable to be added to list

loopback-table
object (netgate.interface.interfacesconfig.LoopbackTable)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.interface.interfacesconfig.LoopbackTable

put /data/netgate-interface:interfaces-config/loopback-table

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/loopback-table

Loopback name table.

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.LoopbackTable to be added or updated

netgate-interface:loopback-table-wrapper
object (netgate.interface.interfacesconfig.LoopbackTableWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.interface.interfacesconfig.LoopbackTable

delete /data/netgate-interface:interfaces-config/loopback-table

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/loopback-table

Loopback name table.

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-interface:interfaces-config/loopback-table"

	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.interface.interfacesconfig.loopbacktable.Loopback

post /data/netgate-interface:interfaces-config/loopback-table/loopback

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/loopback-table/loopback

Loopback name.

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.loopbacktable.Loopback to be added to list

loopback
object (netgate.interface.interfacesconfig.loopbacktable.Loopback)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

returns netgate.interface.interfacesconfig.loopbacktable.Loopback

get /data/netgate-interface:interfaces-config/loopback-table/loopback={name}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/loopback-table/loopback={name}

Loopback name.

path Parameters
name
required
string

Id of loopback

Responses

200

netgate.interface.interfacesconfig.loopbacktable.Loopback

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-config/loopback-table/loopback=%7Bname%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-interface:loopback-wrapper":
    {
    }
}

creates or updates netgate.interface.interfacesconfig.loopbacktable.Loopback

put /data/netgate-interface:interfaces-config/loopback-table/loopback={name}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/loopback-table/loopback={name}

Loopback name.

path Parameters
name
required
string

Id of loopback

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.loopbacktable.Loopback to be added or updated

netgate-interface:loopback-wrapper
object (netgate.interface.interfacesconfig.loopbacktable.LoopbackWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.interface.interfacesconfig.loopbacktable.Loopback

delete /data/netgate-interface:interfaces-config/loopback-table/loopback={name}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/loopback-table/loopback={name}

Loopback name.

path Parameters
name
required
string

Id of loopback

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-interface:interfaces-config/loopback-table/loopback=%7Bname%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.interface.interfacesconfig.MemifTable

get /data/netgate-interface:interfaces-config/memif-table

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/memif-table

Host memif interface configuration table.

Responses

200

netgate.interface.interfacesconfig.MemifTable

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-config/memif-table"

	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-interface:memif-table-wrapper":
    {
    }
}

creates netgate.interface.interfacesconfig.MemifTable

post /data/netgate-interface:interfaces-config/memif-table

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/memif-table

Host memif interface configuration table.

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.MemifTable to be added to list

memif-table
object (netgate.interface.interfacesconfig.MemifTable)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.interface.interfacesconfig.MemifTable

put /data/netgate-interface:interfaces-config/memif-table

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/memif-table

Host memif interface configuration table.

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.MemifTable to be added or updated

netgate-interface:memif-table-wrapper
object (netgate.interface.interfacesconfig.MemifTableWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.interface.interfacesconfig.MemifTable

delete /data/netgate-interface:interfaces-config/memif-table

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/memif-table

Host memif interface configuration table.

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-interface:interfaces-config/memif-table"

	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.interface.interfacesconfig.memiftable.MemifEntry

post /data/netgate-interface:interfaces-config/memif-table/memif-entry

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/memif-table/memif-entry

A unique 32-bit integer identifying this interface.

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.memiftable.MemifEntry to be added to list

memif-entry
object (netgate.interface.interfacesconfig.memiftable.MemifEntry)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

returns netgate.interface.interfacesconfig.memiftable.MemifEntry

get /data/netgate-interface:interfaces-config/memif-table/memif-entry={socket-id},{memif-id}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/memif-table/memif-entry={socket-id},{memif-id}

A unique 32-bit integer identifying this interface.

path Parameters
socket-id
required
integer <int64>

Id of memif-entry

memif-id
required
integer <int64>

Id of memif-entry

Responses

200

netgate.interface.interfacesconfig.memiftable.MemifEntry

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-config/memif-table/memif-entry=%7Bsocket-id%7D,%7Bmemif-id%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-interface:memif-entry-wrapper":
    {
    }
}

creates or updates netgate.interface.interfacesconfig.memiftable.MemifEntry

put /data/netgate-interface:interfaces-config/memif-table/memif-entry={socket-id},{memif-id}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/memif-table/memif-entry={socket-id},{memif-id}

A unique 32-bit integer identifying this interface.

path Parameters
socket-id
required
integer <int64>

Id of memif-entry

memif-id
required
integer <int64>

Id of memif-entry

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.memiftable.MemifEntry to be added or updated

netgate-interface:memif-entry-wrapper
object (netgate.interface.interfacesconfig.memiftable.MemifEntryWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.interface.interfacesconfig.memiftable.MemifEntry

delete /data/netgate-interface:interfaces-config/memif-table/memif-entry={socket-id},{memif-id}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/memif-table/memif-entry={socket-id},{memif-id}

A unique 32-bit integer identifying this interface.

path Parameters
socket-id
required
integer <int64>

Id of memif-entry

memif-id
required
integer <int64>

Id of memif-entry

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-interface:interfaces-config/memif-table/memif-entry=%7Bsocket-id%7D,%7Bmemif-id%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.interface.interfacesconfig.memiftable.memifentry.Client

get /data/netgate-interface:interfaces-config/memif-table/memif-entry={socket-id},{memif-id}/client

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/memif-table/memif-entry={socket-id},{memif-id}/client

returns netgate.interface.interfacesconfig.memiftable.memifentry.Client

path Parameters
socket-id
required
integer <int64>

Id of memif-entry

memif-id
required
integer <int64>

Id of memif-entry

Responses

200

netgate.interface.interfacesconfig.memiftable.memifentry.Client

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-config/memif-table/memif-entry=%7Bsocket-id%7D,%7Bmemif-id%7D/client"

	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-interface:client-wrapper":
    {
    }
}

creates netgate.interface.interfacesconfig.memiftable.memifentry.Client

post /data/netgate-interface:interfaces-config/memif-table/memif-entry={socket-id},{memif-id}/client

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/memif-table/memif-entry={socket-id},{memif-id}/client

creates netgate.interface.interfacesconfig.memiftable.memifentry.Client

path Parameters
socket-id
required
integer <int64>

Id of memif-entry

memif-id
required
integer <int64>

Id of memif-entry

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.memiftable.memifentry.Client to be added to list

client
object (netgate.interface.interfacesconfig.memiftable.memifentry.Client)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.interface.interfacesconfig.memiftable.memifentry.Client

put /data/netgate-interface:interfaces-config/memif-table/memif-entry={socket-id},{memif-id}/client

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/memif-table/memif-entry={socket-id},{memif-id}/client

creates or updates netgate.interface.interfacesconfig.memiftable.memifentry.Client

path Parameters
socket-id
required
integer <int64>

Id of memif-entry

memif-id
required
integer <int64>

Id of memif-entry

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.memiftable.memifentry.Client to be added or updated

netgate-interface:client-wrapper
object (netgate.interface.interfacesconfig.memiftable.memifentry.ClientWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.interface.interfacesconfig.memiftable.memifentry.Client

delete /data/netgate-interface:interfaces-config/memif-table/memif-entry={socket-id},{memif-id}/client

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/memif-table/memif-entry={socket-id},{memif-id}/client

removes netgate.interface.interfacesconfig.memiftable.memifentry.Client

path Parameters
socket-id
required
integer <int64>

Id of memif-entry

memif-id
required
integer <int64>

Id of memif-entry

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-interface:interfaces-config/memif-table/memif-entry=%7Bsocket-id%7D,%7Bmemif-id%7D/client"

	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.interface.interfacesconfig.SocketTable

get /data/netgate-interface:interfaces-config/socket-table

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/socket-table

Host memif socket table.

Responses

200

netgate.interface.interfacesconfig.SocketTable

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-config/socket-table"

	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-interface:socket-table-wrapper":
    {
    }
}

creates netgate.interface.interfacesconfig.SocketTable

post /data/netgate-interface:interfaces-config/socket-table

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/socket-table

Host memif socket table.

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.SocketTable to be added to list

socket-table
object (netgate.interface.interfacesconfig.SocketTable)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.interface.interfacesconfig.SocketTable

put /data/netgate-interface:interfaces-config/socket-table

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/socket-table

Host memif socket table.

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.SocketTable to be added or updated

netgate-interface:socket-table-wrapper
object (netgate.interface.interfacesconfig.SocketTableWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.interface.interfacesconfig.SocketTable

delete /data/netgate-interface:interfaces-config/socket-table

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/socket-table

Host memif socket table.

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-interface:interfaces-config/socket-table"

	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.interface.interfacesconfig.sockettable.Socket

post /data/netgate-interface:interfaces-config/socket-table/socket

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/socket-table/socket

A unique 32-bit integer identifying this socket filename.

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.sockettable.Socket to be added to list

socket
object (netgate.interface.interfacesconfig.sockettable.Socket)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

returns netgate.interface.interfacesconfig.sockettable.Socket

get /data/netgate-interface:interfaces-config/socket-table/socket={id}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/socket-table/socket={id}

A unique 32-bit integer identifying this socket filename.

path Parameters
id
required
integer <int64>

Id of socket

Responses

200

netgate.interface.interfacesconfig.sockettable.Socket

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-config/socket-table/socket=%7Bid%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-interface:socket-wrapper":
    {
    }
}

creates or updates netgate.interface.interfacesconfig.sockettable.Socket

put /data/netgate-interface:interfaces-config/socket-table/socket={id}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/socket-table/socket={id}

A unique 32-bit integer identifying this socket filename.

path Parameters
id
required
integer <int64>

Id of socket

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.sockettable.Socket to be added or updated

netgate-interface:socket-wrapper
object (netgate.interface.interfacesconfig.sockettable.SocketWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.interface.interfacesconfig.sockettable.Socket

delete /data/netgate-interface:interfaces-config/socket-table/socket={id}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/socket-table/socket={id}

A unique 32-bit integer identifying this socket filename.

path Parameters
id
required
integer <int64>

Id of socket

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-interface:interfaces-config/socket-table/socket=%7Bid%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.interface.interfacesconfig.Subinterfaces

get /data/netgate-interface:interfaces-config/subinterfaces

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/subinterfaces

An interface may have subinterfaces.

Responses

200

netgate.interface.interfacesconfig.Subinterfaces

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-config/subinterfaces"

	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-interface:subinterfaces-wrapper":
    {
    }
}

creates netgate.interface.interfacesconfig.Subinterfaces

post /data/netgate-interface:interfaces-config/subinterfaces

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/subinterfaces

An interface may have subinterfaces.

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.Subinterfaces to be added to list

subinterfaces
object (netgate.interface.interfacesconfig.Subinterfaces)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.interface.interfacesconfig.Subinterfaces

put /data/netgate-interface:interfaces-config/subinterfaces

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/subinterfaces

An interface may have subinterfaces.

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.Subinterfaces to be added or updated

netgate-interface:subinterfaces-wrapper
object (netgate.interface.interfacesconfig.SubinterfacesWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.interface.interfacesconfig.Subinterfaces

delete /data/netgate-interface:interfaces-config/subinterfaces

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/subinterfaces

An interface may have subinterfaces.

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-interface:interfaces-config/subinterfaces"

	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.interface.interfacesconfig.subinterfaces.SubifEntry

post /data/netgate-interface:interfaces-config/subinterfaces/subif-entry

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/subinterfaces/subif-entry

Each subinterface entry represents a VLAN.

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.subinterfaces.SubifEntry to be added to list

subif-entry
object (netgate.interface.interfacesconfig.subinterfaces.SubifEntry)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

returns netgate.interface.interfacesconfig.subinterfaces.SubifEntry

get /data/netgate-interface:interfaces-config/subinterfaces/subif-entry={if-name},{subid}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/subinterfaces/subif-entry={if-name},{subid}

Each subinterface entry represents a VLAN.

path Parameters
if-name
required
string

Id of subif-entry

subid
required
integer <int64>

Id of subif-entry

Responses

200

netgate.interface.interfacesconfig.subinterfaces.SubifEntry

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-config/subinterfaces/subif-entry=%7Bif-name%7D,%7Bsubid%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-interface:subif-entry-wrapper":
    {
    }
}

creates or updates netgate.interface.interfacesconfig.subinterfaces.SubifEntry

put /data/netgate-interface:interfaces-config/subinterfaces/subif-entry={if-name},{subid}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/subinterfaces/subif-entry={if-name},{subid}

Each subinterface entry represents a VLAN.

path Parameters
if-name
required
string

Id of subif-entry

subid
required
integer <int64>

Id of subif-entry

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.subinterfaces.SubifEntry to be added or updated

netgate-interface:subif-entry-wrapper
object (netgate.interface.interfacesconfig.subinterfaces.SubifEntryWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.interface.interfacesconfig.subinterfaces.SubifEntry

delete /data/netgate-interface:interfaces-config/subinterfaces/subif-entry={if-name},{subid}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/subinterfaces/subif-entry={if-name},{subid}

Each subinterface entry represents a VLAN.

path Parameters
if-name
required
string

Id of subif-entry

subid
required
integer <int64>

Id of subif-entry

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-interface:interfaces-config/subinterfaces/subif-entry=%7Bif-name%7D,%7Bsubid%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.interface.interfacesconfig.subinterfaces.subifentry.Vlan

get /data/netgate-interface:interfaces-config/subinterfaces/subif-entry={if-name},{subid}/vlan

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/subinterfaces/subif-entry={if-name},{subid}/vlan

These fields all contribute to the subinterface definition for VLAN handling.

path Parameters
if-name
required
string

Id of subif-entry

subid
required
integer <int64>

Id of subif-entry

Responses

200

netgate.interface.interfacesconfig.subinterfaces.subifentry.Vlan

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-config/subinterfaces/subif-entry=%7Bif-name%7D,%7Bsubid%7D/vlan"

	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-interface:vlan-wrapper":
    {
    }
}

creates netgate.interface.interfacesconfig.subinterfaces.subifentry.Vlan

post /data/netgate-interface:interfaces-config/subinterfaces/subif-entry={if-name},{subid}/vlan

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/subinterfaces/subif-entry={if-name},{subid}/vlan

These fields all contribute to the subinterface definition for VLAN handling.

path Parameters
if-name
required
string

Id of subif-entry

subid
required
integer <int64>

Id of subif-entry

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.subinterfaces.subifentry.Vlan to be added to list

vlan
object (netgate.interface.interfacesconfig.subinterfaces.subifentry.Vlan)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.interface.interfacesconfig.subinterfaces.subifentry.Vlan

put /data/netgate-interface:interfaces-config/subinterfaces/subif-entry={if-name},{subid}/vlan

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/subinterfaces/subif-entry={if-name},{subid}/vlan

These fields all contribute to the subinterface definition for VLAN handling.

path Parameters
if-name
required
string

Id of subif-entry

subid
required
integer <int64>

Id of subif-entry

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.subinterfaces.subifentry.Vlan to be added or updated

netgate-interface:vlan-wrapper
object (netgate.interface.interfacesconfig.subinterfaces.subifentry.VlanWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.interface.interfacesconfig.subinterfaces.subifentry.Vlan

delete /data/netgate-interface:interfaces-config/subinterfaces/subif-entry={if-name},{subid}/vlan

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/subinterfaces/subif-entry={if-name},{subid}/vlan

These fields all contribute to the subinterface definition for VLAN handling.

path Parameters
if-name
required
string

Id of subif-entry

subid
required
integer <int64>

Id of subif-entry

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-interface:interfaces-config/subinterfaces/subif-entry=%7Bif-name%7D,%7Bsubid%7D/vlan"

	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.interface.interfacesconfig.TapTable

get /data/netgate-interface:interfaces-config/tap-table

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/tap-table

Host Tap interface configuration table.

Responses

200

netgate.interface.interfacesconfig.TapTable

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-config/tap-table"

	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-interface:tap-table-wrapper":
    {
    }
}

creates netgate.interface.interfacesconfig.TapTable

post /data/netgate-interface:interfaces-config/tap-table

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/tap-table

Host Tap interface configuration table.

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.TapTable to be added to list

tap-table
object (netgate.interface.interfacesconfig.TapTable)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.interface.interfacesconfig.TapTable

put /data/netgate-interface:interfaces-config/tap-table

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/tap-table

Host Tap interface configuration table.

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.TapTable to be added or updated

netgate-interface:tap-table-wrapper
object (netgate.interface.interfacesconfig.TapTableWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.interface.interfacesconfig.TapTable

delete /data/netgate-interface:interfaces-config/tap-table

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/tap-table

Host Tap interface configuration table.

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-interface:interfaces-config/tap-table"

	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.interface.interfacesconfig.taptable.Tap

post /data/netgate-interface:interfaces-config/tap-table/tap

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/tap-table/tap

Unique identifing host tap name.

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.taptable.Tap to be added to list

tap
object (netgate.interface.interfacesconfig.taptable.Tap)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

returns netgate.interface.interfacesconfig.taptable.Tap

get /data/netgate-interface:interfaces-config/tap-table/tap={host-name}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/tap-table/tap={host-name}

Unique identifing host tap name.

path Parameters
host-name
required
string

Id of tap

Responses

200

netgate.interface.interfacesconfig.taptable.Tap

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-config/tap-table/tap=%7Bhost-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-interface:tap-wrapper":
    {
    }
}

creates or updates netgate.interface.interfacesconfig.taptable.Tap

put /data/netgate-interface:interfaces-config/tap-table/tap={host-name}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/tap-table/tap={host-name}

Unique identifing host tap name.

path Parameters
host-name
required
string

Id of tap

Request Body schema: application/yang-data+json

netgate.interface.interfacesconfig.taptable.Tap to be added or updated

netgate-interface:tap-wrapper
object (netgate.interface.interfacesconfig.taptable.TapWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.interface.interfacesconfig.taptable.Tap

delete /data/netgate-interface:interfaces-config/tap-table/tap={host-name}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-config/tap-table/tap={host-name}

Unique identifing host tap name.

path Parameters
host-name
required
string

Id of tap

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-interface:interfaces-config/tap-table/tap=%7Bhost-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))

}

interfaces-state

returns netgate.interface.InterfacesState

get /data/netgate-interface:interfaces-state

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state

Interface state information.

Responses

200

netgate.interface.InterfacesState

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-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-interface:interfaces-state-wrapper":
    {
    }
}

returns netgate.interface.interfacesstate.BondTable

get /data/netgate-interface:interfaces-state/bond-table

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state/bond-table

Bond interface state table.

Responses

200

netgate.interface.interfacesstate.BondTable

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-state/bond-table"

	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-interface:bond-table-wrapper":
    {
    }
}

returns netgate.interface.interfacesstate.bondtable.Bond

get /data/netgate-interface:interfaces-state/bond-table/bond={instance}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state/bond-table/bond={instance}

Bond interface.

path Parameters
instance
required
integer <int64>

Id of bond

Responses

200

netgate.interface.interfacesstate.bondtable.Bond

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-state/bond-table/bond=%7Binstance%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-interface:bond-wrapper":
    {
    }
}

returns netgate.interface.interfacesstate.bondtable.bond.SlaveIfTable

get /data/netgate-interface:interfaces-state/bond-table/bond={instance}/slave-if-table

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state/bond-table/bond={instance}/slave-if-table

The list of slave interfaces.

path Parameters
instance
required
integer <int64>

Id of bond

Responses

200

netgate.interface.interfacesstate.bondtable.bond.SlaveIfTable

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-state/bond-table/bond=%7Binstance%7D/slave-if-table"

	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-interface:slave-if-table-wrapper":
    {
    }
}

returns netgate.interface.interfacesstate.bondtable.bond.slaveiftable.SlaveIf

get /data/netgate-interface:interfaces-state/bond-table/bond={instance}/slave-if-table/slave-if={if-name}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state/bond-table/bond={instance}/slave-if-table/slave-if={if-name}

Slave interface.

path Parameters
instance
required
integer <int64>

Id of bond

if-name
required
string

Id of slave-if

Responses

200

netgate.interface.interfacesstate.bondtable.bond.slaveiftable.SlaveIf

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-state/bond-table/bond=%7Binstance%7D/slave-if-table/slave-if=%7Bif-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-interface:slave-if-wrapper":
    {
    }
}

returns netgate.interface.interfacesstate.BridgeTable

get /data/netgate-interface:interfaces-state/bridge-table

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state/bridge-table

Bridge mapping table.

Responses

200

netgate.interface.interfacesstate.BridgeTable

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-state/bridge-table"

	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-interface:bridge-table-wrapper":
    {
    }
}

returns netgate.interface.interfacesstate.bridgetable.BridgeEntry

get /data/netgate-interface:interfaces-state/bridge-table/bridge-entry={bdi}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state/bridge-table/bridge-entry={bdi}

Bridge Domain Id.

path Parameters
bdi
required
integer <int64>

Id of bridge-entry

Responses

200

netgate.interface.interfacesstate.bridgetable.BridgeEntry

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-state/bridge-table/bridge-entry=%7Bbdi%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-interface:bridge-entry-wrapper":
    {
    }
}

returns netgate.interface.interfacesstate.bridgetable.bridgeentry.BridgeArpTable

get /data/netgate-interface:interfaces-state/bridge-table/bridge-entry={bdi}/bridge-arp-table

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state/bridge-table/bridge-entry={bdi}/bridge-arp-table

Bridge ARP Entry Table.

path Parameters
bdi
required
integer <int64>

Id of bridge-entry

Responses

200

netgate.interface.interfacesstate.bridgetable.bridgeentry.BridgeArpTable

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-state/bridge-table/bridge-entry=%7Bbdi%7D/bridge-arp-table"

	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-interface:bridge-arp-table-wrapper":
    {
    }
}

returns netgate.interface.interfacesstate.bridgetable.bridgeentry.bridgearptable.BridgeArpEntry

get /data/netgate-interface:interfaces-state/bridge-table/bridge-entry={bdi}/bridge-arp-table/bridge-arp-entry={ip-address}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state/bridge-table/bridge-entry={bdi}/bridge-arp-table/bridge-arp-entry={ip-address}

Bridge ARP entry table.

path Parameters
bdi
required
integer <int64>

Id of bridge-entry

ip-address
required
string

Id of bridge-arp-entry

Responses

200

netgate.interface.interfacesstate.bridgetable.bridgeentry.bridgearptable.BridgeArpEntry

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-state/bridge-table/bridge-entry=%7Bbdi%7D/bridge-arp-table/bridge-arp-entry=%7Bip-address%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-interface:bridge-arp-entry-wrapper":
    {
    }
}

returns netgate.interface.interfacesstate.bridgetable.bridgeentry.DomainIfMembers

get /data/netgate-interface:interfaces-state/bridge-table/bridge-entry={bdi}/domain-if-members

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state/bridge-table/bridge-entry={bdi}/domain-if-members

Bridge Domain Interface Members.

path Parameters
bdi
required
integer <int64>

Id of bridge-entry

Responses

200

netgate.interface.interfacesstate.bridgetable.bridgeentry.DomainIfMembers

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-state/bridge-table/bridge-entry=%7Bbdi%7D/domain-if-members"

	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-interface:domain-if-members-wrapper":
    {
    }
}

returns netgate.interface.interfacesstate.bridgetable.bridgeentry.domainifmembers.DomainIf

get /data/netgate-interface:interfaces-state/bridge-table/bridge-entry={bdi}/domain-if-members/domain-if={if-name}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state/bridge-table/bridge-entry={bdi}/domain-if-members/domain-if={if-name}

Bridge domain interface members.

path Parameters
bdi
required
integer <int64>

Id of bridge-entry

if-name
required
string

Id of domain-if

Responses

200

netgate.interface.interfacesstate.bridgetable.bridgeentry.domainifmembers.DomainIf

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-state/bridge-table/bridge-entry=%7Bbdi%7D/domain-if-members/domain-if=%7Bif-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-interface:domain-if-wrapper":
    {
    }
}

returns netgate.interface.interfacesstate.Interface

get /data/netgate-interface:interfaces-state/interface={name}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state/interface={name}

The list of interfaces on the device.

path Parameters
name
required
string

Id of interface

Responses

200

netgate.interface.interfacesstate.Interface

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-state/interface=%7Bname%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-interface:interface-wrapper":
    {
    }
}

returns netgate.interface.interfacesstate.interface.AccessList

get /data/netgate-interface:interfaces-state/interface={name}/access-list

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state/interface={name}/access-list

If the interface has any Access Control Lists, they are listed here in two groups: those that apply to packet ingress and those that apply to egresss. The two sets of ACLs are sorted independenty and applied in ascending sequence-number order.

path Parameters
name
required
string

Id of interface

Responses

200

netgate.interface.interfacesstate.interface.AccessList

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-state/interface=%7Bname%7D/access-list"

	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-interface:access-list-wrapper":
    {
    }
}

returns netgate.interface.interfacesstate.interface.accesslist.Input

get /data/netgate-interface:interfaces-state/interface={name}/access-list/input

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state/interface={name}/access-list/input

These are the ACL rule-sets that apply to ingress packets.

path Parameters
name
required
string

Id of interface

Responses

200

netgate.interface.interfacesstate.interface.accesslist.Input

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-state/interface=%7Bname%7D/access-list/input"

	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-interface:input-wrapper":
    {
    }
}

returns netgate.interface.interfacesstate.interface.accesslist.input.AclList

get /data/netgate-interface:interfaces-state/interface={name}/access-list/input/acl-list={sequence}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state/interface={name}/access-list/input/acl-list={sequence}

Each ACL rule-set can appear at most once within the input list.

path Parameters
name
required
string

Id of interface

sequence
required
integer <int64>

Id of acl-list

Responses

200

netgate.interface.interfacesstate.interface.accesslist.input.AclList

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-state/interface=%7Bname%7D/access-list/input/acl-list=%7Bsequence%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-interface:acl-list-wrapper":
    {
    }
}

returns netgate.interface.interfacesstate.interface.accesslist.Macip

get /data/netgate-interface:interfaces-state/interface={name}/access-list/macip

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state/interface={name}/access-list/macip

An interface may also have at most one ACL based upon a combination of MAC address and IP. If that ACL is present, it is always on the ingress packets.

path Parameters
name
required
string

Id of interface

Responses

200

netgate.interface.interfacesstate.interface.accesslist.Macip

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-state/interface=%7Bname%7D/access-list/macip"

	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-interface:macip-wrapper":
    {
    }
}

returns netgate.interface.interfacesstate.interface.accesslist.Output

get /data/netgate-interface:interfaces-state/interface={name}/access-list/output

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state/interface={name}/access-list/output

These are the ACL rule-sets that apply to egress packets.

path Parameters
name
required
string

Id of interface

Responses

200

netgate.interface.interfacesstate.interface.accesslist.Output

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-state/interface=%7Bname%7D/access-list/output"

	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-interface:output-wrapper":
    {
    }
}

returns netgate.interface.interfacesstate.interface.accesslist.output.AclList

get /data/netgate-interface:interfaces-state/interface={name}/access-list/output/acl-list={sequence}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state/interface={name}/access-list/output/acl-list={sequence}

Each ACL rule-set can appear at most once within the output list.

path Parameters
name
required
string

Id of interface

sequence
required
integer <int64>

Id of acl-list

Responses

200

netgate.interface.interfacesstate.interface.accesslist.output.AclList

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-state/interface=%7Bname%7D/access-list/output/acl-list=%7Bsequence%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-interface:acl-list-wrapper":
    {
    }
}

returns netgate.interface.interfacesstate.interface.Bond

get /data/netgate-interface:interfaces-state/interface={name}/bond

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state/interface={name}/bond

If the interface is being used as a slave, this node contains the corresponding bond interface.

path Parameters
name
required
string

Id of interface

Responses

200

netgate.interface.interfacesstate.interface.Bond

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-state/interface=%7Bname%7D/bond"

	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-interface:bond-wrapper":
    {
    }
}

returns netgate.interface.interfacesstate.interface.Counters

get /data/netgate-interface:interfaces-state/interface={name}/counters

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state/interface={name}/counters

Per-interface counters from VPP.

path Parameters
name
required
string

Id of interface

Responses

200

netgate.interface.interfacesstate.interface.Counters

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-state/interface=%7Bname%7D/counters"

	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-interface:counters-wrapper":
    {
    }
}

returns netgate.interface.interfacesstate.interface.Ipv4

get /data/netgate-interface:interfaces-state/interface={name}/ipv4

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state/interface={name}/ipv4

IPv4 address family state information.

path Parameters
name
required
string

Id of interface

Responses

200

netgate.interface.interfacesstate.interface.Ipv4

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-state/interface=%7Bname%7D/ipv4"

	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-interface:ipv4-wrapper":
    {
    }
}

returns netgate.interface.interfacesstate.interface.ipv4.Address

get /data/netgate-interface:interfaces-state/interface={name}/ipv4/address

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state/interface={name}/ipv4/address

returns netgate.interface.interfacesstate.interface.ipv4.Address

path Parameters
name
required
string

Id of interface

Responses

200

netgate.interface.interfacesstate.interface.ipv4.Address

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-state/interface=%7Bname%7D/ipv4/address"

	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-interface:address-wrapper":
    {
    }
}

returns netgate.interface.interfacesstate.interface.ipv4.Tcp

get /data/netgate-interface:interfaces-state/interface={name}/ipv4/tcp

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state/interface={name}/ipv4/tcp

IPv4 TCP values.

path Parameters
name
required
string

Id of interface

Responses

200

netgate.interface.interfacesstate.interface.ipv4.Tcp

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-state/interface=%7Bname%7D/ipv4/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-interface:tcp-wrapper":
    {
    }
}

returns netgate.interface.interfacesstate.interface.ipv4.tcp.Mss

get /data/netgate-interface:interfaces-state/interface={name}/ipv4/tcp/mss

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state/interface={name}/ipv4/tcp/mss

IPv4 TCP Maximum Segment Size values.

path Parameters
name
required
string

Id of interface

Responses

200

netgate.interface.interfacesstate.interface.ipv4.tcp.Mss

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-state/interface=%7Bname%7D/ipv4/tcp/mss"

	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-interface:mss-wrapper":
    {
    }
}

returns netgate.interface.interfacesstate.interface.Ipv6

get /data/netgate-interface:interfaces-state/interface={name}/ipv6

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state/interface={name}/ipv6

IPv6 address family state information.

path Parameters
name
required
string

Id of interface

Responses

200

netgate.interface.interfacesstate.interface.Ipv6

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-state/interface=%7Bname%7D/ipv6"

	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-interface:ipv6-wrapper":
    {
    }
}

returns netgate.interface.interfacesstate.interface.ipv6.Address

get /data/netgate-interface:interfaces-state/interface={name}/ipv6/address

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state/interface={name}/ipv6/address

returns netgate.interface.interfacesstate.interface.ipv6.Address

path Parameters
name
required
string

Id of interface

Responses

200

netgate.interface.interfacesstate.interface.ipv6.Address

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-state/interface=%7Bname%7D/ipv6/address"

	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-interface:address-wrapper":
    {
    }
}

returns netgate.interface.interfacesstate.interface.ipv6.Tcp

get /data/netgate-interface:interfaces-state/interface={name}/ipv6/tcp

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state/interface={name}/ipv6/tcp

IPv6 TCP values.

path Parameters
name
required
string

Id of interface

Responses

200

netgate.interface.interfacesstate.interface.ipv6.Tcp

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-state/interface=%7Bname%7D/ipv6/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-interface:tcp-wrapper":
    {
    }
}

returns netgate.interface.interfacesstate.interface.ipv6.tcp.Mss

get /data/netgate-interface:interfaces-state/interface={name}/ipv6/tcp/mss

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state/interface={name}/ipv6/tcp/mss

IPv6 TCP Maximum Segment Size values.

path Parameters
name
required
string

Id of interface

Responses

200

netgate.interface.interfacesstate.interface.ipv6.tcp.Mss

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-state/interface=%7Bname%7D/ipv6/tcp/mss"

	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-interface:mss-wrapper":
    {
    }
}

returns netgate.interface.interfacesstate.interface.SlaveIfTable

get /data/netgate-interface:interfaces-state/interface={name}/slave-if-table

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state/interface={name}/slave-if-table

If the interface is a bond interface, this node contains the list of its slave interfaces.

path Parameters
name
required
string

Id of interface

Responses

200

netgate.interface.interfacesstate.interface.SlaveIfTable

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-state/interface=%7Bname%7D/slave-if-table"

	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-interface:slave-if-table-wrapper":
    {
    }
}

returns netgate.interface.interfacesstate.interface.slaveiftable.SlaveIf

get /data/netgate-interface:interfaces-state/interface={name}/slave-if-table/slave-if={if-name}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state/interface={name}/slave-if-table/slave-if={if-name}

Slave interface.

path Parameters
name
required
string

Id of interface

if-name
required
string

Id of slave-if

Responses

200

netgate.interface.interfacesstate.interface.slaveiftable.SlaveIf

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-state/interface=%7Bname%7D/slave-if-table/slave-if=%7Bif-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-interface:slave-if-wrapper":
    {
    }
}

returns netgate.interface.interfacesstate.interface.Subif

get /data/netgate-interface:interfaces-state/interface={name}/subif

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state/interface={name}/subif

These fields all contribute to the subinterface definition for VLAN handling.

path Parameters
name
required
string

Id of interface

Responses

200

netgate.interface.interfacesstate.interface.Subif

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-state/interface=%7Bname%7D/subif"

	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-interface:subif-wrapper":
    {
    }
}

returns netgate.interface.interfacesstate.interface.VlanTagRewrite

get /data/netgate-interface:interfaces-state/interface={name}/vlan-tag-rewrite

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state/interface={name}/vlan-tag-rewrite

returns netgate.interface.interfacesstate.interface.VlanTagRewrite

path Parameters
name
required
string

Id of interface

Responses

200

netgate.interface.interfacesstate.interface.VlanTagRewrite

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-state/interface=%7Bname%7D/vlan-tag-rewrite"

	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-interface:vlan-tag-rewrite-wrapper":
    {
    }
}

returns netgate.interface.interfacesstate.LacpTable

get /data/netgate-interface:interfaces-state/lacp-table

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state/lacp-table

Link Aggregation Control Protocol (LACP) state table.

Responses

200

netgate.interface.interfacesstate.LacpTable

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-state/lacp-table"

	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-interface:lacp-table-wrapper":
    {
    }
}

returns netgate.interface.interfacesstate.lacptable.LacpEntry

get /data/netgate-interface:interfaces-state/lacp-table/lacp-entry={slave-if-name}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state/lacp-table/lacp-entry={slave-if-name}

LACP entry.

path Parameters
slave-if-name
required
string

Id of lacp-entry

Responses

200

netgate.interface.interfacesstate.lacptable.LacpEntry

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-state/lacp-table/lacp-entry=%7Bslave-if-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-interface:lacp-entry-wrapper":
    {
    }
}

returns netgate.interface.interfacesstate.lacptable.lacpentry.Actor

get /data/netgate-interface:interfaces-state/lacp-table/lacp-entry={slave-if-name}/actor

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state/lacp-table/lacp-entry={slave-if-name}/actor

The actor parameters.

path Parameters
slave-if-name
required
string

Id of lacp-entry

Responses

200

netgate.interface.interfacesstate.lacptable.lacpentry.Actor

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-state/lacp-table/lacp-entry=%7Bslave-if-name%7D/actor"

	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-interface:actor-wrapper":
    {
    }
}

returns netgate.interface.interfacesstate.lacptable.lacpentry.Partner

get /data/netgate-interface:interfaces-state/lacp-table/lacp-entry={slave-if-name}/partner

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state/lacp-table/lacp-entry={slave-if-name}/partner

The partner parameters.

path Parameters
slave-if-name
required
string

Id of lacp-entry

Responses

200

netgate.interface.interfacesstate.lacptable.lacpentry.Partner

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-state/lacp-table/lacp-entry=%7Bslave-if-name%7D/partner"

	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-interface:partner-wrapper":
    {
    }
}

returns netgate.interface.interfacesstate.LoopbackTable

get /data/netgate-interface:interfaces-state/loopback-table

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state/loopback-table

Loopback name table.

Responses

200

netgate.interface.interfacesstate.LoopbackTable

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-state/loopback-table"

	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-interface:loopback-table-wrapper":
    {
    }
}

returns netgate.interface.interfacesstate.loopbacktable.Loopback

get /data/netgate-interface:interfaces-state/loopback-table/loopback={name}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state/loopback-table/loopback={name}

Loopback name.

path Parameters
name
required
string

Id of loopback

Responses

200

netgate.interface.interfacesstate.loopbacktable.Loopback

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-state/loopback-table/loopback=%7Bname%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-interface:loopback-wrapper":
    {
    }
}

returns netgate.interface.interfacesstate.MemifTable

get /data/netgate-interface:interfaces-state/memif-table

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state/memif-table

Host memif interface state table.

Responses

200

netgate.interface.interfacesstate.MemifTable

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-state/memif-table"

	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-interface:memif-table-wrapper":
    {
    }
}

returns netgate.interface.interfacesstate.memiftable.MemifEntry

get /data/netgate-interface:interfaces-state/memif-table/memif-entry={socket-id},{memif-id}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state/memif-table/memif-entry={socket-id},{memif-id}

A unique 32-bit integer identifying this interface.

path Parameters
socket-id
required
integer <int64>

Id of memif-entry

memif-id
required
integer <int64>

Id of memif-entry

Responses

200

netgate.interface.interfacesstate.memiftable.MemifEntry

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-state/memif-table/memif-entry=%7Bsocket-id%7D,%7Bmemif-id%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-interface:memif-entry-wrapper":
    {
    }
}

returns netgate.interface.interfacesstate.SocketTable

get /data/netgate-interface:interfaces-state/socket-table

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state/socket-table

Host memif socket table.

Responses

200

netgate.interface.interfacesstate.SocketTable

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-state/socket-table"

	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-interface:socket-table-wrapper":
    {
    }
}

returns netgate.interface.interfacesstate.sockettable.Socket

get /data/netgate-interface:interfaces-state/socket-table/socket={id}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state/socket-table/socket={id}

A unique 32-bit integer identifying this socket filename.

path Parameters
id
required
integer <int64>

Id of socket

Responses

200

netgate.interface.interfacesstate.sockettable.Socket

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-state/socket-table/socket=%7Bid%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-interface:socket-wrapper":
    {
    }
}

returns netgate.interface.interfacesstate.TapTable

get /data/netgate-interface:interfaces-state/tap-table

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state/tap-table

Host Tap table.

Responses

200

netgate.interface.interfacesstate.TapTable

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-state/tap-table"

	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-interface:tap-table-wrapper":
    {
    }
}

returns netgate.interface.interfacesstate.taptable.Tap

get /data/netgate-interface:interfaces-state/tap-table/tap={host-name}

Example URL

https://hostname/restconf/data/netgate-interface:interfaces-state/tap-table/tap={host-name}

Unique identifing host tap name.

path Parameters
host-name
required
string

Id of tap

Responses

200

netgate.interface.interfacesstate.taptable.Tap

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-interface:interfaces-state/tap-table/tap=%7Bhost-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-interface:tap-wrapper":
    {
    }
}

clear-interface-counters

operates on netgate.interface.ClearInterfaceCounters

post /operations/netgate-interface:clear-interface-counters

Example URL

https://hostname/restconf/operations/netgate-interface:clear-interface-counters

operates on netgate.interface.ClearInterfaceCounters

Request Body schema: application/yang-data+json
input
object (netgate.interface.clearinterfacecounters.Input)

Responses

201

No response

400

Internal error

Request samples

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

packet-counters

<no summary>

post /operations/netgate-interface:packet-counters

Example URL

https://hostname/restconf/operations/netgate-interface:packet-counters

Responses

200

Correct response

201

No response

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/operations/netgate-interface:packet-counters"

	req, _ := http.NewRequest("POST", 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
{
  • "output":
    {
    }
}