netgate-ntp API (24.02)

This YANG module provides a data-model for the NTP service.

Copyright 2018-2020 Rubicon Communications, LLC.

ntp-config

returns netgate.ntp.NtpConfig

get /data/netgate-ntp:ntp-config

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config

Network Time Protocol daemon configuration for time keeping and services.

Responses

200

netgate.ntp.NtpConfig

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ntp:ntp-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
Copy
Expand all Collapse all
{
  • "netgate-ntp:ntp-config-wrapper":
    {
    }
}

creates netgate.ntp.NtpConfig

post /data/netgate-ntp:ntp-config

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config

Network Time Protocol daemon configuration for time keeping and services.

Request Body schema: application/yang-data+json

netgate.ntp.NtpConfig to be added to list

netgate-ntp:ntp-config
object (netgate.ntp.NtpConfig)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.ntp.NtpConfig

put /data/netgate-ntp:ntp-config

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config

Network Time Protocol daemon configuration for time keeping and services.

Request Body schema: application/yang-data+json

netgate.ntp.NtpConfig to be added or updated

netgate-ntp:ntp-config-wrapper
object (netgate.ntp.NtpConfigWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-ntp:ntp-config-wrapper":
    {
    }
}

removes netgate.ntp.NtpConfig

delete /data/netgate-ntp:ntp-config

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config

Network Time Protocol daemon configuration for time keeping and services.

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ntp:ntp-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.ntp.ntpconfig.Daemon

get /data/netgate-ntp:ntp-config/daemon

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon

NTP daemon configuration parameters.

Responses

200

netgate.ntp.ntpconfig.Daemon

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon"

	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
Copy
Expand all Collapse all
{
  • "netgate-ntp:daemon-wrapper":
    {
    }
}

creates netgate.ntp.ntpconfig.Daemon

post /data/netgate-ntp:ntp-config/daemon

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon

NTP daemon configuration parameters.

Request Body schema: application/yang-data+json

netgate.ntp.ntpconfig.Daemon to be added to list

daemon
object (netgate.ntp.ntpconfig.Daemon)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.ntp.ntpconfig.Daemon

put /data/netgate-ntp:ntp-config/daemon

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon

NTP daemon configuration parameters.

Request Body schema: application/yang-data+json

netgate.ntp.ntpconfig.Daemon to be added or updated

netgate-ntp:daemon-wrapper
object (netgate.ntp.ntpconfig.DaemonWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-ntp:daemon-wrapper":
    {
    }
}

removes netgate.ntp.ntpconfig.Daemon

delete /data/netgate-ntp:ntp-config/daemon

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon

NTP daemon configuration parameters.

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon"

	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.ntp.ntpconfig.daemon.Interfaces

get /data/netgate-ntp:ntp-config/daemon/interfaces

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/interfaces

Interface binding specifications.

Responses

200

netgate.ntp.ntpconfig.daemon.Interfaces

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/interfaces"

	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
Copy
Expand all Collapse all
{
  • "netgate-ntp:interfaces-wrapper":
    {
    }
}

creates netgate.ntp.ntpconfig.daemon.Interfaces

post /data/netgate-ntp:ntp-config/daemon/interfaces

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/interfaces

Interface binding specifications.

Request Body schema: application/yang-data+json

netgate.ntp.ntpconfig.daemon.Interfaces to be added to list

interfaces
object (netgate.ntp.ntpconfig.daemon.Interfaces)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.ntp.ntpconfig.daemon.Interfaces

put /data/netgate-ntp:ntp-config/daemon/interfaces

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/interfaces

Interface binding specifications.

Request Body schema: application/yang-data+json

netgate.ntp.ntpconfig.daemon.Interfaces to be added or updated

netgate-ntp:interfaces-wrapper
object (netgate.ntp.ntpconfig.daemon.InterfacesWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-ntp:interfaces-wrapper":
    {
    }
}

removes netgate.ntp.ntpconfig.daemon.Interfaces

delete /data/netgate-ntp:ntp-config/daemon/interfaces

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/interfaces

Interface binding specifications.

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/interfaces"

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

}

creates netgate.ntp.ntpconfig.daemon.interfaces.Interface

post /data/netgate-ntp:ntp-config/daemon/interfaces/interface

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/interfaces/interface

creates netgate.ntp.ntpconfig.daemon.interfaces.Interface

