getDefaultGatewayConfig
GET https://{{host}}/api/v1/const/default_gateway_config
Query Parameters
Name | Type | Description |
---|---|---|
model | string | model the default gateway config is intended (as the default LAN/WAN port can differ) |
ha | boolean | whether the config is intended for HA |
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
model | null | ||
ha | null |
RESPONSES
status: OK
{"port_config":{"ge-0/0/0,ge-0/0/7":{"usage":"wan","name":"wan","ip_config":{"type":"dhcp"}},"ge-0/0/1-6":{"usage":"lan","port_network":"lan"},"cl-1/0/0":{"usage":"wan","name":"lte","wan_type":"lte","ip_config":{"type":"dhcp"}}},"networks":{"lan":{"name":"lan","vlan_id":1,"subnet":"192.168.1.0/24"}},"ip_configs":{"lan":{"type":"static","ip":"192.168.1.1"}},"dhcpd_config":{"lan":{"ip_start":"192.168.1.2","ip_end":"192.168.1.254"}},"path_preferences":{"wan":{"paths":[{"type":"wan","name":"wan"}]}},"service_policies":[{"name":"Internet","tenants":["lan"],"services":["any"],"action":"allow","path_preference":"wan"}]}