Definitions of configuration history feature data and operations. Copyright 2021 Rubicon Communications, LLC. All rights reserved.
Example URL
returns netgate.conf.history.ConfHistoryConfig
netgate.conf.history.ConfHistoryConfig
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-conf-history:conf-history-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)) }
Example URL
creates netgate.conf.history.ConfHistoryConfig
netgate.conf.history.ConfHistoryConfig to be added to list
netgate-conf-history:conf-history-config | object (netgate.conf.history.ConfHistoryConfig) |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.conf.history.ConfHistoryConfig
netgate.conf.history.ConfHistoryConfig to be added or updated
netgate-conf-history:conf-history-config-wrapper | object (netgate.conf.history.ConfHistoryConfigWrapper) |
Object created
Object modified
Internal error
Example URL
removes netgate.conf.history.ConfHistoryConfig
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-conf-history:conf-history-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)) }
Example URL
returns netgate.conf.history.confhistoryconfig.VersionHistoryConfig
netgate.conf.history.confhistoryconfig.VersionHistoryConfig
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-conf-history:conf-history-config/version-history-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)) }
Example URL
creates netgate.conf.history.confhistoryconfig.VersionHistoryConfig
netgate.conf.history.confhistoryconfig.VersionHistoryConfig to be added to list
version-history-config | object (netgate.conf.history.confhistoryconfig.VersionHistoryConfig) |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.conf.history.confhistoryconfig.VersionHistoryConfig
netgate.conf.history.confhistoryconfig.VersionHistoryConfig to be added or updated
netgate-conf-history:version-history-config-wrapper | object (netgate.conf.history.confhistoryconfig.VersionHistoryConfigWrapper) |
Object created
Object modified
Internal error
Example URL
removes netgate.conf.history.confhistoryconfig.VersionHistoryConfig
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-conf-history:conf-history-config/version-history-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)) }
Example URL
returns netgate.conf.history.ConfHistoryState
netgate.conf.history.ConfHistoryState
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-conf-history:conf-history-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)) }
Example URL
returns netgate.conf.history.confhistorystate.VersionHistoryConfig
netgate.conf.history.confhistorystate.VersionHistoryConfig
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-conf-history:conf-history-state/version-history-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)) }
Example URL
operates on netgate.conf.history.ConfHistoryDiffVersions
input | object (netgate.conf.history.confhistorydiffversions.Input) |
Correct response
No response
Internal error
Example URL
operates on netgate.conf.history.ConfHistoryDropVersions
input | object (netgate.conf.history.confhistorydropversions.Input) |
No response
Internal error
Example URL
operates on netgate.conf.history.ConfHistoryGetLog
input | object (netgate.conf.history.confhistorygetlog.Input) |
Correct response
No response
Internal error
Example URL
Correct response
No response
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/operations/netgate-conf-history:conf-history-get-versions" 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)) }
Example URL
operates on netgate.conf.history.ConfHistoryLoadVersion
input | object (netgate.conf.history.confhistoryloadversion.Input) |
No response
Internal error
Example URL
operates on netgate.conf.history.ConfHistorySaveVersion
input | object (netgate.conf.history.confhistorysaveversion.Input) |
No response
Internal error