netgate-host-interface API (24.06)

This YANG module provides a data model for host interfaces.

Copyright 2018-2020 Rubicon Communications, LLC.

host-if-config

returns netgate.host.interface.HostIfConfig

Interface configuration parameters.

Responses

Request samples

package main

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

func main() {

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

creates netgate.host.interface.HostIfConfig

Interface configuration parameters.

Request Body schema: application/yang-data+json

netgate.host.interface.HostIfConfig to be added to list

Array of objects (netgate.host.interface.hostifconfig.Interface)

The list of configured host interfaces on the device.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-interface:interface": [
    ]
}

creates or updates netgate.host.interface.HostIfConfig

Interface configuration parameters.

Request Body schema: application/yang-data+json

netgate.host.interface.HostIfConfig to be added or updated

object (netgate.host.interface.HostIfConfig)

Interface configuration parameters.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-interface:host-if-config": {
    }
}

removes netgate.host.interface.HostIfConfig

Interface configuration parameters.

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-host-interface:host-if-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))

}

creates netgate.host.interface.hostifconfig.Interface

The list of configured host interfaces on the device.

Request Body schema: application/yang-data+json

netgate.host.interface.hostifconfig.Interface to be added to list

netgate-host-interface:name
string

The name of the host interface.

netgate-host-interface:description
string

A textual description of the host interface.

object (netgate.host.interface.hostifconfig.interface.Ipv4)

Parameters for the IPv4 address family.

object (netgate.host.interface.hostifconfig.interface.Ipv6)

Parameters for the IPv6 address family.

netgate-host-interface:enabled
boolean

This leaf contains the configured, desired state of the interface.

netgate-host-interface:mtu
integer <int32>

The size, in octets, of the largest packet that the interface will send and receive.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-interface:name": "string",
  • "netgate-host-interface:description": "string",
  • "netgate-host-interface:ipv4": {
    },
  • "netgate-host-interface:ipv6": {
    },
  • "netgate-host-interface:enabled": true,
  • "netgate-host-interface:mtu": 0
}

returns netgate.host.interface.hostifconfig.Interface

The list of configured host interfaces on the device.

path Parameters
name
required
string

Id of interface

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-host-interface:host-if-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
{
  • "netgate-host-interface:interface": {
    }
}

creates or updates netgate.host.interface.hostifconfig.Interface

The list of configured host interfaces on the device.

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.host.interface.hostifconfig.Interface to be added or updated

object (netgate.host.interface.hostifconfig.Interface)

The list of configured host interfaces on the device.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-interface:interface": {
    }
}

removes netgate.host.interface.hostifconfig.Interface

The list of configured host interfaces on the device.

path Parameters
name
required
string

Id of interface

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-host-interface:host-if-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.host.interface.hostifconfig.interface.Ipv4

Parameters for the IPv4 address family.

path Parameters
name
required
string

Id of interface

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-host-interface:host-if-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
{
  • "netgate-host-interface:ipv4": {
    }
}

creates netgate.host.interface.hostifconfig.interface.Ipv4

Parameters for the IPv4 address family.

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.host.interface.hostifconfig.interface.Ipv4 to be added to list

object (netgate.host.interface.hostifconfig.interface.ipv4.addresstype.dhcp.DhcpClient)
object (netgate.host.interface.hostifconfig.interface.ipv4.addresstype.static.Address)

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-interface:dhcp-client": {
    },
  • "netgate-host-interface:address": {
    }
}

creates or updates netgate.host.interface.hostifconfig.interface.Ipv4

Parameters for the IPv4 address family.

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.host.interface.hostifconfig.interface.Ipv4 to be added or updated

object (netgate.host.interface.hostifconfig.interface.Ipv4)

Parameters for the IPv4 address family.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-interface:ipv4": {
    }
}

removes netgate.host.interface.hostifconfig.interface.Ipv4

Parameters for the IPv4 address family.

path Parameters
name
required
string

Id of interface

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-host-interface:host-if-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.host.interface.hostifconfig.interface.ipv4.addresstype.static.Address

returns netgate.host.interface.hostifconfig.interface.ipv4.addresstype.static.Address

path Parameters
name
required
string

Id of interface

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-host-interface:host-if-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
{
  • "netgate-host-interface:address": {
    }
}

