This YANG module provides a data model for network interfaces.
Copyright 2018-2020,2023,2025 Rubicon Communications, LLC.
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-package:package-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)) }
{- "netgate-package:package-config": {
- "netgate-package:auto-update-lists": false
}
}Package configuration.
netgate.package.PackageConfig to be added to list
| netgate-package:auto-update-lists | boolean Default: false Automatically update package lists. |
{- "netgate-package:auto-update-lists": false
}Package configuration.
netgate.package.PackageConfig to be added or updated
object (netgate.package.PackageConfig) Package configuration. |
{- "netgate-package:package-config": {
- "netgate-package:auto-update-lists": false
}
}package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-package:package-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)) }
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/operations/netgate-package:package-cache-cleanup" 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)) }
{- "output": {
- "netgate-package:result": "string"
}
}operates on netgate.package.PackageInfo
object (netgate.package.packageinfo.Input) |
{- "input": {
- "netgate-package:allow": "string",
- "netgate-package:glob": "string"
}
}{- "output": {
- "netgate-package:result": "string"
}
}operates on netgate.package.PackageInstall
object (netgate.package.packageinstall.Input) |
{- "input": {
- "netgate-package:glob": "string"
}
}{- "output": {
- "netgate-package:result": "string"
}
}operates on netgate.package.PackageList
object (netgate.package.packagelist.Input) |
{- "input": {
- "netgate-package:allow": "string",
- "netgate-package:glob": "string"
}
}{- "output": {
- "netgate-package:result": "string"
}
}operates on netgate.package.PackageReinstall
object (netgate.package.packagereinstall.Input) |
{- "input": {
- "netgate-package:glob": "string"
}
}{- "output": {
- "netgate-package:result": "string"
}
}operates on netgate.package.PackageRemove
object (netgate.package.packageremove.Input) |
{- "input": {
- "netgate-package:glob": "string"
}
}{- "output": {
- "netgate-package:result": "string"
}
}operates on netgate.package.PackageSearch
object (netgate.package.packagesearch.Input) |
{- "input": {
- "netgate-package:term": "string"
}
}{- "output": {
- "netgate-package:result": "string"
}
}package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/operations/netgate-package:package-update" 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)) }
{- "output": {
- "netgate-package:result": "string"
}
}package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/operations/netgate-package:package-upgrade" 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)) }
{- "output": {
- "netgate-package:result": "string"
}
}