Request Body schema: application/yang-data+json

netgate.ntp.ntpconfig.daemon.interfaces.Interface to be added to list

interface
object (netgate.ntp.ntpconfig.daemon.interfaces.Interface)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

returns netgate.ntp.ntpconfig.daemon.interfaces.Interface

get /data/netgate-ntp:ntp-config/daemon/interfaces/interface={sequence}

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/interfaces/interface={sequence}

returns netgate.ntp.ntpconfig.daemon.interfaces.Interface

path Parameters
sequence
required
integer <int64>

Id of interface

Responses

200

netgate.ntp.ntpconfig.daemon.interfaces.Interface

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/interfaces/interface=%7Bsequence%7D"

	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
Copy
Expand all Collapse all
{
  • "netgate-ntp:interface-wrapper":
    {
    }
}

creates or updates netgate.ntp.ntpconfig.daemon.interfaces.Interface

put /data/netgate-ntp:ntp-config/daemon/interfaces/interface={sequence}

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/interfaces/interface={sequence}

creates or updates netgate.ntp.ntpconfig.daemon.interfaces.Interface

path Parameters
sequence
required
integer <int64>

Id of interface

Request Body schema: application/yang-data+json

netgate.ntp.ntpconfig.daemon.interfaces.Interface to be added or updated

netgate-ntp:interface-wrapper
object (netgate.ntp.ntpconfig.daemon.interfaces.InterfaceWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-ntp:interface-wrapper":
    {
    }
}

removes netgate.ntp.ntpconfig.daemon.interfaces.Interface

delete /data/netgate-ntp:ntp-config/daemon/interfaces/interface={sequence}

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/interfaces/interface={sequence}

removes netgate.ntp.ntpconfig.daemon.interfaces.Interface

path Parameters
sequence
required
integer <int64>

Id of interface

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/interfaces/interface=%7Bsequence%7D"

	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.ntp.ntpconfig.daemon.Logconfigs

get /data/netgate-ntp:ntp-config/daemon/logconfigs

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/logconfigs

An ordered sequence of NTPD logconfig settings.

Responses

200

netgate.ntp.ntpconfig.daemon.Logconfigs

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/logconfigs"

	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
Copy
Expand all Collapse all
{
  • "netgate-ntp:logconfigs-wrapper":
    {
    }
}

creates netgate.ntp.ntpconfig.daemon.Logconfigs

post /data/netgate-ntp:ntp-config/daemon/logconfigs

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/logconfigs

An ordered sequence of NTPD logconfig settings.

Request Body schema: application/yang-data+json

netgate.ntp.ntpconfig.daemon.Logconfigs to be added to list

logconfigs
object (netgate.ntp.ntpconfig.daemon.Logconfigs)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.ntp.ntpconfig.daemon.Logconfigs

put /data/netgate-ntp:ntp-config/daemon/logconfigs

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/logconfigs

An ordered sequence of NTPD logconfig settings.

Request Body schema: application/yang-data+json

netgate.ntp.ntpconfig.daemon.Logconfigs to be added or updated

netgate-ntp:logconfigs-wrapper
object (netgate.ntp.ntpconfig.daemon.LogconfigsWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-ntp:logconfigs-wrapper":
    {
    }
}

removes netgate.ntp.ntpconfig.daemon.Logconfigs

delete /data/netgate-ntp:ntp-config/daemon/logconfigs

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/logconfigs

An ordered sequence of NTPD logconfig settings.

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/logconfigs"

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

}

creates netgate.ntp.ntpconfig.daemon.logconfigs.Logconfig

post /data/netgate-ntp:ntp-config/daemon/logconfigs/logconfig

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/logconfigs/logconfig

creates netgate.ntp.ntpconfig.daemon.logconfigs.Logconfig

Request Body schema: application/yang-data+json

netgate.ntp.ntpconfig.daemon.logconfigs.Logconfig to be added to list

logconfig
object (netgate.ntp.ntpconfig.daemon.logconfigs.Logconfig)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

returns netgate.ntp.ntpconfig.daemon.logconfigs.Logconfig

get /data/netgate-ntp:ntp-config/daemon/logconfigs/logconfig={sequence}

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/logconfigs/logconfig={sequence}

returns netgate.ntp.ntpconfig.daemon.logconfigs.Logconfig

path Parameters
sequence
required
integer <int64>

Id of logconfig

Responses

