This YANG module provides a data model for the Kea DHCP server.
Copyright 2019 Rubicon Communications, LLC.
Example URL
returns netgate.kea.KeaConfig
netgate.kea.KeaConfig
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-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.kea.KeaConfig
netgate.kea.KeaConfig to be added to list
dhcp4-server | object (netgate.kea.keaconfig.Dhcp4Server) |
keactrl | object (netgate.kea.keaconfig.Keactrl) |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.kea.KeaConfig
netgate.kea.KeaConfig to be added or updated
netgate-kea:kea-config | object (netgate.kea.KeaConfig) |
Object created
Object modified
Internal error
Example URL
removes netgate.kea.KeaConfig
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-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
Gather all the parts that contribute to the DHCP4 server.
netgate.kea.keaconfig.Dhcp4Server
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-config/netgate-kea:dhcp4-server" 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
Gather all the parts that contribute to the DHCP4 server.
netgate.kea.keaconfig.Dhcp4Server to be added to list
Logging | object (netgate.kea.KeaLoggingGroup) |
Dhcp4 | object (netgate.kea.keaconfig.dhcp4server.Dhcp4) Configuration for the Kea DHCP IPv4 Server |
Object created
Internal error
Object already exists
Example URL
Gather all the parts that contribute to the DHCP4 server.
netgate.kea.keaconfig.Dhcp4Server to be added or updated
netgate-kea:dhcp4-server | object (netgate.kea.keaconfig.Dhcp4Server) |
Object created
Object modified
Internal error
Example URL
Gather all the parts that contribute to the DHCP4 server.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-config/netgate-kea:dhcp4-server" 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
Configuration for the Kea DHCP IPv4 Server
netgate.kea.keaconfig.dhcp4server.Dhcp4
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-config/netgate-kea:dhcp4-server/netgate-kea:Dhcp4" 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
Configuration for the Kea DHCP IPv4 Server
netgate.kea.keaconfig.dhcp4server.Dhcp4 to be added to list
option-data | Array of objects (netgate.kea.keadhcp4optiongroup.OptionData) List of DHCPv4 options and values. |
interfaces-config | object (netgate.kea.keaconfig.dhcp4server.dhcp4.InterfacesConfig) |
valid-lifetime | integer <int64> The valid duration for an assigned lease in seconds. |
lease-database | object (netgate.kea.keaconfig.dhcp4server.dhcp4.LeaseDatabase) |
renew-timer | integer <int64> The RFC-2131 T1 renewal value in seconds. |
next-server | string This next-server IPv4 address is used as the siaddr field. |
description | string A user-supplied description of the server. |
decline-probation-period | integer <int64> The decline-probation-period specifies the period in seconds in which the server will recycle declined leases. The default period is 86400 seconds (24 hours). |
subnet4 | Array of objects (netgate.kea.keaconfig.dhcp4server.dhcp4.Subnet4) An IPv4 subnet configuration within the DHCPv4 server. |
rebind-timer | integer <int64> The RFC-2131 T2 rebind value in seconds. |
match-client-id | boolean If match-client-id is false, the DHCP server will match clients using the 'chaddr' field. |
echo-client-id | boolean The echo-client-id boolean value specifies that the server should or should-not reply with the client-id if the client sent it. Setting this to false enables RFC-2131 backward compatibitlity. |
Object created
Internal error
Object already exists
Example URL
Configuration for the Kea DHCP IPv4 Server
netgate.kea.keaconfig.dhcp4server.Dhcp4 to be added or updated
netgate-kea:dhcp4 | object (netgate.kea.keaconfig.dhcp4server.Dhcp4) Configuration for the Kea DHCP IPv4 Server |
Object created
Object modified
Internal error
Example URL
Configuration for the Kea DHCP IPv4 Server
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-config/netgate-kea:dhcp4-server/netgate-kea:Dhcp4" 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
The interfaces-config holds configuration information about each interface used by the DHCPv4 server.
netgate.kea.keaconfig.dhcp4server.dhcp4.InterfacesConfig
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-config/netgate-kea:dhcp4-server/netgate-kea:Dhcp4/netgate-kea:interfaces-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
The interfaces-config holds configuration information about each interface used by the DHCPv4 server.
netgate.kea.keaconfig.dhcp4server.dhcp4.InterfacesConfig to be added to list
dhcp-socket-type | string Default: "raw" Sockets used for listening on the set of interfaces will be opened as either'raw' IP sockets, or 'udp' sockets. |
interfaces | Array of objects (netgate.kea.keaconfig.dhcp4server.dhcp4.interfacesconfig.Interfaces) The interfaces is a list of interface names or interface names with unicast addresses on them on which the server will listen for DHCP requests. |
Object created
Internal error
Object already exists
Example URL
The interfaces-config holds configuration information about each interface used by the DHCPv4 server.
netgate.kea.keaconfig.dhcp4server.dhcp4.InterfacesConfig to be added or updated
netgate-kea:interfaces-config | object (netgate.kea.keaconfig.dhcp4server.dhcp4.InterfacesConfig) |
Object created
Object modified
Internal error
Example URL
The interfaces-config holds configuration information about each interface used by the DHCPv4 server.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-config/netgate-kea:dhcp4-server/netgate-kea:Dhcp4/netgate-kea:interfaces-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
The interfaces is a list of interface names or interface names with unicast addresses on them on which the server will listen for DHCP requests.
netgate.kea.keaconfig.dhcp4server.dhcp4.interfacesconfig.Interfaces to be added to list
interface | string The name of an interface on which the server will listen for IPv4 DHCP requests. |
Object created
Internal error
Object already exists
Example URL
The interfaces is a list of interface names or interface names with unicast addresses on them on which the server will listen for DHCP requests.
interface required | string Id of interfaces |
netgate.kea.keaconfig.dhcp4server.dhcp4.interfacesconfig.Interfaces
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-config/netgate-kea:dhcp4-server/netgate-kea:Dhcp4/netgate-kea:interfaces-config/netgate-kea:interfaces=%7Binterface%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)) }
Example URL
The interfaces is a list of interface names or interface names with unicast addresses on them on which the server will listen for DHCP requests.
interface required | string Id of interfaces |
netgate.kea.keaconfig.dhcp4server.dhcp4.interfacesconfig.Interfaces to be added to list
interface | string The name of an interface on which the server will listen for IPv4 DHCP requests. |
Object created
Internal error
Object already exists
Example URL
The interfaces is a list of interface names or interface names with unicast addresses on them on which the server will listen for DHCP requests.
interface required | string Id of interfaces |
netgate.kea.keaconfig.dhcp4server.dhcp4.interfacesconfig.Interfaces to be added or updated
netgate-kea:interfaces | object (netgate.kea.keaconfig.dhcp4server.dhcp4.interfacesconfig.Interfaces) |
Object created
Object modified
Internal error
Example URL
The interfaces is a list of interface names or interface names with unicast addresses on them on which the server will listen for DHCP requests.
interface required | string Id of interfaces |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-config/netgate-kea:dhcp4-server/netgate-kea:Dhcp4/netgate-kea:interfaces-config/netgate-kea:interfaces=%7Binterface%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)) }
Example URL
returns netgate.kea.keaconfig.dhcp4server.dhcp4.LeaseDatabase
netgate.kea.keaconfig.dhcp4server.dhcp4.LeaseDatabase
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-config/netgate-kea:dhcp4-server/netgate-kea:Dhcp4/netgate-kea:lease-database" 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.kea.keaconfig.dhcp4server.dhcp4.LeaseDatabase
netgate.kea.keaconfig.dhcp4server.dhcp4.LeaseDatabase to be added to list
name | string Name of the DHCPv4 leases file on disk. This should be a name ending in '.csv'. FIXME: We should probably make this file be permanently stored under /var/kea/leases/ or something. |
persist | boolean Default: true If set to TRUE, new leases and updates to existing leases are written to the leases file on disk. If leases aren't written to disk, no assurance can be made that leases will persist across a server restart. |
type | string Default: "memfile" The database type used to store the lease information. Currently only the type 'memfile' is supported. |
lfc-interval | integer <int64> Default: 0 The lfc-interval specifies the interval in seconds at which the server will perform a lease file cleanup to remove the unused, historical information from the lease file. The default, 0, disables the LFC operation. |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.kea.keaconfig.dhcp4server.dhcp4.LeaseDatabase
netgate.kea.keaconfig.dhcp4server.dhcp4.LeaseDatabase to be added or updated
netgate-kea:lease-database | object (netgate.kea.keaconfig.dhcp4server.dhcp4.LeaseDatabase) |
Object created
Object modified
Internal error
Example URL
removes netgate.kea.keaconfig.dhcp4server.dhcp4.LeaseDatabase
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-config/netgate-kea:dhcp4-server/netgate-kea:Dhcp4/netgate-kea:lease-database" 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
List of DHCPv4 options and values.
netgate.kea.keadhcp4optiongroup.OptionData to be added to list
name | string The server requires an option name to identify an option. |
csv-format | boolean If this value is not specified the server will assume that the option data is specified as a list of comma separated values to be assigned to individual fields of the DHCP option. |
always-send | boolean To enforce the addition of a particular option set the always-send flag to true. |
data | string If the option data is unspecified it defaults to an empty value. The empty value is mostly used for the options which have no payload (boolean options), but it is legal to specify empty values for some options which carry variable length data and which the specification allows for the length of 0. For such options, the data parameter may be omitted in the configuration. |
space | string If the option space is unspecified it will default to 'dhcp4' which is an option space holding DHCPv4 standard options |
Object created
Internal error
Object already exists
Example URL
List of DHCPv4 options and values.
name required | string Id of option-data |
netgate.kea.keadhcp4optiongroup.OptionData
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-config/netgate-kea:dhcp4-server/netgate-kea:Dhcp4/netgate-kea:option-data=%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)) }
Example URL
List of DHCPv4 options and values.
name required | string Id of option-data |
netgate.kea.keadhcp4optiongroup.OptionData to be added to list
name | string The server requires an option name to identify an option. |
csv-format | boolean If this value is not specified the server will assume that the option data is specified as a list of comma separated values to be assigned to individual fields of the DHCP option. |
always-send | boolean To enforce the addition of a particular option set the always-send flag to true. |
data | string If the option data is unspecified it defaults to an empty value. The empty value is mostly used for the options which have no payload (boolean options), but it is legal to specify empty values for some options which carry variable length data and which the specification allows for the length of 0. For such options, the data parameter may be omitted in the configuration. |
space | string If the option space is unspecified it will default to 'dhcp4' which is an option space holding DHCPv4 standard options |
Object created
Internal error
Object already exists
Example URL
List of DHCPv4 options and values.
name required | string Id of option-data |
netgate.kea.keadhcp4optiongroup.OptionData to be added or updated
name | string The server requires an option name to identify an option. |
csv-format | boolean If this value is not specified the server will assume that the option data is specified as a list of comma separated values to be assigned to individual fields of the DHCP option. |
always-send | boolean To enforce the addition of a particular option set the always-send flag to true. |
data | string If the option data is unspecified it defaults to an empty value. The empty value is mostly used for the options which have no payload (boolean options), but it is legal to specify empty values for some options which carry variable length data and which the specification allows for the length of 0. For such options, the data parameter may be omitted in the configuration. |
space | string If the option space is unspecified it will default to 'dhcp4' which is an option space holding DHCPv4 standard options |
Object created
Object modified
Internal error
Example URL
List of DHCPv4 options and values.
name required | string Id of option-data |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-config/netgate-kea:dhcp4-server/netgate-kea:Dhcp4/netgate-kea:option-data=%7Bname%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)) }
Example URL
An IPv4 subnet configuration within the DHCPv4 server.
netgate.kea.keaconfig.dhcp4server.dhcp4.Subnet4 to be added to list
option-data | Array of objects (netgate.kea.keadhcp4optiongroup.OptionData) List of DHCPv4 options and values. |
subnet | string The IPv4 subnet prefix. |
pools | Array of objects (netgate.kea.keaconfig.dhcp4server.dhcp4.subnet4.Pools) A list of leased address pools. Each pool is specfied as a start and optional end IPv4 addresses, or as an IPv4 address and prefix. |
id | integer <int64> Manually assigned subnet id. |
reservations | Array of objects (netgate.kea.keaconfig.dhcp4server.dhcp4.subnet4.Reservations) List of host reservations. |
interface | string Interface on which subnet is located. |
Object created
Internal error
Object already exists
Example URL
An IPv4 subnet configuration within the DHCPv4 server.
subnet required | string Id of subnet4 |
netgate.kea.keaconfig.dhcp4server.dhcp4.Subnet4
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-config/netgate-kea:dhcp4-server/netgate-kea:Dhcp4/netgate-kea:subnet4=%7Bsubnet%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)) }
Example URL
An IPv4 subnet configuration within the DHCPv4 server.
subnet required | string Id of subnet4 |
netgate.kea.keaconfig.dhcp4server.dhcp4.Subnet4 to be added to list
option-data | Array of objects (netgate.kea.keadhcp4optiongroup.OptionData) List of DHCPv4 options and values. |
subnet | string The IPv4 subnet prefix. |
pools | Array of objects (netgate.kea.keaconfig.dhcp4server.dhcp4.subnet4.Pools) A list of leased address pools. Each pool is specfied as a start and optional end IPv4 addresses, or as an IPv4 address and prefix. |
id | integer <int64> Manually assigned subnet id. |
reservations | Array of objects (netgate.kea.keaconfig.dhcp4server.dhcp4.subnet4.Reservations) List of host reservations. |
interface | string Interface on which subnet is located. |
Object created
Internal error
Object already exists
Example URL
An IPv4 subnet configuration within the DHCPv4 server.
subnet required | string Id of subnet4 |
netgate.kea.keaconfig.dhcp4server.dhcp4.Subnet4 to be added or updated
netgate-kea:subnet4 | object (netgate.kea.keaconfig.dhcp4server.dhcp4.Subnet4) An IPv4 subnet configuration within the DHCPv4 server. |
Object created
Object modified
Internal error
Example URL
An IPv4 subnet configuration within the DHCPv4 server.
subnet required | string Id of subnet4 |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-config/netgate-kea:dhcp4-server/netgate-kea:Dhcp4/netgate-kea:subnet4=%7Bsubnet%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)) }
Example URL
List of DHCPv4 options and values.
subnet required | string Id of subnet4 |
netgate.kea.keadhcp4optiongroup.OptionData to be added to list
name | string The server requires an option name to identify an option. |
csv-format | boolean If this value is not specified the server will assume that the option data is specified as a list of comma separated values to be assigned to individual fields of the DHCP option. |
always-send | boolean To enforce the addition of a particular option set the always-send flag to true. |
data | string If the option data is unspecified it defaults to an empty value. The empty value is mostly used for the options which have no payload (boolean options), but it is legal to specify empty values for some options which carry variable length data and which the specification allows for the length of 0. For such options, the data parameter may be omitted in the configuration. |
space | string If the option space is unspecified it will default to 'dhcp4' which is an option space holding DHCPv4 standard options |
Object created
Internal error
Object already exists
Example URL
List of DHCPv4 options and values.
subnet required | string Id of subnet4 |
name required | string Id of option-data |
netgate.kea.keadhcp4optiongroup.OptionData
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-config/netgate-kea:dhcp4-server/netgate-kea:Dhcp4/netgate-kea:subnet4=%7Bsubnet%7D/netgate-kea:option-data=%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)) }
Example URL
List of DHCPv4 options and values.
subnet required | string Id of subnet4 |
name required | string Id of option-data |
netgate.kea.keadhcp4optiongroup.OptionData to be added to list
name | string The server requires an option name to identify an option. |
csv-format | boolean If this value is not specified the server will assume that the option data is specified as a list of comma separated values to be assigned to individual fields of the DHCP option. |
always-send | boolean To enforce the addition of a particular option set the always-send flag to true. |
data | string If the option data is unspecified it defaults to an empty value. The empty value is mostly used for the options which have no payload (boolean options), but it is legal to specify empty values for some options which carry variable length data and which the specification allows for the length of 0. For such options, the data parameter may be omitted in the configuration. |
space | string If the option space is unspecified it will default to 'dhcp4' which is an option space holding DHCPv4 standard options |
Object created
Internal error
Object already exists
Example URL
List of DHCPv4 options and values.
subnet required | string Id of subnet4 |
name required | string Id of option-data |
netgate.kea.keadhcp4optiongroup.OptionData to be added or updated
name | string The server requires an option name to identify an option. |
csv-format | boolean If this value is not specified the server will assume that the option data is specified as a list of comma separated values to be assigned to individual fields of the DHCP option. |
always-send | boolean To enforce the addition of a particular option set the always-send flag to true. |
data | string If the option data is unspecified it defaults to an empty value. The empty value is mostly used for the options which have no payload (boolean options), but it is legal to specify empty values for some options which carry variable length data and which the specification allows for the length of 0. For such options, the data parameter may be omitted in the configuration. |
space | string If the option space is unspecified it will default to 'dhcp4' which is an option space holding DHCPv4 standard options |
Object created
Object modified
Internal error
Example URL
List of DHCPv4 options and values.
subnet required | string Id of subnet4 |
name required | string Id of option-data |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-config/netgate-kea:dhcp4-server/netgate-kea:Dhcp4/netgate-kea:subnet4=%7Bsubnet%7D/netgate-kea:option-data=%7Bname%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)) }
Example URL
A list of leased address pools. Each pool is specfied as a start and optional end IPv4 addresses, or as an IPv4 address and prefix.
subnet required | string Id of subnet4 |
netgate.kea.keaconfig.dhcp4server.dhcp4.subnet4.Pools to be added to list
option-data | Array of objects (netgate.kea.keadhcp4optiongroup.OptionData) List of DHCPv4 options and values. |
pool | string A pool is specfied as a start and optional end IPv4 addresses, or as an IPv4 address and prefix. |
pool-present | boolean |
Object created
Internal error
Object already exists
Example URL
A list of leased address pools. Each pool is specfied as a start and optional end IPv4 addresses, or as an IPv4 address and prefix.
subnet required | string Id of subnet4 |
pool required | string Id of pools |
netgate.kea.keaconfig.dhcp4server.dhcp4.subnet4.Pools
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-config/netgate-kea:dhcp4-server/netgate-kea:Dhcp4/netgate-kea:subnet4=%7Bsubnet%7D/netgate-kea:pools=%7Bpool%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)) }
Example URL
A list of leased address pools. Each pool is specfied as a start and optional end IPv4 addresses, or as an IPv4 address and prefix.
subnet required | string Id of subnet4 |
pool required | string Id of pools |
netgate.kea.keaconfig.dhcp4server.dhcp4.subnet4.Pools to be added to list
option-data | Array of objects (netgate.kea.keadhcp4optiongroup.OptionData) List of DHCPv4 options and values. |
pool | string A pool is specfied as a start and optional end IPv4 addresses, or as an IPv4 address and prefix. |
pool-present | boolean |
Object created
Internal error
Object already exists
Example URL
A list of leased address pools. Each pool is specfied as a start and optional end IPv4 addresses, or as an IPv4 address and prefix.
subnet required | string Id of subnet4 |
pool required | string Id of pools |
netgate.kea.keaconfig.dhcp4server.dhcp4.subnet4.Pools to be added or updated
netgate-kea:pools | object (netgate.kea.keaconfig.dhcp4server.dhcp4.subnet4.Pools) A list of leased address pools. Each pool is specfied as a start and optional end IPv4 addresses, or as an IPv4 address and prefix. |
Object created
Object modified
Internal error
Example URL
A list of leased address pools. Each pool is specfied as a start and optional end IPv4 addresses, or as an IPv4 address and prefix.
subnet required | string Id of subnet4 |
pool required | string Id of pools |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-config/netgate-kea:dhcp4-server/netgate-kea:Dhcp4/netgate-kea:subnet4=%7Bsubnet%7D/netgate-kea:pools=%7Bpool%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)) }
Example URL
List of DHCPv4 options and values.
subnet required | string Id of subnet4 |
pool required | string Id of pools |
netgate.kea.keadhcp4optiongroup.OptionData to be added to list
name | string The server requires an option name to identify an option. |
csv-format | boolean If this value is not specified the server will assume that the option data is specified as a list of comma separated values to be assigned to individual fields of the DHCP option. |
always-send | boolean To enforce the addition of a particular option set the always-send flag to true. |
data | string If the option data is unspecified it defaults to an empty value. The empty value is mostly used for the options which have no payload (boolean options), but it is legal to specify empty values for some options which carry variable length data and which the specification allows for the length of 0. For such options, the data parameter may be omitted in the configuration. |
space | string If the option space is unspecified it will default to 'dhcp4' which is an option space holding DHCPv4 standard options |
Object created
Internal error
Object already exists
Example URL
List of DHCPv4 options and values.
subnet required | string Id of subnet4 |
pool required | string Id of pools |
name required | string Id of option-data |
netgate.kea.keadhcp4optiongroup.OptionData
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-config/netgate-kea:dhcp4-server/netgate-kea:Dhcp4/netgate-kea:subnet4=%7Bsubnet%7D/netgate-kea:pools=%7Bpool%7D/netgate-kea:option-data=%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)) }
Example URL
List of DHCPv4 options and values.
subnet required | string Id of subnet4 |
pool required | string Id of pools |
name required | string Id of option-data |
netgate.kea.keadhcp4optiongroup.OptionData to be added to list
name | string The server requires an option name to identify an option. |
csv-format | boolean If this value is not specified the server will assume that the option data is specified as a list of comma separated values to be assigned to individual fields of the DHCP option. |
always-send | boolean To enforce the addition of a particular option set the always-send flag to true. |
data | string If the option data is unspecified it defaults to an empty value. The empty value is mostly used for the options which have no payload (boolean options), but it is legal to specify empty values for some options which carry variable length data and which the specification allows for the length of 0. For such options, the data parameter may be omitted in the configuration. |
space | string If the option space is unspecified it will default to 'dhcp4' which is an option space holding DHCPv4 standard options |
Object created
Internal error
Object already exists
Example URL
List of DHCPv4 options and values.
subnet required | string Id of subnet4 |
pool required | string Id of pools |
name required | string Id of option-data |
netgate.kea.keadhcp4optiongroup.OptionData to be added or updated
name | string The server requires an option name to identify an option. |
csv-format | boolean If this value is not specified the server will assume that the option data is specified as a list of comma separated values to be assigned to individual fields of the DHCP option. |
always-send | boolean To enforce the addition of a particular option set the always-send flag to true. |
data | string If the option data is unspecified it defaults to an empty value. The empty value is mostly used for the options which have no payload (boolean options), but it is legal to specify empty values for some options which carry variable length data and which the specification allows for the length of 0. For such options, the data parameter may be omitted in the configuration. |
space | string If the option space is unspecified it will default to 'dhcp4' which is an option space holding DHCPv4 standard options |
Object created
Object modified
Internal error
Example URL
List of DHCPv4 options and values.
subnet required | string Id of subnet4 |
pool required | string Id of pools |
name required | string Id of option-data |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-config/netgate-kea:dhcp4-server/netgate-kea:Dhcp4/netgate-kea:subnet4=%7Bsubnet%7D/netgate-kea:pools=%7Bpool%7D/netgate-kea:option-data=%7Bname%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)) }
Example URL
List of host reservations.
subnet required | string Id of subnet4 |
netgate.kea.keaconfig.dhcp4server.dhcp4.subnet4.Reservations to be added to list
option-data | Array of objects (netgate.kea.keadhcp4optiongroup.OptionData) List of DHCPv4 options and values. |
hostname | string The host name of the identified host. |
ip-address | string The IPv4 address for the host. |
hw-address | string The host's MAC address. |
Object created
Internal error
Object already exists
Example URL
List of host reservations.
subnet required | string Id of subnet4 |
ip-address required | string Id of reservations |
netgate.kea.keaconfig.dhcp4server.dhcp4.subnet4.Reservations
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-config/netgate-kea:dhcp4-server/netgate-kea:Dhcp4/netgate-kea:subnet4=%7Bsubnet%7D/netgate-kea:reservations=%7Bip-address%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)) }
Example URL
List of host reservations.
subnet required | string Id of subnet4 |
ip-address required | string Id of reservations |
netgate.kea.keaconfig.dhcp4server.dhcp4.subnet4.Reservations to be added to list
option-data | Array of objects (netgate.kea.keadhcp4optiongroup.OptionData) List of DHCPv4 options and values. |
hostname | string The host name of the identified host. |
ip-address | string The IPv4 address for the host. |
hw-address | string The host's MAC address. |
Object created
Internal error
Object already exists
Example URL
List of host reservations.
subnet required | string Id of subnet4 |
ip-address required | string Id of reservations |
netgate.kea.keaconfig.dhcp4server.dhcp4.subnet4.Reservations to be added or updated
netgate-kea:reservations | object (netgate.kea.keaconfig.dhcp4server.dhcp4.subnet4.Reservations) List of host reservations. |
Object created
Object modified
Internal error
Example URL
List of host reservations.
subnet required | string Id of subnet4 |
ip-address required | string Id of reservations |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-config/netgate-kea:dhcp4-server/netgate-kea:Dhcp4/netgate-kea:subnet4=%7Bsubnet%7D/netgate-kea:reservations=%7Bip-address%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)) }
Example URL
List of DHCPv4 options and values.
subnet required | string Id of subnet4 |
ip-address required | string Id of reservations |
netgate.kea.keadhcp4optiongroup.OptionData to be added to list
name | string The server requires an option name to identify an option. |
csv-format | boolean If this value is not specified the server will assume that the option data is specified as a list of comma separated values to be assigned to individual fields of the DHCP option. |
always-send | boolean To enforce the addition of a particular option set the always-send flag to true. |
data | string If the option data is unspecified it defaults to an empty value. The empty value is mostly used for the options which have no payload (boolean options), but it is legal to specify empty values for some options which carry variable length data and which the specification allows for the length of 0. For such options, the data parameter may be omitted in the configuration. |
space | string If the option space is unspecified it will default to 'dhcp4' which is an option space holding DHCPv4 standard options |
Object created
Internal error
Object already exists
Example URL
List of DHCPv4 options and values.
subnet required | string Id of subnet4 |
ip-address required | string Id of reservations |
name required | string Id of option-data |
netgate.kea.keadhcp4optiongroup.OptionData
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-config/netgate-kea:dhcp4-server/netgate-kea:Dhcp4/netgate-kea:subnet4=%7Bsubnet%7D/netgate-kea:reservations=%7Bip-address%7D/netgate-kea:option-data=%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)) }
Example URL
List of DHCPv4 options and values.
subnet required | string Id of subnet4 |
ip-address required | string Id of reservations |
name required | string Id of option-data |
netgate.kea.keadhcp4optiongroup.OptionData to be added to list
name | string The server requires an option name to identify an option. |
csv-format | boolean If this value is not specified the server will assume that the option data is specified as a list of comma separated values to be assigned to individual fields of the DHCP option. |
always-send | boolean To enforce the addition of a particular option set the always-send flag to true. |
data | string If the option data is unspecified it defaults to an empty value. The empty value is mostly used for the options which have no payload (boolean options), but it is legal to specify empty values for some options which carry variable length data and which the specification allows for the length of 0. For such options, the data parameter may be omitted in the configuration. |
space | string If the option space is unspecified it will default to 'dhcp4' which is an option space holding DHCPv4 standard options |
Object created
Internal error
Object already exists
Example URL
List of DHCPv4 options and values.
subnet required | string Id of subnet4 |
ip-address required | string Id of reservations |
name required | string Id of option-data |
netgate.kea.keadhcp4optiongroup.OptionData to be added or updated
name | string The server requires an option name to identify an option. |
csv-format | boolean If this value is not specified the server will assume that the option data is specified as a list of comma separated values to be assigned to individual fields of the DHCP option. |
always-send | boolean To enforce the addition of a particular option set the always-send flag to true. |
data | string If the option data is unspecified it defaults to an empty value. The empty value is mostly used for the options which have no payload (boolean options), but it is legal to specify empty values for some options which carry variable length data and which the specification allows for the length of 0. For such options, the data parameter may be omitted in the configuration. |
space | string If the option space is unspecified it will default to 'dhcp4' which is an option space holding DHCPv4 standard options |
Object created
Object modified
Internal error
Example URL
List of DHCPv4 options and values.
subnet required | string Id of subnet4 |
ip-address required | string Id of reservations |
name required | string Id of option-data |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-config/netgate-kea:dhcp4-server/netgate-kea:Dhcp4/netgate-kea:subnet4=%7Bsubnet%7D/netgate-kea:reservations=%7Bip-address%7D/netgate-kea:option-data=%7Bname%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)) }
Example URL
Configuration for the Kea Logging
netgate.kea.KeaLoggingGroup
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-config/netgate-kea:dhcp4-server/netgate-kea:Logging" 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
Configuration for the Kea Logging
netgate.kea.KeaLoggingGroup to be added to list
loggers | Array of objects (netgate.kea.kealogginggroup.Loggers) List of logging facilities and parameters. |
Object created
Internal error
Object already exists
Example URL
Configuration for the Kea Logging
netgate.kea.KeaLoggingGroup to be added or updated
netgate-kea:kea-logging-group | object (netgate.kea.KeaLoggingGroup) |
Object created
Object modified
Internal error
Example URL
Configuration for the Kea Logging
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-config/netgate-kea:dhcp4-server/netgate-kea:Logging" 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
List of logging facilities and parameters.
netgate.kea.kealogginggroup.Loggers to be added to list
debuglevel | integer <int32> A Kea debug level. |
severity | string (netgate.kea.KeaLoggerSeverity) Enum: "fatal" "error" "warn" "info" "debug" |
name | string (netgate.kea.KeaLoggerName) Enum: "*" "kea-ctrl-agent" "kea-ctrl-agent.http" "kea-dhcp4" "kea-dhcp4.alloc-engine" "kea-dhcp4.bad-packets" "kea-dhcp4.callouts" "kea-dhcp4.commands" "kea-dhcp4.ddns" "kea-dhcp4.dhcp4" "kea-dhcp4.dhcpsrv" "kea-dhcp4.eval" "kea-dhcp4.hooks" "kea-dhcp4.hosts" "kea-dhcp4.leases" "kea-dhcp4.options" "kea-dhcp4.packets" "kea-dhcp4.stat-cmds-hooks" "kea-dhcp6" "kea-dhcp6.alloc-engine" "kea-dhcp6.bad-packets" "kea-dhcp6.callouts" "kea-dhcp6.commands" "kea-dhcp6.ddns" "kea-dhcp6.dhcp6" "kea-dhcp6.dhcpsrv" "kea-dhcp6.eval" "kea-dhcp6.hooks" "kea-dhcp6.hosts" "kea-dhcp6.leases" "kea-dhcp6.options" "kea-dhcp6.packets" "kea-dhcp6.stat-cmds-hooks" "kea-dhcp-ddns" "kea-dhcp-ddns.dctl" "kea-dhcp-ddns.dhcpddns" "kea-dhcp-ddns.dhcp-to-d2" "kea-dhcp-ddns.d2-to-dns" |
output_options | Array of objects (netgate.kea.kealogginggroup.loggers.OutputOptions) List of output options for a logger. |
Object created
Internal error
Object already exists
Example URL
List of logging facilities and parameters.
name required | string Id of loggers |
netgate.kea.kealogginggroup.Loggers
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-config/netgate-kea:dhcp4-server/netgate-kea:Logging/netgate-kea:loggers=%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)) }
Example URL
List of logging facilities and parameters.
name required | string Id of loggers |
netgate.kea.kealogginggroup.Loggers to be added to list
debuglevel | integer <int32> A Kea debug level. |
severity | string (netgate.kea.KeaLoggerSeverity) Enum: "fatal" "error" "warn" "info" "debug" |
name | string (netgate.kea.KeaLoggerName) Enum: "*" "kea-ctrl-agent" "kea-ctrl-agent.http" "kea-dhcp4" "kea-dhcp4.alloc-engine" "kea-dhcp4.bad-packets" "kea-dhcp4.callouts" "kea-dhcp4.commands" "kea-dhcp4.ddns" "kea-dhcp4.dhcp4" "kea-dhcp4.dhcpsrv" "kea-dhcp4.eval" "kea-dhcp4.hooks" "kea-dhcp4.hosts" "kea-dhcp4.leases" "kea-dhcp4.options" "kea-dhcp4.packets" "kea-dhcp4.stat-cmds-hooks" "kea-dhcp6" "kea-dhcp6.alloc-engine" "kea-dhcp6.bad-packets" "kea-dhcp6.callouts" "kea-dhcp6.commands" "kea-dhcp6.ddns" "kea-dhcp6.dhcp6" "kea-dhcp6.dhcpsrv" "kea-dhcp6.eval" "kea-dhcp6.hooks" "kea-dhcp6.hosts" "kea-dhcp6.leases" "kea-dhcp6.options" "kea-dhcp6.packets" "kea-dhcp6.stat-cmds-hooks" "kea-dhcp-ddns" "kea-dhcp-ddns.dctl" "kea-dhcp-ddns.dhcpddns" "kea-dhcp-ddns.dhcp-to-d2" "kea-dhcp-ddns.d2-to-dns" |
output_options | Array of objects (netgate.kea.kealogginggroup.loggers.OutputOptions) List of output options for a logger. |
Object created
Internal error
Object already exists
Example URL
List of logging facilities and parameters.
name required | string Id of loggers |
netgate.kea.kealogginggroup.Loggers to be added or updated
netgate-kea:loggers | object (netgate.kea.kealogginggroup.Loggers) |
Object created
Object modified
Internal error
Example URL
List of logging facilities and parameters.
name required | string Id of loggers |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-config/netgate-kea:dhcp4-server/netgate-kea:Logging/netgate-kea:loggers=%7Bname%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)) }
Example URL
List of output options for a logger.
name required | string Id of loggers |
netgate.kea.kealogginggroup.loggers.OutputOptions to be added to list
maxver | integer <int64> The maximum number of rotation log files to keep. |
output | string The logger's file or keyword output location. |
maxsize | integer <int64> The maximum size of a rotating log file. The default is 10MB. |
flush | boolean If true, each log message is flushed as it is logged at a slight performance penalty. |
Object created
Internal error
Object already exists
Example URL
List of output options for a logger.
name required | string Id of loggers |
output required | string Id of output_options |
netgate.kea.kealogginggroup.loggers.OutputOptions
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-config/netgate-kea:dhcp4-server/netgate-kea:Logging/netgate-kea:loggers=%7Bname%7D/netgate-kea:output_options=%7Boutput%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)) }
Example URL
List of output options for a logger.
name required | string Id of loggers |
output required | string Id of output_options |
netgate.kea.kealogginggroup.loggers.OutputOptions to be added to list
maxver | integer <int64> The maximum number of rotation log files to keep. |
output | string The logger's file or keyword output location. |
maxsize | integer <int64> The maximum size of a rotating log file. The default is 10MB. |
flush | boolean If true, each log message is flushed as it is logged at a slight performance penalty. |
Object created
Internal error
Object already exists
Example URL
List of output options for a logger.
name required | string Id of loggers |
output required | string Id of output_options |
netgate.kea.kealogginggroup.loggers.OutputOptions to be added or updated
netgate-kea:output-options | object (netgate.kea.kealogginggroup.loggers.OutputOptions) |
Object created
Object modified
Internal error
Example URL
List of output options for a logger.
name required | string Id of loggers |
output required | string Id of output_options |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-config/netgate-kea:dhcp4-server/netgate-kea:Logging/netgate-kea:loggers=%7Bname%7D/netgate-kea:output_options=%7Boutput%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)) }
Example URL
This section contains parameters for the keactrl configuration file.
netgate.kea.keaconfig.Keactrl
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-config/netgate-kea:keactrl" 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
This section contains parameters for the keactrl configuration file.
netgate.kea.keaconfig.Keactrl to be added to list
dhcp4 | object (netgate.kea.keaconfig.keactrl.Dhcp4) |
verbose | boolean If true, the Kea Control daemon will be verbose. |
Object created
Internal error
Object already exists
Example URL
This section contains parameters for the keactrl configuration file.
netgate.kea.keaconfig.Keactrl to be added or updated
netgate-kea:keactrl | object (netgate.kea.keaconfig.Keactrl) |
Object created
Object modified
Internal error
Example URL
This section contains parameters for the keactrl configuration file.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-config/netgate-kea:keactrl" 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
Parameters for the DHCP IPv4 server.
netgate.kea.keaconfig.keactrl.Dhcp4
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-config/netgate-kea:keactrl/netgate-kea:dhcp4" 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
Parameters for the DHCP IPv4 server.
netgate.kea.keaconfig.keactrl.Dhcp4 to be added to list
enable | boolean If true, the Kea dhcp4 server is enabled. |
Object created
Internal error
Object already exists
Example URL
Parameters for the DHCP IPv4 server.
netgate.kea.keaconfig.keactrl.Dhcp4 to be added or updated
netgate-kea:dhcp4 | object (netgate.kea.keaconfig.keactrl.Dhcp4) |
Object created
Object modified
Internal error
Example URL
Parameters for the DHCP IPv4 server.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-config/netgate-kea:keactrl/netgate-kea:dhcp4" 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.kea.KeaState
netgate.kea.KeaState
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-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
Gather all the parts that contribute to the DHCP4 server.
netgate.kea.keastate.Dhcp4Server
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-state/netgate-kea:dhcp4-server" 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
Configuration for the Kea DHCP IPv4 Server
netgate.kea.keastate.dhcp4server.Dhcp4
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-state/netgate-kea:dhcp4-server/netgate-kea:Dhcp4" 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
The interfaces-config holds configuration information about each interface used by the DHCPv4 server.
netgate.kea.keastate.dhcp4server.dhcp4.InterfacesConfig
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-state/netgate-kea:dhcp4-server/netgate-kea:Dhcp4/netgate-kea:interfaces-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
The interfaces is a list of interface names or interface names with unicast addresses on them on which the server will listen for DHCP requests.
interface required | string Id of interfaces |
netgate.kea.keastate.dhcp4server.dhcp4.interfacesconfig.Interfaces
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-state/netgate-kea:dhcp4-server/netgate-kea:Dhcp4/netgate-kea:interfaces-config/netgate-kea:interfaces=%7Binterface%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)) }
Example URL
returns netgate.kea.keastate.dhcp4server.dhcp4.LeaseDatabase
netgate.kea.keastate.dhcp4server.dhcp4.LeaseDatabase
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-state/netgate-kea:dhcp4-server/netgate-kea:Dhcp4/netgate-kea:lease-database" 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
List of DHCPv4 options and values.
name required | string Id of option-data |
netgate.kea.keadhcp4optiongroup.OptionData
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-state/netgate-kea:dhcp4-server/netgate-kea:Dhcp4/netgate-kea:option-data=%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)) }
Example URL
An IPv4 subnet configuration within the DHCPv4 server.
subnet required | string Id of subnet4 |
netgate.kea.keastate.dhcp4server.dhcp4.Subnet4
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-state/netgate-kea:dhcp4-server/netgate-kea:Dhcp4/netgate-kea:subnet4=%7Bsubnet%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)) }
Example URL
List of DHCPv4 options and values.
subnet required | string Id of subnet4 |
name required | string Id of option-data |
netgate.kea.keadhcp4optiongroup.OptionData
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-state/netgate-kea:dhcp4-server/netgate-kea:Dhcp4/netgate-kea:subnet4=%7Bsubnet%7D/netgate-kea:option-data=%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)) }
Example URL
A list of leased address pools. Each pool is specfied as a start and optional end IPv4 addresses, or as an IPv4 address and prefix.
subnet required | string Id of subnet4 |
pool required | string Id of pools |
netgate.kea.keastate.dhcp4server.dhcp4.subnet4.Pools
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-state/netgate-kea:dhcp4-server/netgate-kea:Dhcp4/netgate-kea:subnet4=%7Bsubnet%7D/netgate-kea:pools=%7Bpool%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)) }
Example URL
List of DHCPv4 options and values.
subnet required | string Id of subnet4 |
pool required | string Id of pools |
name required | string Id of option-data |
netgate.kea.keadhcp4optiongroup.OptionData
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-state/netgate-kea:dhcp4-server/netgate-kea:Dhcp4/netgate-kea:subnet4=%7Bsubnet%7D/netgate-kea:pools=%7Bpool%7D/netgate-kea:option-data=%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)) }
Example URL
List of host reservations.
subnet required | string Id of subnet4 |
ip-address required | string Id of reservations |
netgate.kea.keastate.dhcp4server.dhcp4.subnet4.Reservations
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-state/netgate-kea:dhcp4-server/netgate-kea:Dhcp4/netgate-kea:subnet4=%7Bsubnet%7D/netgate-kea:reservations=%7Bip-address%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)) }
Example URL
Configuration for the Kea Logging
netgate.kea.KeaLoggingGroup
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-state/netgate-kea:dhcp4-server/netgate-kea:Logging" 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
List of logging facilities and parameters.
name required | string Id of loggers |
netgate.kea.kealogginggroup.Loggers
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-state/netgate-kea:dhcp4-server/netgate-kea:Logging/netgate-kea:loggers=%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)) }
Example URL
List of output options for a logger.
name required | string Id of loggers |
output required | string Id of output_options |
netgate.kea.kealogginggroup.loggers.OutputOptions
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-state/netgate-kea:dhcp4-server/netgate-kea:Logging/netgate-kea:loggers=%7Bname%7D/netgate-kea:output_options=%7Boutput%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)) }
Example URL
This section contains parameters for the keactrl configuration file.
netgate.kea.keastate.Keactrl
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-state/netgate-kea:keactrl" 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
Parameters for the DHCP IPv4 server.
netgate.kea.keastate.keactrl.Dhcp4
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-state/netgate-kea:keactrl/netgate-kea:dhcp4" 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.kea.KeaControl
input | object (netgate.kea.keacontrol.Input) |
Correct response
No response
Internal error
Example URL
creates netgate.kea.KeaShow
input | object (netgate.kea.keashow.Input) |
Correct response
No response
Internal error