netgate-conf-rollback API (24.02)

This YANG module provides Configuration Rollback operations.

Copyright 2021 Rubicon Communications, LLC.

conf-rollback-cancel

<no summary>

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

Example URL

https://hostname/restconf/operations/netgate-conf-rollback:conf-rollback-cancel

Responses

201

No response

400

Internal error

Request samples

Copy
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

post /operations/netgate-conf-rollback:conf-rollback-restart-timer

Example URL

https://hostname/restconf/operations/netgate-conf-rollback:conf-rollback-restart-timer

operates on netgate.conf.rollback.ConfRollbackRestartTimer

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

Responses

201

No response

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "input":
    {
    }
}

conf-rollback-show-timer

<no summary>

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

Example URL

https://hostname/restconf/operations/netgate-conf-rollback:conf-rollback-show-timer

Responses

200

Correct response

201

No response

400

Internal error

Request samples

Copy
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
Copy
Expand all Collapse all
{
  • "output":
    {
    }
}

conf-rollback-start-timer

operates on netgate.conf.rollback.ConfRollbackStartTimer

post /operations/netgate-conf-rollback:conf-rollback-start-timer

Example URL

https://hostname/restconf/operations/netgate-conf-rollback:conf-rollback-start-timer

operates on netgate.conf.rollback.ConfRollbackStartTimer

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

Responses

201

No response

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "input":
    {
    }
}

conf-rollback-trigger

<no summary>

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

Example URL

https://hostname/restconf/operations/netgate-conf-rollback:conf-rollback-trigger

Responses

201

No response

400

Internal error

Request samples

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

}