netgate-interface API (23.06)

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