netgate-conf-history API (24.10)

Definitions of configuration history feature data and operations. Copyright 2021 Rubicon Communications, LLC. All rights reserved.

conf-history-config

returns netgate.conf.history.ConfHistoryConfig

Config database archive configurations.

Responses

Request samples

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))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-conf-history:conf-history-config": {
    }
}

creates netgate.conf.history.ConfHistoryConfig

Config database archive configurations.

Request Body schema: application/yang-data+json

netgate.conf.history.ConfHistoryConfig to be added to list

object (netgate.conf.history.confhistoryconfig.VersionHistoryConfig)

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-conf-history:version-history-config": {
    }
}

creates or updates netgate.conf.history.ConfHistoryConfig

Config database archive configurations.

Request Body schema: application/yang-data+json

netgate.conf.history.ConfHistoryConfig to be added or updated

object (netgate.conf.history.ConfHistoryConfig)

Config database archive configurations.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-conf-history:conf-history-config": {
    }
}

removes netgate.conf.history.ConfHistoryConfig

Config database archive configurations.

Responses

Request samples

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))

}

returns netgate.conf.history.confhistoryconfig.VersionHistoryConfig

returns netgate.conf.history.confhistoryconfig.VersionHistoryConfig

Responses

Request samples

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))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-conf-history:version-history-config": {
    }
}

creates netgate.conf.history.confhistoryconfig.VersionHistoryConfig

creates netgate.conf.history.confhistoryconfig.VersionHistoryConfig

Request Body schema: application/yang-data+json

netgate.conf.history.confhistoryconfig.VersionHistoryConfig to be added to list

netgate-conf-history:conf-history-autosave-period
integer <int64>
netgate-conf-history:conf-history-enabled
boolean
Default: true

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-conf-history:conf-history-autosave-period": 0,
  • "netgate-conf-history:conf-history-enabled": true
}

creates or updates netgate.conf.history.confhistoryconfig.VersionHistoryConfig

creates or updates netgate.conf.history.confhistoryconfig.VersionHistoryConfig

Request Body schema: application/yang-data+json

netgate.conf.history.confhistoryconfig.VersionHistoryConfig to be added or updated

object (netgate.conf.history.confhistoryconfig.VersionHistoryConfig)

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-conf-history:version-history-config": {
    }
}

removes netgate.conf.history.confhistoryconfig.VersionHistoryConfig

removes netgate.conf.history.confhistoryconfig.VersionHistoryConfig

Responses

Request samples

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))

}

conf-history-state

returns netgate.conf.history.ConfHistoryState

returns netgate.conf.history.ConfHistoryState

Responses

Request samples

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))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-conf-history:conf-history-state": {
    }
}

returns netgate.conf.history.confhistorystate.VersionHistoryConfig

returns netgate.conf.history.confhistorystate.VersionHistoryConfig

Responses

Request samples

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))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-conf-history:version-history-config": {
    }
}

conf-history-diff-versions

operates on netgate.conf.history.ConfHistoryDiffVersions

operates on netgate.conf.history.ConfHistoryDiffVersions

Request Body schema: application/yang-data+json
object (netgate.conf.history.confhistorydiffversions.Input)

Responses

Request samples

Content type
application/yang-data+json
{
  • "input": {
    }
}

Response samples

Content type
application/yang-data+json
{
  • "output": {
    }
}

conf-history-drop-versions

operates on netgate.conf.history.ConfHistoryDropVersions

operates on netgate.conf.history.ConfHistoryDropVersions

Request Body schema: application/yang-data+json
object (netgate.conf.history.confhistorydropversions.Input)

Responses

Request samples

Content type
application/yang-data+json
{
  • "input": {
    }
}

conf-history-get-log

operates on netgate.conf.history.ConfHistoryGetLog

operates on netgate.conf.history.ConfHistoryGetLog

Request Body schema: application/yang-data+json
object (netgate.conf.history.confhistorygetlog.Input)

Responses

Request samples

Content type
application/yang-data+json
{
  • "input": {
    }
}

Response samples

Content type
application/yang-data+json
{
  • "output": {
    }
}

conf-history-get-versions

/operations/netgate-conf-history:conf-history-get-versions

Responses

Request samples

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))

}

Response samples

Content type
application/yang-data+json
{
  • "output": {
    }
}

conf-history-load-version

operates on netgate.conf.history.ConfHistoryLoadVersion

operates on netgate.conf.history.ConfHistoryLoadVersion

Request Body schema: application/yang-data+json
object (netgate.conf.history.confhistoryloadversion.Input)

Responses

Request samples

Content type
application/yang-data+json
{
  • "input": {
    }
}

conf-history-save-version

operates on netgate.conf.history.ConfHistorySaveVersion

operates on netgate.conf.history.ConfHistorySaveVersion

Request Body schema: application/yang-data+json
object (netgate.conf.history.confhistorysaveversion.Input)

Responses

Request samples

Content type
application/yang-data+json
{
  • "input": {
    }
}