200

netgate.ntp.ntpconfig.daemon.logconfigs.Logconfig

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/logconfigs/logconfig=%7Bsequence%7D"

	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
Copy
Expand all Collapse all
{
  • "netgate-ntp:logconfig-wrapper":
    {
    }
}

creates or updates netgate.ntp.ntpconfig.daemon.logconfigs.Logconfig

put /data/netgate-ntp:ntp-config/daemon/logconfigs/logconfig={sequence}

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/logconfigs/logconfig={sequence}

creates or updates netgate.ntp.ntpconfig.daemon.logconfigs.Logconfig

path Parameters
sequence
required
integer <int64>

Id of logconfig

Request Body schema: application/yang-data+json

netgate.ntp.ntpconfig.daemon.logconfigs.Logconfig to be added or updated

netgate-ntp:logconfig-wrapper
object (netgate.ntp.ntpconfig.daemon.logconfigs.LogconfigWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-ntp:logconfig-wrapper":
    {
    }
}

removes netgate.ntp.ntpconfig.daemon.logconfigs.Logconfig

delete /data/netgate-ntp:ntp-config/daemon/logconfigs/logconfig={sequence}

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/logconfigs/logconfig={sequence}

removes netgate.ntp.ntpconfig.daemon.logconfigs.Logconfig

path Parameters
sequence
required
integer <int64>

Id of logconfig

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/logconfigs/logconfig=%7Bsequence%7D"

	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.ntp.ntpconfig.daemon.Parameters

get /data/netgate-ntp:ntp-config/daemon/parameters

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/parameters

The NTP parameters managed by the NTP daemon.

Responses

200

netgate.ntp.ntpconfig.daemon.Parameters

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/parameters"

	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
Copy
Expand all Collapse all
{
  • "netgate-ntp:parameters-wrapper":
    {
    }
}

creates netgate.ntp.ntpconfig.daemon.Parameters

post /data/netgate-ntp:ntp-config/daemon/parameters

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/parameters

The NTP parameters managed by the NTP daemon.

Request Body schema: application/yang-data+json

netgate.ntp.ntpconfig.daemon.Parameters to be added to list

parameters
object (netgate.ntp.ntpconfig.daemon.Parameters)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.ntp.ntpconfig.daemon.Parameters

put /data/netgate-ntp:ntp-config/daemon/parameters

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/parameters

The NTP parameters managed by the NTP daemon.

Request Body schema: application/yang-data+json

netgate.ntp.ntpconfig.daemon.Parameters to be added or updated

netgate-ntp:parameters-wrapper
object (netgate.ntp.ntpconfig.daemon.ParametersWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-ntp:parameters-wrapper":
    {
    }
}

removes netgate.ntp.ntpconfig.daemon.Parameters

delete /data/netgate-ntp:ntp-config/daemon/parameters

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/parameters

The NTP parameters managed by the NTP daemon.

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/parameters"

	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.ntp.ntpconfig.daemon.parameters.DisabledFlags

get /data/netgate-ntp:ntp-config/daemon/parameters/disabled-flags

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/parameters/disabled-flags

Force monitor flags to disabled.

Responses

200

netgate.ntp.ntpconfig.daemon.parameters.DisabledFlags

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/parameters/disabled-flags"

	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
Copy
Expand all Collapse all
{
  • "netgate-ntp:disabled-flags-wrapper":
    {
    }
}

creates netgate.ntp.ntpconfig.daemon.parameters.DisabledFlags

post /data/netgate-ntp:ntp-config/daemon/parameters/disabled-flags

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/parameters/disabled-flags

Force monitor flags to disabled.

Request Body schema: application/yang-data+json

netgate.ntp.ntpconfig.daemon.parameters.DisabledFlags to be added to list

disabled-flags
object (netgate.ntp.ntpconfig.daemon.parameters.DisabledFlags)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.ntp.ntpconfig.daemon.parameters.DisabledFlags

put /data/netgate-ntp:ntp-config/daemon/parameters/disabled-flags

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/parameters/disabled-flags

Force monitor flags to disabled.

Request Body schema: application/yang-data+json

netgate.ntp.ntpconfig.daemon.parameters.DisabledFlags to be added or updated

netgate-ntp:disabled-flags-wrapper
object (netgate.ntp.ntpconfig.daemon.parameters.DisabledFlagsWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-ntp:disabled-flags-wrapper":
    {
    }
}

