Skip to content

Commit 726e753

Browse files
committed
docs
1 parent d15e817 commit 726e753

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

packages/ns-api/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4995,7 +4995,7 @@ Example response:
49954995
"type": "domain",
49964996
"description": "cool domain",
49974997
"domain": "cool.domain",
4998-
"certificate": "cool_certificate",
4998+
"certificate": "cool_certificate",
49994999
"destination": "http://10.24.42.1",
50005000
"location": "/",
50015001
"allow": [
@@ -5196,6 +5196,7 @@ All parameters:
51965196
- `dhcp_vendor_class`: Vendor class to send when requesting DHCP
51975197
- `dhcp_hostname_to_send`: Hostname to send when requesting DHCP, can be `deviceHostname`, `doNotSendHostname` or `customHostname`
51985198
- `dhcp_custom_hostname`: Custom hostname to use when `dhcp_hostname_to_send = customHostname`
5199+
- `metric`: Routing metric for the interface, if left empty, system will assign an incremental value
51995200

52005201
```bash
52015202
api-cli ns.devices configure-device --data '{"device_type": "physical", "interface_name": "myiface", "protocol": "static", "zone": "lan", "ip6_enabled": false, "device_name": "eth2", "ip4_address": "10.20.30.40/24"}'
@@ -6021,7 +6022,7 @@ api-cli ns.threatshield dns-edit-blocklist --data '{ "blocklist": "blocklist_nam
60216022
Response example:
60226023
```json
60236024
{"message": "success"}
6024-
```
6025+
```
60256026
60266027
### dns-list-settings
60276028
@@ -8407,7 +8408,7 @@ Add a wireguard tunnel as a client
84078408
api-cli ns.wireguard add-tunnel --data '{"enabled": true, "name": "HQ Milan", "reserved_ip": "10.2.13.4", "server_public_key": "XXX", "peer_private_key": "XXX", "pre_shared_key": "XXX", "route_all_traffic": true, "network_routes": [""], "endpoint": "wireguard.example.com", "udp_port": 51121, "dns": ["192.168.1.1"]}'
84088409
```
84098410
8410-
Parameters:
8411+
Parameters:
84118412
- `enabled`: create the tunnel as active if `true`, inactive if `false`
84128413
- `name`: the name of the tunnel
84138414
- `reserved_ip`: the reserved IP address for the tunnel
@@ -8446,7 +8447,7 @@ Parameters:
84468447
84478448
### ns.ha
84488449
8449-
The following APIs are available for managing High Availability (HA) configuration.
8450+
The following APIs are available for managing High Availability (HA) configuration.
84508451
84518452
#### import-network-config
84528453

packages/ns-api/files/ns.devices

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,6 +1198,7 @@ if cmd == 'list':
11981198
'dhcp_vendor_class': 'string',
11991199
'dhcp_hostname_to_send': 'string',
12001200
'dhcp_custom_hostname': 'string',
1201+
'metric': 'integer'
12011202
},
12021203
'unconfigure-device': {
12031204
'iface_name': 'string',

0 commit comments

Comments
 (0)