creates netgate.host.interface.hostifconfig.interface.ipv4.addresstype.static.Address

creates netgate.host.interface.hostifconfig.interface.ipv4.addresstype.static.Address

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.host.interface.hostifconfig.interface.ipv4.addresstype.static.Address to be added to list

netgate-host-interface:ip
Array of strings

An IPv4 prefix on the host interface.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-interface:ip": [
    ]
}

creates or updates netgate.host.interface.hostifconfig.interface.ipv4.addresstype.static.Address

creates or updates netgate.host.interface.hostifconfig.interface.ipv4.addresstype.static.Address

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.host.interface.hostifconfig.interface.ipv4.addresstype.static.Address to be added or updated

object (netgate.host.interface.hostifconfig.interface.ipv4.addresstype.static.Address)

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-interface:address": {
    }
}

removes netgate.host.interface.hostifconfig.interface.ipv4.addresstype.static.Address

removes netgate.host.interface.hostifconfig.interface.ipv4.addresstype.static.Address

path Parameters
name
required
string

Id of interface

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-host-interface:host-if-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.host.interface.hostifconfig.interface.ipv4.addresstype.dhcp.DhcpClient

returns netgate.host.interface.hostifconfig.interface.ipv4.addresstype.dhcp.DhcpClient

path Parameters
name
required
string

Id of interface

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-host-interface:host-if-config/interface=%7Bname%7D/ipv4/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
{
  • "netgate-host-interface:dhcp-client": {
    }
}

creates netgate.host.interface.hostifconfig.interface.ipv4.addresstype.dhcp.DhcpClient

creates netgate.host.interface.hostifconfig.interface.ipv4.addresstype.dhcp.DhcpClient

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.host.interface.hostifconfig.interface.ipv4.addresstype.dhcp.DhcpClient to be added to list

netgate-host-interface:hostname
string

Hostname

netgate-host-interface:enabled
boolean

Enable DHCP client on the host interface.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-interface:hostname": "string",
  • "netgate-host-interface:enabled": true
}

creates or updates netgate.host.interface.hostifconfig.interface.ipv4.addresstype.dhcp.DhcpClient

creates or updates netgate.host.interface.hostifconfig.interface.ipv4.addresstype.dhcp.DhcpClient

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.host.interface.hostifconfig.interface.ipv4.addresstype.dhcp.DhcpClient to be added or updated

object (netgate.host.interface.hostifconfig.interface.ipv4.addresstype.dhcp.DhcpClient)

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-interface:dhcp-client": {
    }
}

removes netgate.host.interface.hostifconfig.interface.ipv4.addresstype.dhcp.DhcpClient

removes netgate.host.interface.hostifconfig.interface.ipv4.addresstype.dhcp.DhcpClient

path Parameters
name
required
string

Id of interface

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-host-interface:host-if-config/interface=%7Bname%7D/ipv4/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.host.interface.hostifconfig.interface.Ipv6

Parameters for the IPv6 address family.

path Parameters
name
required
string

Id of interface

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-host-interface:host-if-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
{
  • "netgate-host-interface:ipv6": {
    }
}

creates netgate.host.interface.hostifconfig.interface.Ipv6

Parameters for the IPv6 address family.

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.host.interface.hostifconfig.interface.Ipv6 to be added to list

object (netgate.host.interface.hostifconfig.interface.ipv6.addresstype.dhcp.DhcpClient)
object (netgate.host.interface.hostifconfig.interface.ipv6.addresstype.static.Address)

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-interface:dhcp-client": {
    },
  • "netgate-host-interface:address": {
    }
}

creates or updates netgate.host.interface.hostifconfig.interface.Ipv6

Parameters for the IPv6 address family.

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.host.interface.hostifconfig.interface.Ipv6 to be added or updated

object (netgate.host.interface.hostifconfig.interface.Ipv6)

Parameters for the IPv6 address family.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-interface:ipv6": {
    }
}

removes netgate.host.interface.hostifconfig.interface.Ipv6

Parameters for the IPv6 address family.

path Parameters
name
required
string

Id of interface

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-host-interface:host-if-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.host.interface.hostifconfig.interface.ipv6.addresstype.static.Address

returns netgate.host.interface.hostifconfig.interface.ipv6.addresstype.static.Address

path Parameters
name
required
string

Id of interface

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-host-interface:host-if-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
{
  • "netgate-host-interface:address": {
    }
}