removes netgate.ntp.ntpconfig.daemon.parameters.DisabledFlags

delete /data/netgate-ntp:ntp-config/daemon/parameters/disabled-flags

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/parameters/disabled-flags

Force monitor flags to disabled.

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/parameters/disabled-flags"

	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.ntp.ntpconfig.daemon.parameters.EnabledFlags

get /data/netgate-ntp:ntp-config/daemon/parameters/enabled-flags

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/parameters/enabled-flags

Force monitor flags to enabled.

Responses

200

netgate.ntp.ntpconfig.daemon.parameters.EnabledFlags

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/parameters/enabled-flags"

	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
Copy
Expand all Collapse all
{
  • "netgate-ntp:enabled-flags-wrapper":
    {
    }
}

creates netgate.ntp.ntpconfig.daemon.parameters.EnabledFlags

post /data/netgate-ntp:ntp-config/daemon/parameters/enabled-flags

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/parameters/enabled-flags

Force monitor flags to enabled.

Request Body schema: application/yang-data+json

netgate.ntp.ntpconfig.daemon.parameters.EnabledFlags to be added to list

enabled-flags
object (netgate.ntp.ntpconfig.daemon.parameters.EnabledFlags)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.ntp.ntpconfig.daemon.parameters.EnabledFlags

put /data/netgate-ntp:ntp-config/daemon/parameters/enabled-flags

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/parameters/enabled-flags

Force monitor flags to enabled.

Request Body schema: application/yang-data+json

netgate.ntp.ntpconfig.daemon.parameters.EnabledFlags to be added or updated

netgate-ntp:enabled-flags-wrapper
object (netgate.ntp.ntpconfig.daemon.parameters.EnabledFlagsWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-ntp:enabled-flags-wrapper":
    {
    }
}

removes netgate.ntp.ntpconfig.daemon.parameters.EnabledFlags

delete /data/netgate-ntp:ntp-config/daemon/parameters/enabled-flags

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/parameters/enabled-flags

Force monitor flags to enabled.

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/parameters/enabled-flags"

	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.ntp.ntpconfig.daemon.Restrictions

get /data/netgate-ntp:ntp-config/daemon/restrictions

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/restrictions

returns netgate.ntp.ntpconfig.daemon.Restrictions

Responses

200

netgate.ntp.ntpconfig.daemon.Restrictions

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/restrictions"

	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
Copy
Expand all Collapse all
{
  • "netgate-ntp:restrictions-wrapper":
    {
    }
}

creates netgate.ntp.ntpconfig.daemon.Restrictions

post /data/netgate-ntp:ntp-config/daemon/restrictions

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/restrictions

creates netgate.ntp.ntpconfig.daemon.Restrictions

Request Body schema: application/yang-data+json

netgate.ntp.ntpconfig.daemon.Restrictions to be added to list

restrictions
object (netgate.ntp.ntpconfig.daemon.Restrictions)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.ntp.ntpconfig.daemon.Restrictions

put /data/netgate-ntp:ntp-config/daemon/restrictions

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/restrictions

creates or updates netgate.ntp.ntpconfig.daemon.Restrictions

Request Body schema: application/yang-data+json

netgate.ntp.ntpconfig.daemon.Restrictions to be added or updated

netgate-ntp:restrictions-wrapper
object (netgate.ntp.ntpconfig.daemon.RestrictionsWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-ntp:restrictions-wrapper":
    {
    }
}

removes netgate.ntp.ntpconfig.daemon.Restrictions

delete /data/netgate-ntp:ntp-config/daemon/restrictions

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/restrictions

removes netgate.ntp.ntpconfig.daemon.Restrictions

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/restrictions"

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

}

creates netgate.ntp.ntpconfig.daemon.restrictions.Restriction

post /data/netgate-ntp:ntp-config/daemon/restrictions/restriction

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/restrictions/restriction

creates netgate.ntp.ntpconfig.daemon.restrictions.Restriction

Request Body schema: application/yang-data+json

netgate.ntp.ntpconfig.daemon.restrictions.Restriction to be added to list

restriction
object (netgate.ntp.ntpconfig.daemon.restrictions.Restriction)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

returns netgate.ntp.ntpconfig.daemon.restrictions.Restriction

get /data/netgate-ntp:ntp-config/daemon/restrictions/restriction={address}

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/restrictions/restriction={address}

