The YANG module provides a data-model for the Radius client.
Copyright 2023 Rubicon Communications, LLC.
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-radius:radius-client" 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)) }
{- "netgate-radius:radius-client": {
- "netgate-radius:client": {
- "netgate-radius:servers": [
- {
- "netgate-radius:name": "string",
- "netgate-radius:server": {
- "netgate-radius:host": "string",
- "netgate-radius:port": 0
}, - "netgate-radius:secret": "string",
- "netgate-radius:source-address": "string",
- "netgate-radius:timeout": 3
}
]
}
}
}
Radius client configuration for PAM subsystem.
netgate.radius.RadiusClient to be added to list
object (netgate.radius.radiusclient.Client) The Radius client parameters. |
{- "netgate-radius:client": {
- "netgate-radius:servers": [
- {
- "netgate-radius:name": "string",
- "netgate-radius:server": {
- "netgate-radius:host": "string",
- "netgate-radius:port": 0
}, - "netgate-radius:secret": "string",
- "netgate-radius:source-address": "string",
- "netgate-radius:timeout": 3
}
]
}
}
Radius client configuration for PAM subsystem.
netgate.radius.RadiusClient to be added or updated
object (netgate.radius.RadiusClient) Radius client configuration for PAM subsystem. |
{- "netgate-radius:radius-client": {
- "netgate-radius:client": {
- "netgate-radius:servers": [
- {
- "netgate-radius:name": "string",
- "netgate-radius:server": {
- "netgate-radius:host": "string",
- "netgate-radius:port": 0
}, - "netgate-radius:secret": "string",
- "netgate-radius:source-address": "string",
- "netgate-radius:timeout": 3
}
]
}
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-radius:radius-client" 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)) }
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-radius:radius-client/client" 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)) }
{- "netgate-radius:client": {
- "netgate-radius:servers": [
- {
- "netgate-radius:name": "string",
- "netgate-radius:server": {
- "netgate-radius:host": "string",
- "netgate-radius:port": 0
}, - "netgate-radius:secret": "string",
- "netgate-radius:source-address": "string",
- "netgate-radius:timeout": 3
}
]
}
}
The Radius client parameters.
netgate.radius.radiusclient.Client to be added to list
Array of objects (netgate.radius.radiusclient.client.Servers) |
{- "netgate-radius:servers": [
- {
- "netgate-radius:name": "string",
- "netgate-radius:server": {
- "netgate-radius:host": "string",
- "netgate-radius:port": 0
}, - "netgate-radius:secret": "string",
- "netgate-radius:source-address": "string",
- "netgate-radius:timeout": 3
}
]
}
The Radius client parameters.
netgate.radius.radiusclient.Client to be added or updated
object (netgate.radius.radiusclient.Client) The Radius client parameters. |
{- "netgate-radius:client": {
- "netgate-radius:servers": [
- {
- "netgate-radius:name": "string",
- "netgate-radius:server": {
- "netgate-radius:host": "string",
- "netgate-radius:port": 0
}, - "netgate-radius:secret": "string",
- "netgate-radius:source-address": "string",
- "netgate-radius:timeout": 3
}
]
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-radius:radius-client/client" 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.radius.radiusclient.client.Servers
netgate.radius.radiusclient.client.Servers to be added to list
netgate-radius:name | string Server handle. |
object (netgate.radius.ServerTuple) | |
netgate-radius:secret | string Shared secret for server. |
netgate-radius:source-address | string Client address to use. |
netgate-radius:timeout | integer <int64> Default: 3 Timeout for server requests. |
{- "netgate-radius:name": "string",
- "netgate-radius:server": {
- "netgate-radius:host": "string",
- "netgate-radius:port": 0
}, - "netgate-radius:secret": "string",
- "netgate-radius:source-address": "string",
- "netgate-radius:timeout": 3
}
returns netgate.radius.radiusclient.client.Servers
name required | string Id of servers |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-radius:radius-client/client/servers=%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)) }
{- "netgate-radius:servers": {
- "netgate-radius:name": "string",
- "netgate-radius:server": {
- "netgate-radius:host": "string",
- "netgate-radius:port": 0
}, - "netgate-radius:secret": "string",
- "netgate-radius:source-address": "string",
- "netgate-radius:timeout": 3
}
}
creates or updates netgate.radius.radiusclient.client.Servers
name required | string Id of servers |
netgate.radius.radiusclient.client.Servers to be added or updated
object (netgate.radius.radiusclient.client.Servers) |
{- "netgate-radius:servers": {
- "netgate-radius:name": "string",
- "netgate-radius:server": {
- "netgate-radius:host": "string",
- "netgate-radius:port": 0
}, - "netgate-radius:secret": "string",
- "netgate-radius:source-address": "string",
- "netgate-radius:timeout": 3
}
}
removes netgate.radius.radiusclient.client.Servers
name required | string Id of servers |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-radius:radius-client/client/servers=%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)) }
Server name or address, and port number.
name required | string Id of servers |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-radius:radius-client/client/servers=%7Bname%7D/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)) }
{- "netgate-radius:server": {
- "netgate-radius:host": "string",
- "netgate-radius:port": 0
}
}
Server name or address, and port number.
name required | string Id of servers |
netgate.radius.ServerTuple to be added to list
netgate-radius:host | string |
netgate-radius:port | integer <int32> |
{- "netgate-radius:host": "string",
- "netgate-radius:port": 0
}
Server name or address, and port number.
name required | string Id of servers |
netgate.radius.ServerTuple to be added or updated
object (netgate.radius.ServerTuple) |
{- "netgate-radius:server": {
- "netgate-radius:host": "string",
- "netgate-radius:port": 0
}
}
Server name or address, and port number.
name required | string Id of servers |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-radius:radius-client/client/servers=%7Bname%7D/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)) }
operates on netgate.radius.RadiusConfigOperation
object (netgate.radius.radiusconfigoperation.Input) |
{- "input": {
- "netgate-radius:request": "string",
- "netgate-radius:param": "string"
}
}
{- "output": {
- "netgate-radius:stdout": "string"
}
}