creates netgate.host.interface.hostifconfig.interface.ipv6.addresstype.static.Address

creates netgate.host.interface.hostifconfig.interface.ipv6.addresstype.static.Address

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.host.interface.hostifconfig.interface.ipv6.addresstype.static.Address to be added to list

netgate-host-interface:ip
Array of strings

An IPv6 prefix on the host interface.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-interface:ip": [
    ]
}

creates or updates netgate.host.interface.hostifconfig.interface.ipv6.addresstype.static.Address

creates or updates netgate.host.interface.hostifconfig.interface.ipv6.addresstype.static.Address

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.host.interface.hostifconfig.interface.ipv6.addresstype.static.Address to be added or updated

object (netgate.host.interface.hostifconfig.interface.ipv6.addresstype.static.Address)

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-interface:address": {
    }
}

removes netgate.host.interface.hostifconfig.interface.ipv6.addresstype.static.Address

removes netgate.host.interface.hostifconfig.interface.ipv6.addresstype.static.Address

path Parameters
name
required
string

Id of interface

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-host-interface:host-if-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.host.interface.hostifconfig.interface.ipv6.addresstype.dhcp.DhcpClient

returns netgate.host.interface.hostifconfig.interface.ipv6.addresstype.dhcp.DhcpClient

path Parameters
name
required
string

Id of interface

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-host-interface:host-if-config/interface=%7Bname%7D/ipv6/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
{
  • "netgate-host-interface:dhcp-client": {
    }
}

creates netgate.host.interface.hostifconfig.interface.ipv6.addresstype.dhcp.DhcpClient

creates netgate.host.interface.hostifconfig.interface.ipv6.addresstype.dhcp.DhcpClient

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.host.interface.hostifconfig.interface.ipv6.addresstype.dhcp.DhcpClient to be added to list

netgate-host-interface:enabled
boolean

Enable DHCPv6 client on the host interface.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-interface:enabled": true
}

creates or updates netgate.host.interface.hostifconfig.interface.ipv6.addresstype.dhcp.DhcpClient

creates or updates netgate.host.interface.hostifconfig.interface.ipv6.addresstype.dhcp.DhcpClient

path Parameters
name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.host.interface.hostifconfig.interface.ipv6.addresstype.dhcp.DhcpClient to be added or updated

object (netgate.host.interface.hostifconfig.interface.ipv6.addresstype.dhcp.DhcpClient)

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-interface:dhcp-client": {
    }
}

removes netgate.host.interface.hostifconfig.interface.ipv6.addresstype.dhcp.DhcpClient

removes netgate.host.interface.hostifconfig.interface.ipv6.addresstype.dhcp.DhcpClient

path Parameters
name
required
string

Id of interface

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-host-interface:host-if-config/interface=%7Bname%7D/ipv6/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))

}

host-if-state

returns netgate.host.interface.HostIfState

Interface configuration parameters.

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-host-interface:host-if-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
{
  • "netgate-host-interface:host-if-state": {
    }
}

returns netgate.host.interface.hostifstate.Interface

The list of configured host interfaces on the device.

path Parameters
name
required
string

Id of interface

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-host-interface:host-if-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
{
  • "netgate-host-interface:interface": {
    }
}

returns netgate.host.interface.hostifstate.interface.Ipv4

Parameters for the IPv4 address family.

path Parameters
name
required
string

Id of interface

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-host-interface:host-if-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
{
  • "netgate-host-interface:ipv4": {
    }
}

returns netgate.host.interface.hostifstate.interface.ipv4.Address

returns netgate.host.interface.hostifstate.interface.ipv4.Address

path Parameters
name
required
string

Id of interface

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-host-interface:host-if-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
{
  • "netgate-host-interface:address": {
    }
}

returns netgate.host.interface.hostifstate.interface.Ipv6

Parameters for the IPv6 address family.

path Parameters
name
required
string

Id of interface

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-host-interface:host-if-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
{
  • "netgate-host-interface:ipv6": {
    }
}

returns netgate.host.interface.hostifstate.interface.ipv6.Address

returns netgate.host.interface.hostifstate.interface.ipv6.Address

path Parameters
name
required
string

Id of interface

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-host-interface:host-if-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
{
  • "netgate-host-interface:address": {
    }
}