returns netgate.ntp.ntpconfig.daemon.restrictions.Restriction

path Parameters
address
required
string

Id of restriction

Responses

200

netgate.ntp.ntpconfig.daemon.restrictions.Restriction

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/restrictions/restriction=%7Baddress%7D"

	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
Copy
Expand all Collapse all
{
  • "netgate-ntp:restriction-wrapper":
    {
    }
}

creates or updates netgate.ntp.ntpconfig.daemon.restrictions.Restriction

put /data/netgate-ntp:ntp-config/daemon/restrictions/restriction={address}

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/restrictions/restriction={address}

creates or updates netgate.ntp.ntpconfig.daemon.restrictions.Restriction

path Parameters
address
required
string

Id of restriction

Request Body schema: application/yang-data+json

netgate.ntp.ntpconfig.daemon.restrictions.Restriction to be added or updated

netgate-ntp:restriction-wrapper
object (netgate.ntp.ntpconfig.daemon.restrictions.RestrictionWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-ntp:restriction-wrapper":
    {
    }
}

removes netgate.ntp.ntpconfig.daemon.restrictions.Restriction

delete /data/netgate-ntp:ntp-config/daemon/restrictions/restriction={address}

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/restrictions/restriction={address}

removes netgate.ntp.ntpconfig.daemon.restrictions.Restriction

path Parameters
address
required
string

Id of restriction

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/restrictions/restriction=%7Baddress%7D"

	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.ntp.ntpconfig.daemon.Servers

get /data/netgate-ntp:ntp-config/daemon/servers

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/servers

returns netgate.ntp.ntpconfig.daemon.Servers

Responses

200

netgate.ntp.ntpconfig.daemon.Servers

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/servers"

	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
Copy
Expand all Collapse all
{
  • "netgate-ntp:servers-wrapper":
    {
    }
}

creates netgate.ntp.ntpconfig.daemon.Servers

post /data/netgate-ntp:ntp-config/daemon/servers

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/servers

creates netgate.ntp.ntpconfig.daemon.Servers

Request Body schema: application/yang-data+json

netgate.ntp.ntpconfig.daemon.Servers to be added to list

servers
object (netgate.ntp.ntpconfig.daemon.Servers)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.ntp.ntpconfig.daemon.Servers

put /data/netgate-ntp:ntp-config/daemon/servers

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/servers

creates or updates netgate.ntp.ntpconfig.daemon.Servers

Request Body schema: application/yang-data+json

netgate.ntp.ntpconfig.daemon.Servers to be added or updated

netgate-ntp:servers-wrapper
object (netgate.ntp.ntpconfig.daemon.ServersWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-ntp:servers-wrapper":
    {
    }
}

removes netgate.ntp.ntpconfig.daemon.Servers

delete /data/netgate-ntp:ntp-config/daemon/servers

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/servers

removes netgate.ntp.ntpconfig.daemon.Servers

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/servers"

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

}

creates netgate.ntp.ntpconfig.daemon.servers.Server

post /data/netgate-ntp:ntp-config/daemon/servers/server

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/servers/server

creates netgate.ntp.ntpconfig.daemon.servers.Server

Request Body schema: application/yang-data+json

netgate.ntp.ntpconfig.daemon.servers.Server to be added to list

server
object (netgate.ntp.ntpconfig.daemon.servers.Server)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

returns netgate.ntp.ntpconfig.daemon.servers.Server

get /data/netgate-ntp:ntp-config/daemon/servers/server={host}

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/servers/server={host}

returns netgate.ntp.ntpconfig.daemon.servers.Server

path Parameters
host
required
string

Id of server

Responses

200

netgate.ntp.ntpconfig.daemon.servers.Server

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/servers/server=%7Bhost%7D"

	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
Copy
Expand all Collapse all
{
  • "netgate-ntp:server-wrapper":
    {
    }
}

creates or updates netgate.ntp.ntpconfig.daemon.servers.Server

put /data/netgate-ntp:ntp-config/daemon/servers/server={host}

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/servers/server={host}

creates or updates netgate.ntp.ntpconfig.daemon.servers.Server

path Parameters
host
required
string

Id of server

Request Body schema: application/yang-data+json

netgate.ntp.ntpconfig.daemon.servers.Server to be added or updated

