netgate-conf-rollback API (24.10)

This YANG module provides Configuration Rollback operations.

Copyright 2021 Rubicon Communications, LLC.

conf-rollback-cancel

/operations/netgate-conf-rollback:conf-rollback-cancel

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/operations/netgate-conf-rollback:conf-rollback-cancel"

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

}

conf-rollback-restart-timer

operates on netgate.conf.rollback.ConfRollbackRestartTimer

operates on netgate.conf.rollback.ConfRollbackRestartTimer

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

Responses

Request samples

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

conf-rollback-show-timer

/operations/netgate-conf-rollback:conf-rollback-show-timer

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/operations/netgate-conf-rollback:conf-rollback-show-timer"

	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-rollback-start-timer

operates on netgate.conf.rollback.ConfRollbackStartTimer

operates on netgate.conf.rollback.ConfRollbackStartTimer

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

Responses

Request samples

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

conf-rollback-trigger

/operations/netgate-conf-rollback:conf-rollback-trigger

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/operations/netgate-conf-rollback:conf-rollback-trigger"

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

}