This YANG module provides a data model for network interfaces.
Copyright 2018-2020 Rubicon Communications, LLC.
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"
}
}