netgate-ntp:server-wrapper
object (netgate.ntp.ntpconfig.daemon.servers.ServerWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-ntp:server-wrapper":
    {
    }
}

removes netgate.ntp.ntpconfig.daemon.servers.Server

delete /data/netgate-ntp:ntp-config/daemon/servers/server={host}

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/servers/server={host}

removes netgate.ntp.ntpconfig.daemon.servers.Server

path Parameters
host
required
string

Id of server

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/servers/server=%7Bhost%7D"

	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.ntp.ntpconfig.daemon.Tinker

get /data/netgate-ntp:ntp-config/daemon/tinker

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/tinker

Tinker options.

Responses

200

netgate.ntp.ntpconfig.daemon.Tinker

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/tinker"

	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
Copy
Expand all Collapse all
{
  • "netgate-ntp:tinker-wrapper":
    {
    }
}

creates netgate.ntp.ntpconfig.daemon.Tinker

post /data/netgate-ntp:ntp-config/daemon/tinker

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/tinker

Tinker options.

Request Body schema: application/yang-data+json

netgate.ntp.ntpconfig.daemon.Tinker to be added to list

tinker
object (netgate.ntp.ntpconfig.daemon.Tinker)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.ntp.ntpconfig.daemon.Tinker

put /data/netgate-ntp:ntp-config/daemon/tinker

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/tinker

Tinker options.

Request Body schema: application/yang-data+json

netgate.ntp.ntpconfig.daemon.Tinker to be added or updated

netgate-ntp:tinker-wrapper
object (netgate.ntp.ntpconfig.daemon.TinkerWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-ntp:tinker-wrapper":
    {
    }
}

removes netgate.ntp.ntpconfig.daemon.Tinker

delete /data/netgate-ntp:ntp-config/daemon/tinker

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/tinker

Tinker options.

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/tinker"

	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.ntp.ntpconfig.daemon.Tos

get /data/netgate-ntp:ntp-config/daemon/tos

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/tos

TOS options.

Responses

200

netgate.ntp.ntpconfig.daemon.Tos

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/tos"

	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
Copy
Expand all Collapse all
{
  • "netgate-ntp:tos-wrapper":
    {
    }
}

creates netgate.ntp.ntpconfig.daemon.Tos

post /data/netgate-ntp:ntp-config/daemon/tos

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/tos

TOS options.

Request Body schema: application/yang-data+json

netgate.ntp.ntpconfig.daemon.Tos to be added to list

tos
object (netgate.ntp.ntpconfig.daemon.Tos)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.ntp.ntpconfig.daemon.Tos

put /data/netgate-ntp:ntp-config/daemon/tos

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/tos

TOS options.

Request Body schema: application/yang-data+json

netgate.ntp.ntpconfig.daemon.Tos to be added or updated

netgate-ntp:tos-wrapper
object (netgate.ntp.ntpconfig.daemon.TosWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-ntp:tos-wrapper":
    {
    }
}

removes netgate.ntp.ntpconfig.daemon.Tos

delete /data/netgate-ntp:ntp-config/daemon/tos

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/daemon/tos

TOS options.

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon/tos"

	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.ntp.ntpconfig.System

get /data/netgate-ntp:ntp-config/system

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/system

The NTP system parameters not managed by the daemon.

Responses

200

netgate.ntp.ntpconfig.System

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ntp:ntp-config/system"

	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
Copy
Expand all Collapse all
{
  • "netgate-ntp:system-wrapper":
    {
    }
}

creates netgate.ntp.ntpconfig.System

post /data/netgate-ntp:ntp-config/system

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/system

The NTP system parameters not managed by the daemon.

Request Body schema: application/yang-data+json

netgate.ntp.ntpconfig.System to be added to list

system
object (netgate.ntp.ntpconfig.System)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.ntp.ntpconfig.System

put /data/netgate-ntp:ntp-config/system

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/system

The NTP system parameters not managed by the daemon.

Request Body schema: application/yang-data+json

netgate.ntp.ntpconfig.System to be added or updated

netgate-ntp:system-wrapper
object (netgate.ntp.ntpconfig.SystemWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-ntp:system-wrapper":
    {
    }
}

removes netgate.ntp.ntpconfig.System

delete /data/netgate-ntp:ntp-config/system

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-config/system

The NTP system parameters not managed by the daemon.

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ntp:ntp-config/system"

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

}

ntp-state

returns netgate.ntp.NtpState

get /data/netgate-ntp:ntp-state

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-state

Network Time Protocol daemon configuration for time keeping and services.

Responses

200

netgate.ntp.NtpState

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ntp:ntp-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
Copy
Expand all Collapse all
{
  • "netgate-ntp:ntp-state-wrapper":
    {
    }
}

returns netgate.ntp.ntpstate.Peers

get /data/netgate-ntp:ntp-state/peers

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-state/peers

Information about the server's peer associations.

Responses

200

netgate.ntp.ntpstate.Peers

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ntp:ntp-state/peers"

	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
Copy
Expand all Collapse all
{
  • "netgate-ntp:peers-wrapper":
    {
    }
}

returns netgate.ntp.ntpstate.peers.Peer

get /data/netgate-ntp:ntp-state/peers/peer={id}

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-state/peers/peer={id}

returns netgate.ntp.ntpstate.peers.Peer

path Parameters
id
required
integer <int32>

Id of peer

Responses

200

netgate.ntp.ntpstate.peers.Peer

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ntp:ntp-state/peers/peer=%7Bid%7D"

	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
Copy
Expand all Collapse all
{
  • "netgate-ntp:peer-wrapper":
    {
    }
}

returns netgate.ntp.ntpstate.peers.peer.Status

get /data/netgate-ntp:ntp-state/peers/peer={id}/status

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-state/peers/peer={id}/status

The decoded peer status.

path Parameters
id
required
integer <int32>

Id of peer

Responses

200

netgate.ntp.ntpstate.peers.peer.Status

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ntp:ntp-state/peers/peer=%7Bid%7D/status"

	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
Copy
Expand all Collapse all
{
  • "netgate-ntp:status-wrapper":
    {
    }
}

returns netgate.ntp.ntpstate.peers.peer.Variables

get /data/netgate-ntp:ntp-state/peers/peer={id}/variables

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-state/peers/peer={id}/variables

The peer variables of an association.

path Parameters
id
required
integer <int32>

Id of peer

Responses

200

netgate.ntp.ntpstate.peers.peer.Variables

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ntp:ntp-state/peers/peer=%7Bid%7D/variables"

	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
Copy
Expand all Collapse all
{
  • "netgate-ntp:variables-wrapper":
    {
    }
}

returns netgate.ntp.ntpstate.peers.peer.variables.Variable

get /data/netgate-ntp:ntp-state/peers/peer={id}/variables/variable={name}

Example URL

https://hostname/restconf/data/netgate-ntp:ntp-state/peers/peer={id}/variables/variable={name}

returns netgate.ntp.ntpstate.peers.peer.variables.Variable

path Parameters
id
required
integer <int32>

Id of peer

name
required
string

Id of variable

Responses

200

netgate.ntp.ntpstate.peers.peer.variables.Variable

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ntp:ntp-state/peers/peer=%7Bid%7D/variables/variable=%7Bname%7D"

	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
Copy
Expand all Collapse all
{
  • "netgate-ntp:variable-wrapper":
    {
    }
}

ntp-config-operation

operates on netgate.ntp.NtpConfigOperation

post /operations/netgate-ntp:ntp-config-operation

Example URL

https://hostname/restconf/operations/netgate-ntp:ntp-config-operation

operates on netgate.ntp.NtpConfigOperation

Request Body schema: application/yang-data+json
input
object (netgate.ntp.ntpconfigoperation.Input)

Responses

200

Correct response

201

No response

400

Internal error

Request samples

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

Response samples

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

ntp-control

operates on netgate.ntp.NtpControl

post /operations/netgate-ntp:ntp-control

Example URL

https://hostname/restconf/operations/netgate-ntp:ntp-control

operates on netgate.ntp.NtpControl

Request Body schema: application/yang-data+json
input
object (netgate.ntp.ntpcontrol.Input)

Responses

200

Correct response

201

No response

400

Internal error

Request samples

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

Response samples

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

ntp-coredump

operates on netgate.ntp.NtpCoredump

post /operations/netgate-ntp:ntp-coredump

Example URL

https://hostname/restconf/operations/netgate-ntp:ntp-coredump

operates on netgate.ntp.NtpCoredump

Request Body schema: application/yang-data+json
input
object (netgate.ntp.ntpcoredump.Input)

Responses

200

Correct response

201

No response

400

Internal error

Request samples

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

Response samples

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